2 Makefile.br | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
3 foo.h | 12 ++++++++++++
4 2 files changed, 65 insertions(+)
7 ===================================================================
18 +#HOSTCFLAGS+=-Dinline="" -include foo.h
19 +-include $(obj)/.depend
20 +$(obj)/.depend: $(wildcard *.h *.c)
21 + $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > $@ 2>/dev/null || :
23 +__hostprogs := $(sort $(hostprogs-y) $(hostprogs-m))
24 +host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))
25 +host-cmulti := $(foreach m,$(__hostprogs),\
26 + $(if $($(m)-cxxobjs),,$(if $($(m)-objs),$(m))))
27 +host-cxxmulti := $(foreach m,$(__hostprogs),\
28 + $(if $($(m)-cxxobjs),$(m),$(if $($(m)-objs),)))
29 +host-cobjs := $(addprefix $(obj)/,$(sort $(foreach m,$(__hostprogs),$($(m)-objs))))
30 +host-cxxobjs := $(addprefix $(obj)/,$(sort $(foreach m,$(__hostprogs),$($(m)-cxxobjs))))
32 +HOST_EXTRACFLAGS += -I$(obj) -DCONFIG_=\"\"
34 +$(host-csingle): %: %.c
35 + $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $< -o $(obj)/$@
37 +$(host-cmulti): %: $(host-cobjs) $(host-cshlib)
38 + $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs)) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
40 +$(host-cxxmulti): %: $(host-cxxobjs) $(host-cobjs) $(host-cshlib)
41 + $(HOSTCXX) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs) $($(@F)-cxxobjs)) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
44 + $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< -o $@
46 +$(obj)/%.o: $(obj)/%.c
47 + $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< -o $@
50 + $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$(@F)) -c $< -o $@
52 +$(obj)/%:: $(src)/%_shipped
56 + $(Q)rm -f $(addprefix $(obj)/,$(clean-files))
58 + $(Q)rm -f $(addprefix $(obj)/,$(lxdialog) $(conf-objs) $(mconf-objs) $(kxgettext-objs) \
59 + $(hostprogs-y) $(qconf-cxxobjs) $(qconf-objs) $(gconf-objs) \
63 +.PHONY: FORCE clean distclean
65 ===================================================================
69 +#ifndef __KCONFIG_FOO_H
70 +#define __KCONFIG_FOO_H
73 +#include <features.h>
78 +#define PATH_MAX 1024
80 +#endif /* __KCONFIG_FOO_H */