variable we're using; change the name of the variable.
# --- Add a raw to the queue
-define file
+define rawfile
$(eval q += $1)
endef
$(eval $q: $(OBJDIR)/$D/Lpars.h)
$(eval $q: $(INCDIR)/print.h)
-$(call file, $(LIBEM_MES))
-$(call file, $(LIBEMK))
-$(call file, $(LIBEM_DATA))
-$(call file, $(LIBALLOC))
-$(call file, $(LIBPRINT))
-$(call file, $(LIBSTRING))
-$(call file, $(LIBSYSTEM))
+$(call rawfile, $(LIBEM_MES))
+$(call rawfile, $(LIBEMK))
+$(call rawfile, $(LIBEM_DATA))
+$(call rawfile, $(LIBALLOC))
+$(call rawfile, $(LIBPRINT))
+$(call rawfile, $(LIBSTRING))
+$(call rawfile, $(LIBSYSTEM))
$(call cprogram, $(BINDIR)/em_bem)
$(call installto, $(PLATDEP)/em_bem)
$(eval $q: $(OBJDIR)/$D/Lpars.h)
-$(call file, $(LIBEM_MES))
-$(call file, $(LIBEMK))
-$(call file, $(LIBEM_DATA))
-$(call file, $(LIBINPUT))
-$(call file, $(LIBASSERT))
-$(call file, $(LIBALLOC))
-$(call file, $(LIBFLT_ARITH))
-$(call file, $(LIBPRINT))
-$(call file, $(LIBSYSTEM))
-$(call file, $(LIBSTRING))
+$(call rawfile, $(LIBEM_MES))
+$(call rawfile, $(LIBEMK))
+$(call rawfile, $(LIBEM_DATA))
+$(call rawfile, $(LIBINPUT))
+$(call rawfile, $(LIBASSERT))
+$(call rawfile, $(LIBALLOC))
+$(call rawfile, $(LIBFLT_ARITH))
+$(call rawfile, $(LIBPRINT))
+$(call rawfile, $(LIBSYSTEM))
+$(call rawfile, $(LIBSTRING))
$(call cprogram, $(BINDIR)/cemcom.ansi)
$(call installto, $(PLATDEP)/em_cemcom.ansi)
$(eval CEMCOMANSI := $o)
$(call llgen, $(OBJDIR)/$D, $(OBJDIR)/$D/tokenfile.g $D/expression.g)
- $(call file, $(LIBINPUT))
- $(call file, $(LIBASSERT))
- $(call file, $(LIBALLOC))
- $(call file, $(LIBPRINT))
- $(call file, $(LIBSYSTEM))
- $(call file, $(LIBSTRING))
+ $(call rawfile, $(LIBINPUT))
+ $(call rawfile, $(LIBASSERT))
+ $(call rawfile, $(LIBALLOC))
+ $(call rawfile, $(LIBPRINT))
+ $(call rawfile, $(LIBSYSTEM))
+ $(call rawfile, $(LIBSTRING))
$(call tabgen, $D/char.tab)
$(eval $q: $(INCDIR)/print.h)
$(eval $q: $(INCDIR)/system.h)
-$(call file, $(LIBEM_MES))
-$(call file, $(LIBEMK))
-$(call file, $(LIBEM_DATA))
-$(call file, $(LIBINPUT))
-$(call file, $(LIBASSERT))
-$(call file, $(LIBALLOC))
-$(call file, $(LIBFLT_ARITH))
-$(call file, $(LIBPRINT))
-$(call file, $(LIBSYSTEM))
-$(call file, $(LIBSTRING))
+$(call rawfile, $(LIBEM_MES))
+$(call rawfile, $(LIBEMK))
+$(call rawfile, $(LIBEM_DATA))
+$(call rawfile, $(LIBINPUT))
+$(call rawfile, $(LIBASSERT))
+$(call rawfile, $(LIBALLOC))
+$(call rawfile, $(LIBFLT_ARITH))
+$(call rawfile, $(LIBPRINT))
+$(call rawfile, $(LIBSYSTEM))
+$(call rawfile, $(LIBSTRING))
$(call cprogram, $(BINDIR)/em_m2)
$(call installto, $(PLATDEP)/em_m2)
$(foreach f, $g, \
$(call reset) \
- $(call file, lang/m2/libm2/$f) \
+ $(call rawfile, lang/m2/libm2/$f) \
$(call installto, $(PLATIND)/include/modula2/$f))
endef
$(eval $q: $(INCDIR)/print.h)
$(eval $q: $(INCDIR)/system.h)
-$(call file, $(LIBEM_MES))
-$(call file, $(LIBEMK))
-$(call file, $(LIBEM_DATA))
-$(call file, $(LIBINPUT))
-$(call file, $(LIBASSERT))
-$(call file, $(LIBALLOC))
-$(call file, $(LIBFLT_ARITH))
-$(call file, $(LIBPRINT))
-$(call file, $(LIBSYSTEM))
-$(call file, $(LIBSTRING))
+$(call rawfile, $(LIBEM_MES))
+$(call rawfile, $(LIBEMK))
+$(call rawfile, $(LIBEM_DATA))
+$(call rawfile, $(LIBINPUT))
+$(call rawfile, $(LIBASSERT))
+$(call rawfile, $(LIBALLOC))
+$(call rawfile, $(LIBFLT_ARITH))
+$(call rawfile, $(LIBPRINT))
+$(call rawfile, $(LIBSYSTEM))
+$(call rawfile, $(LIBSTRING))
$(call cprogram, $(BINDIR)/em_pc)
$(call installto, $(PLATDEP)/em_pc)
-Ih \
mach/proto/as/comm2.y > $$@
- $(call file, $(LIBOBJECT))
+ $(call rawfile, $(LIBOBJECT))
$(call cprogram, $(BINDIR)/$(PLATFORM)/as)
$(call installto, $(PLATDEP)/$(PLATFORM)/as)
endef
$(eval $q: $(INCDIR)/flt_arith.h)
-$(call file, $(LIBEM_DATA))
-$(call file, $(LIBFLT_ARITH))
+$(call rawfile, $(LIBEM_DATA))
+$(call rawfile, $(LIBFLT_ARITH))
$(call cprogram, $(BINDIR)/$(PLATFORM)/ncg)
$(call installto, $(PLATDEP)/$(PLATFORM)/ncg)
define build-simple-tool-impl
$(call reset)
$(call cfile, util/amisc/$1.c)
- $(call file, $(LIBOBJECT))
+ $(call rawfile, $(LIBOBJECT))
$(call cprogram, $(BINDIR)/$1)
$(eval INSTALLABLES += $o)
$(call installto, $(INSDIR)/bin/$1)
$(call cfile, $D/archiver.c)
- $(call file, $(LIBOBJECT))
- $(call file, $(LIBPRINT))
- $(call file, $(LIBSTRING))
- $(call file, $(LIBSYSTEM))
+ $(call rawfile, $(LIBOBJECT))
+ $(call rawfile, $(LIBPRINT))
+ $(call rawfile, $(LIBSTRING))
+ $(call rawfile, $(LIBSYSTEM))
$(call cprogram, $(BINDIR)/aal)
$(call installto, $(INSDIR)/bin/aal)
$(eval cflags += -DVERBOSE -DNOTCOMPACT)
$(eval cflags += -I$D/share -I$(OBJDIR)/$D)
$(foreach f, $2, $(call cfile, $f))
-$(call file, $(LIBDIR)/libegocore.a)
-$(call file, $(LIBEM_DATA))
+$(call rawfile, $(LIBDIR)/libegocore.a)
+$(call rawfile, $(LIBEM_DATA))
$(call cprogram, $(BINDIR)/ego/$(strip $1))
$(call installto, $(PLATDEP)/ego/$(strip $1))
$(eval EGO_MODULES += $q)
$(eval $q: $(INCDIR)/print.h $(INCDIR)/system.h)
$(eval $q: $(INCDIR)/em_path.h)
-$(call file, $(LIBPRINT))
-$(call file, $(LIBSTRING))
-$(call file, $(LIBSYSTEM))
+$(call rawfile, $(LIBPRINT))
+$(call rawfile, $(LIBSTRING))
+$(call rawfile, $(LIBSYSTEM))
$(call cprogram, $(BINDIR)/em_ego)
$(call installto, $(PLATDEP)/em_ego)
$(call cfile, $D/sym.c)
$(call cfile, $D/write.c)
- $(call file, $(LIBSTRING))
- $(call file, $(LIBOBJECT))
+ $(call rawfile, $(LIBSTRING))
+ $(call rawfile, $(LIBOBJECT))
$(call cprogram, $(BINDIR)/em_led)
$(call installto, $(PLATDEP)/em_led)
$(eval objdir := encode)
$(call cfile, $D/convert.c)
$(eval $q: $(INCDIR)/em_comp.h $(INCDIR)/em_codeEK.h)
- $(call file, $(LIBREAD_EMEV))
- $(call file, $(LIBEMK))
- $(call file, $(LIBEM_DATA))
- $(call file, $(LIBALLOC))
- $(call file, $(LIBPRINT))
- $(call file, $(LIBSTRING))
- $(call file, $(LIBSYSTEM))
+ $(call rawfile, $(LIBREAD_EMEV))
+ $(call rawfile, $(LIBEMK))
+ $(call rawfile, $(LIBEM_DATA))
+ $(call rawfile, $(LIBALLOC))
+ $(call rawfile, $(LIBPRINT))
+ $(call rawfile, $(LIBSTRING))
+ $(call rawfile, $(LIBSYSTEM))
$(call cprogram, $(BINDIR)/em_encode)
$(call installto, $(PLATDEP)/em_encode)
$(eval EM_ENCODE := $o)
$(eval objdir := decode)
$(call cfile, $D/convert.c)
$(eval $q: $(INCDIR)/em_comp.h $(INCDIR)/em_codeEK.h)
- $(call file, $(LIBREAD_EMKV))
- $(call file, $(LIBEME))
- $(call file, $(LIBEM_DATA))
- $(call file, $(LIBALLOC))
- $(call file, $(LIBPRINT))
- $(call file, $(LIBSTRING))
- $(call file, $(LIBSYSTEM))
+ $(call rawfile, $(LIBREAD_EMKV))
+ $(call rawfile, $(LIBEME))
+ $(call rawfile, $(LIBEM_DATA))
+ $(call rawfile, $(LIBALLOC))
+ $(call rawfile, $(LIBPRINT))
+ $(call rawfile, $(LIBSTRING))
+ $(call rawfile, $(LIBSYSTEM))
$(call cprogram, $(BINDIR)/em_decode)
$(call installto, $(PLATDEP)/em_decode)
$(eval EM_DECODE := $o)
$(eval $q: $(INCDIR)/em_spec.h)
-$(call file, $(LIBEM_DATA))
+$(call rawfile, $(LIBEM_DATA))
$(call cprogram, $(BINDIR)/ncgg)
$(eval NCGG := $o)
$(call flex, $(OBJDIR)/$D, $D/scan.l)
$(call dependson, $(OBJDIR)/$D/y.tab.h)
-$(call file, $(LIBEM_DATA))
-$(call file, -lfl)
+$(call rawfile, $(LIBEM_DATA))
+$(call rawfile, -lfl)
$(call cprogram, $(OBJDIR)/$D/mktab)
endef
+.PHONY: -lfl
+-lfl:
+
define build-opt-impl
$(call reset)
$(hide) $(BINDIR)/cpp.ansi < $D/patterns | $(OBJDIR)/$D/mktab > $$@
$(call cfile, $g)
-$(call file, $(LIBEM_DATA))
-$(call file, $(LIBASSERT))
-$(call file, $(LIBPRINT))
-$(call file, $(LIBALLOC))
-$(call file, $(LIBSYSTEM))
-$(call file, $(LIBSTRING))
+$(call rawfile, $(LIBEM_DATA))
+$(call rawfile, $(LIBASSERT))
+$(call rawfile, $(LIBPRINT))
+$(call rawfile, $(LIBALLOC))
+$(call rawfile, $(LIBSYSTEM))
+$(call rawfile, $(LIBSTRING))
$(eval $q: $(INCDIR)/em_spec.h)
$(eval $(build-opt-mktab-impl))
$(eval $(call build-opt-impl, em_opt,))
$(eval $(call build-opt-impl, em_opt2, -DGLOBAL_OPT))
-$(eval $(build-opt-manpage-impl))
\ No newline at end of file
+$(eval $(build-opt-manpage-impl))
$(call llgen, $(OBJDIR)/$D, $D/topgen.g)
- $(call file, $(LIBASSERT))
- $(call file, $(LIBPRINT))
- $(call file, $(LIBALLOC))
- $(call file, $(LIBSYSTEM))
- $(call file, $(LIBSTRING))
+ $(call rawfile, $(LIBASSERT))
+ $(call rawfile, $(LIBPRINT))
+ $(call rawfile, $(LIBALLOC))
+ $(call rawfile, $(LIBSYSTEM))
+ $(call rawfile, $(LIBSTRING))
$(call cprogram, $(BINDIR)/topgen)
TOPGEN := $o