2005-04-16 16:20:36 -06:00
|
|
|
# ===========================================================================
|
|
|
|
# arch/um: Generic definitions
|
|
|
|
# ===========================================================================
|
|
|
|
|
2005-05-05 17:15:33 -06: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-16 16:20:36 -06:00
|
|
|
USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
|
|
|
|
|
2005-10-09 13:37:26 -06: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-10 23:53:35 -06:00
|
|
|
$(USER_OBJS) : CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ \
|
|
|
|
-Dunix -D__unix__ -D__$(SUBARCH)__
|
2005-09-09 10:14:12 -06:00
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2005-06-21 18:16:25 -06: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 03:30:11 -07:00
|
|
|
ifdef subarch-obj-y
|
|
|
|
obj-y += subarch.o
|
|
|
|
subarch-y = $(addprefix ../../$(SUBARCH)/,$(subarch-obj-y))
|
|
|
|
endif
|