blob: 5e7a9c310aa50898a33d99d36756039df7c7f57d [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' Giarrusso54a8a222005-10-09 21:37:26 +020010$(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' Giarrussoccea15f2006-04-10 22:53:35 -070012$(USER_OBJS) : CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ \
13 -Dunix -D__unix__ -D__$(SUBARCH)__
viro@ZenIV.linux.org.uk2624f122005-09-09 17:14:12 +010014
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Paolo 'Blaisorblade' Giarrusso60b27372005-06-21 17:16:25 -070016# 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
Al Virode2fe5e2006-03-31 02:30:11 -080021ifdef subarch-obj-y
22obj-y += subarch.o
23subarch-y = $(addprefix ../../$(SUBARCH)/,$(subarch-obj-y))
24endif