8 #HOSTCFLAGS+=-Dinline="" -include foo.h
9 -include $(obj)/.depend
10 $(obj)/.depend: $(wildcard *.h *.c)
11 $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > $@ 2>/dev/null || :
13 __hostprogs := $(sort $(hostprogs-y) $(hostprogs-m))
14 host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))
15 host-cmulti := $(foreach m,$(__hostprogs),\
16 $(if $($(m)-cxxobjs),,$(if $($(m)-objs),$(m))))
17 host-cxxmulti := $(foreach m,$(__hostprogs),\
18 $(if $($(m)-cxxobjs),$(m),$(if $($(m)-objs),)))
19 host-cobjs := $(addprefix $(obj)/,$(sort $(foreach m,$(__hostprogs),$($(m)-objs))))
20 host-cxxobjs := $(addprefix $(obj)/,$(sort $(foreach m,$(__hostprogs),$($(m)-cxxobjs))))
22 HOST_EXTRACFLAGS += -I$(obj) -DCONFIG_=\"\"
24 $(host-csingle): %: %.c
25 $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $< -o $(obj)/$@
27 $(host-cmulti): %: $(host-cobjs) $(host-cshlib)
28 $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs)) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
30 $(host-cxxmulti): %: $(host-cxxobjs) $(host-cobjs) $(host-cshlib)
31 $(HOSTCXX) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs) $($(@F)-cxxobjs)) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
34 $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< -o $@
36 $(obj)/%.o: $(obj)/%.c
37 $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< -o $@
40 $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$(@F)) -c $< -o $@
42 $(obj)/%:: $(src)/%_shipped
46 $(Q)rm -f $(addprefix $(obj)/,$(clean-files))
48 $(Q)rm -f $(addprefix $(obj)/,$(lxdialog) $(conf-objs) $(mconf-objs) $(kxgettext-objs) \
49 $(hostprogs-y) $(qconf-cxxobjs) $(qconf-objs) $(gconf-objs) \
53 .PHONY: FORCE clean distclean