2005-04-17 06:20:36 +08:00
|
|
|
# ===========================================================================
|
|
|
|
# arch/um: Generic definitions
|
|
|
|
# ===========================================================================
|
|
|
|
|
2005-05-06 07:15:33 +08:00
|
|
|
USER_SINGLE_OBJS := \
|
|
|
|
$(foreach f,$(patsubst %.o,%,$(obj-y) $(obj-m)),$($(f)-objs))
|
|
|
|
USER_OBJS += $(filter %_user.o,$(obj-y) $(obj-m) $(USER_SINGLE_OBJS))
|
2005-04-17 06:20:36 +08:00
|
|
|
USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
|
|
|
|
|
2005-10-10 03:37:26 +08:00
|
|
|
$(USER_OBJS) $(USER_OBJS:.o=.i) $(USER_OBJS:.o=.s) $(USER_OBJS:.o=.lst): \
|
|
|
|
c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) $(CFLAGS_$(notdir $@))
|
2006-04-11 13:53:35 +08:00
|
|
|
$(USER_OBJS) : CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ \
|
|
|
|
-Dunix -D__unix__ -D__$(SUBARCH)__
|
2005-09-10 00:14:12 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2005-06-22 08:16:25 +08:00
|
|
|
# The stubs and unmap.o can't try to call mcount or update basic block data
|
|
|
|
define unprofile
|
|
|
|
$(patsubst -pg,,$(patsubst -fprofile-arcs -ftest-coverage,,$(1)))
|
|
|
|
endef
|
|
|
|
|
2006-03-31 18:30:11 +08:00
|
|
|
ifdef subarch-obj-y
|
|
|
|
obj-y += subarch.o
|
|
|
|
subarch-y = $(addprefix ../../$(SUBARCH)/,$(subarch-obj-y))
|
|
|
|
endif
|