]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | # =========================================================================== |
2 | # arch/um: Generic definitions | |
3 | # =========================================================================== | |
4 | ||
2ba49175 JD |
5 | USER_SINGLE_OBJS := \ |
6 | $(foreach f,$(patsubst %.o,%,$(obj-y) $(obj-m)),$($(f)-objs)) | |
7 | USER_OBJS += $(filter %_user.o,$(obj-y) $(obj-m) $(USER_SINGLE_OBJS)) | |
1da177e4 LT |
8 | USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file)) |
9 | ||
7b12b913 | 10 | $(USER_OBJS:.o=.%): \ |
9429ec96 | 11 | c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) -include $(srctree)/include/linux/kern_levels.h -include user.h $(CFLAGS_$(basetarget).o) |
2624f124 | 12 | |
7b12b913 PBG |
13 | # These are like USER_OBJS but filter USER_CFLAGS through unprofile instead of |
14 | # using it directly. | |
15 | UNPROFILE_OBJS := $(foreach file,$(UNPROFILE_OBJS),$(obj)/$(file)) | |
16 | ||
17 | $(UNPROFILE_OBJS:.o=.%): \ | |
5e8d780d | 18 | c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) $(CFLAGS_$(basetarget).o) |
64405360 AV |
19 | |
20 | $(USER_OBJS) $(UNPROFILE_OBJS): \ | |
21 | CHECKFLAGS := $(patsubst $(NOSTDINC_FLAGS),,$(CHECKFLAGS)) | |
1da177e4 | 22 | |
42fda663 | 23 | # The stubs can't try to call mcount or update basic block data |
60b2737d PBG |
24 | define unprofile |
25 | $(patsubst -pg,,$(patsubst -fprofile-arcs -ftest-coverage,,$(1))) | |
26 | endef |