summaryrefslogtreecommitdiffstats
path: root/arch/um/scripts/Makefile.rules
blob: 143f6fea076329058f427b764909488393e260cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# ===========================================================================
# arch/um: Generic definitions
# ===========================================================================

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))

USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))

$(USER_OBJS): c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) $(CFLAGS_$(notdir $@))

quiet_cmd_make_link = SYMLINK $@
cmd_make_link       = rm -f $@; ln -sf $(srctree)/arch/$(SUBARCH)/$($(notdir $@)-dir)/$(notdir $@) $@