Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # =========================================================================== |
| 2 | # arch/um: Generic definitions |
| 3 | # =========================================================================== |
| 4 | |
Jeff Dike | 2ba4917 | 2005-05-05 16:15:33 -0700 | [diff] [blame] | 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)) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file)) |
| 9 | |
Paolo 'Blaisorblade' Giarrusso | 54a8a22 | 2005-10-09 21:37:26 +0200 | [diff] [blame] | 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 $@)) |
Paolo 'Blaisorblade' Giarrusso | ccea15f | 2006-04-10 22:53:35 -0700 | [diff] [blame] | 12 | $(USER_OBJS) : CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ \ |
| 13 | -Dunix -D__unix__ -D__$(SUBARCH)__ |
viro@ZenIV.linux.org.uk | 2624f12 | 2005-09-09 17:14:12 +0100 | [diff] [blame] | 14 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
Paolo 'Blaisorblade' Giarrusso | 60b2737 | 2005-06-21 17:16:25 -0700 | [diff] [blame] | 16 | # The stubs and unmap.o can't try to call mcount or update basic block data |
| 17 | define unprofile |
| 18 | $(patsubst -pg,,$(patsubst -fprofile-arcs -ftest-coverage,,$(1))) |
| 19 | endef |
| 20 | |
Al Viro | de2fe5e | 2006-03-31 02:30:11 -0800 | [diff] [blame] | 21 | ifdef subarch-obj-y |
| 22 | obj-y += subarch.o |
| 23 | subarch-y = $(addprefix ../../$(SUBARCH)/,$(subarch-obj-y)) |
| 24 | endif |