Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | # |
2 | # Copyright 2003 PathScale, Inc. | |
3 | # | |
4 | # Licensed under the GPL | |
5 | # | |
6 | ||
7 | lib-y = bitops.o bugs.o csum-partial.o delay.o fault.o mem.o memcpy.o \ | |
8 | ptrace.o ptrace_user.o semaphore.o sigcontext.o signal.o \ | |
80f95078 | 9 | syscalls.o sysrq.o thunk.o syscall_table.o |
1da177e4 LT |
10 | |
11 | USER_OBJS := ptrace_user.o sigcontext.o | |
12 | ||
13 | include arch/um/scripts/Makefile.rules | |
14 | ||
15 | SYMLINKS = bitops.c csum-copy.S csum-partial.c csum-wrappers.c memcpy.S \ | |
16 | semaphore.c thunk.S | |
17 | ||
18 | # this needs to be before the foreach, because clean-files does not accept | |
19 | # complete paths like $(src)/$f. | |
20 | clean-files := $(SYMLINKS) | |
21 | ||
22 | targets += $(SYMLINKS) | |
23 | ||
24 | SYMLINKS := $(foreach f,$(SYMLINKS),$(obj)/$f) | |
25 | ||
26 | bitops.c-dir = lib | |
27 | csum-copy.S-dir = lib | |
28 | csum-partial.c-dir = lib | |
29 | csum-wrappers.c-dir = lib | |
30 | memcpy.S-dir = lib | |
31 | semaphore.c-dir = kernel | |
32 | thunk.S-dir = lib | |
33 | ||
34 | $(SYMLINKS): FORCE | |
35 | $(call if_changed,make_link) | |
36 | ||
37 | CFLAGS_csum-partial.o := -Dcsum_partial=arch_csum_partial |