Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2003 PathScale, Inc. |
| 3 | # |
| 4 | # Licensed under the GPL |
| 5 | # |
| 6 | |
Paolo 'Blaisorblade' Giarrusso | 23352fc | 2005-05-05 16:15:16 -0700 | [diff] [blame^] | 7 | #XXX: why into lib-y? |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | lib-y = bitops.o bugs.o csum-partial.o delay.o fault.o mem.o memcpy.o \ |
| 9 | ptrace.o ptrace_user.o semaphore.o sigcontext.o signal.o \ |
Paolo 'Blaisorblade' Giarrusso | 80f9507 | 2005-05-01 08:58:55 -0700 | [diff] [blame] | 10 | syscalls.o sysrq.o thunk.o syscall_table.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
Paolo 'Blaisorblade' Giarrusso | 23352fc | 2005-05-05 16:15:16 -0700 | [diff] [blame^] | 12 | obj-y := ksyms.o |
| 13 | obj-$(CONFIG_MODULES) += module.o um_module.o |
| 14 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | USER_OBJS := ptrace_user.o sigcontext.o |
| 16 | |
| 17 | include arch/um/scripts/Makefile.rules |
| 18 | |
| 19 | SYMLINKS = bitops.c csum-copy.S csum-partial.c csum-wrappers.c memcpy.S \ |
Paolo 'Blaisorblade' Giarrusso | 23352fc | 2005-05-05 16:15:16 -0700 | [diff] [blame^] | 20 | semaphore.c thunk.S module.c |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | |
| 22 | # this needs to be before the foreach, because clean-files does not accept |
| 23 | # complete paths like $(src)/$f. |
| 24 | clean-files := $(SYMLINKS) |
| 25 | |
| 26 | targets += $(SYMLINKS) |
| 27 | |
| 28 | SYMLINKS := $(foreach f,$(SYMLINKS),$(obj)/$f) |
| 29 | |
| 30 | bitops.c-dir = lib |
| 31 | csum-copy.S-dir = lib |
| 32 | csum-partial.c-dir = lib |
| 33 | csum-wrappers.c-dir = lib |
| 34 | memcpy.S-dir = lib |
| 35 | semaphore.c-dir = kernel |
| 36 | thunk.S-dir = lib |
Paolo 'Blaisorblade' Giarrusso | 23352fc | 2005-05-05 16:15:16 -0700 | [diff] [blame^] | 37 | module.c-dir = kernel |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | |
| 39 | $(SYMLINKS): FORCE |
| 40 | $(call if_changed,make_link) |
| 41 | |
| 42 | CFLAGS_csum-partial.o := -Dcsum_partial=arch_csum_partial |