blob: e60c9da8fb483dd5ae377d862681632aead9edaf [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Copyright 2003 PathScale, Inc.
3#
4# Licensed under the GPL
5#
6
Paolo 'Blaisorblade' Giarrusso23352fc2005-05-05 16:15:16 -07007#XXX: why into lib-y?
Linus Torvalds1da177e2005-04-16 15:20:36 -07008lib-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' Giarrusso80f95072005-05-01 08:58:55 -070010 syscalls.o sysrq.o thunk.o syscall_table.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
Paolo 'Blaisorblade' Giarrusso23352fc2005-05-05 16:15:16 -070012obj-y := ksyms.o
13obj-$(CONFIG_MODULES) += module.o um_module.o
14
Linus Torvalds1da177e2005-04-16 15:20:36 -070015USER_OBJS := ptrace_user.o sigcontext.o
16
17include arch/um/scripts/Makefile.rules
18
19SYMLINKS = bitops.c csum-copy.S csum-partial.c csum-wrappers.c memcpy.S \
Paolo 'Blaisorblade' Giarrusso23352fc2005-05-05 16:15:16 -070020 semaphore.c thunk.S module.c
Linus Torvalds1da177e2005-04-16 15:20:36 -070021
22# this needs to be before the foreach, because clean-files does not accept
23# complete paths like $(src)/$f.
24clean-files := $(SYMLINKS)
25
26targets += $(SYMLINKS)
27
28SYMLINKS := $(foreach f,$(SYMLINKS),$(obj)/$f)
29
30bitops.c-dir = lib
31csum-copy.S-dir = lib
32csum-partial.c-dir = lib
33csum-wrappers.c-dir = lib
34memcpy.S-dir = lib
35semaphore.c-dir = kernel
36thunk.S-dir = lib
Paolo 'Blaisorblade' Giarrusso23352fc2005-05-05 16:15:16 -070037module.c-dir = kernel
Linus Torvalds1da177e2005-04-16 15:20:36 -070038
39$(SYMLINKS): FORCE
40 $(call if_changed,make_link)
41
42CFLAGS_csum-partial.o := -Dcsum_partial=arch_csum_partial