uml: throw out CONFIG_MODE_TT
[deliverable/linux.git] / arch / um / scripts / Makefile.rules
CommitLineData
1da177e4
LT
1# ===========================================================================
2# arch/um: Generic definitions
3# ===========================================================================
4
2ba49175
JD
5USER_SINGLE_OBJS := \
6 $(foreach f,$(patsubst %.o,%,$(obj-y) $(obj-m)),$($(f)-objs))
7USER_OBJS += $(filter %_user.o,$(obj-y) $(obj-m) $(USER_SINGLE_OBJS))
1da177e4
LT
8USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
9
7b12b913 10$(USER_OBJS:.o=.%): \
5e8d780d 11 c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) $(CFLAGS_$(basetarget).o)
ccea15f4 12$(USER_OBJS) : CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ \
c537b994 13 -Dunix -D__unix__ -D__$(SUBARCH)__ $(CF)
2624f124 14
7b12b913
PBG
15# These are like USER_OBJS but filter USER_CFLAGS through unprofile instead of
16# using it directly.
17UNPROFILE_OBJS := $(foreach file,$(UNPROFILE_OBJS),$(obj)/$(file))
18
19$(UNPROFILE_OBJS:.o=.%): \
5e8d780d 20 c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) $(CFLAGS_$(basetarget).o)
7b12b913 21$(UNPROFILE_OBJS) : CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ \
c537b994 22 -Dunix -D__unix__ -D__$(SUBARCH)__ $(CF)
1da177e4 23
42fda663 24# The stubs can't try to call mcount or update basic block data
60b2737d
PBG
25define unprofile
26 $(patsubst -pg,,$(patsubst -fprofile-arcs -ftest-coverage,,$(1)))
27endef
28
de2fe5e0
AV
29ifdef subarch-obj-y
30obj-y += subarch.o
2b8232ce 31subarch-y = $(addprefix ../../$(HEADER_ARCH)/,$(subarch-obj-y))
de2fe5e0 32endif
This page took 0.269871 seconds and 5 git commands to generate.