[PATCH] uml: support sparse for userspace files
[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
54a8a222
PBG
10$(USER_OBJS) $(USER_OBJS:.o=.i) $(USER_OBJS:.o=.s) $(USER_OBJS:.o=.lst): \
11 c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) $(CFLAGS_$(notdir $@))
ccea15f4
PBG
12$(USER_OBJS) : CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ \
13 -Dunix -D__unix__ -D__$(SUBARCH)__
2624f124 14
1da177e4 15
60b2737d
PBG
16# The stubs and unmap.o can't try to call mcount or update basic block data
17define unprofile
18 $(patsubst -pg,,$(patsubst -fprofile-arcs -ftest-coverage,,$(1)))
19endef
20
de2fe5e0
AV
21ifdef subarch-obj-y
22obj-y += subarch.o
23subarch-y = $(addprefix ../../$(SUBARCH)/,$(subarch-obj-y))
24endif
This page took 0.127321 seconds and 5 git commands to generate.