blob: 15889df9b4663771ccddc00f7e0275645ceceb0f [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001# ===========================================================================
2# arch/um: Generic definitions
3# ===========================================================================
4
Jeff Dike2ba49172005-05-05 16:15:33 -07005USER_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))
Linus Torvalds1da177e2005-04-16 15:20:36 -07008USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
9
Paolo 'Blaisorblade' Giarrusso7b12b912006-05-01 12:16:05 -070010$(USER_OBJS:.o=.%): \
Geert Uytterhoeven9429ec92012-08-16 20:15:05 +020011 c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) -include $(srctree)/include/linux/kern_levels.h -include user.h $(CFLAGS_$(basetarget).o)
viro@ZenIV.linux.org.uk2624f122005-09-09 17:14:12 +010012
Paolo 'Blaisorblade' Giarrusso7b12b912006-05-01 12:16:05 -070013# These are like USER_OBJS but filter USER_CFLAGS through unprofile instead of
14# using it directly.
15UNPROFILE_OBJS := $(foreach file,$(UNPROFILE_OBJS),$(obj)/$(file))
16
17$(UNPROFILE_OBJS:.o=.%): \
Sam Ravnborg5e8d7802006-07-01 09:58:02 +020018 c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) $(CFLAGS_$(basetarget).o)
Al Viro64405362012-02-11 03:01:34 -050019
20$(USER_OBJS) $(UNPROFILE_OBJS): \
21 CHECKFLAGS := $(patsubst $(NOSTDINC_FLAGS),,$(CHECKFLAGS))
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
Jeff Dike42fda662007-10-16 01:26:50 -070023# The stubs can't try to call mcount or update basic block data
Paolo 'Blaisorblade' Giarrusso60b27372005-06-21 17:16:25 -070024define unprofile
25 $(patsubst -pg,,$(patsubst -fprofile-arcs -ftest-coverage,,$(1)))
26endef