1 # ===========================================================================
2 # arch/um: Generic definitions
3 # ===========================================================================
6 $(foreach f,$(patsubst %.o,%,$(obj-y) $(obj-m)),$($(f)-objs))
7 USER_OBJS += $(filter %_user.o,$(obj-y) $(obj-m) $(USER_SINGLE_OBJS))
8 USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
11 c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) -include user.h $(CFLAGS_$(basetarget).o)
13 # These are like USER_OBJS but filter USER_CFLAGS through unprofile instead of
15 UNPROFILE_OBJS := $(foreach file,$(UNPROFILE_OBJS),$(obj)/$(file))
17 $(UNPROFILE_OBJS:.o=.%): \
18 c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) $(CFLAGS_$(basetarget).o)
20 $(USER_OBJS) $(UNPROFILE_OBJS): \
21 CHECKFLAGS := $(patsubst $(NOSTDINC_FLAGS),,$(CHECKFLAGS))
23 # The stubs can't try to call mcount or update basic block data
25 $(patsubst -pg,,$(patsubst -fprofile-arcs -ftest-coverage,,$(1)))