ack/mach/proto/as/build.mk
David Given b0c238eb5d Made a start on building the runtimes for each platform and language; the
Linuxes all build.

--HG--
branch : dtrg-buildsystem
rename : modules/src/em_mes/build.mk => modules/src/read_em/build.mk
rename : plat/pc86/build.mk => plat/linux386/build.mk
rename : plat/pc86/build.mk => plat/linux68k/build.mk
rename : plat/pc86/build.mk => plat/linuxppc/build.mk
rename : util/ack/build.mk => util/misc/build.mk
2013-05-12 23:51:55 +01:00

43 lines
1.1 KiB
Makefile

define build-as-impl
$(call reset)
$(eval cflags += -Imach/$(ARCH)/as -I$(OBJDIR)/$D)
$(eval objdir := $(PLATFORM))
$(call cfile, mach/proto/as/comm3.c)
$(call dependson, $(OBJDIR)/$D/y.tab.h)
$(call cfile, mach/proto/as/comm4.c)
$(call dependson, $(OBJDIR)/$D/y.tab.h)
$(call cfile, mach/proto/as/comm5.c)
$(call dependson, $(OBJDIR)/$D/y.tab.h)
$(call cfile, mach/proto/as/comm6.c)
$(call dependson, $(OBJDIR)/$D/y.tab.h)
$(call cfile, mach/proto/as/comm7.c)
$(call dependson, $(OBJDIR)/$D/y.tab.h)
$(call cfile, mach/proto/as/comm8.c)
$(call dependson, $(OBJDIR)/$D/y.tab.h)
$(call yacc, $(OBJDIR)/$D, $(OBJDIR)/$D/preprocessed-comm2.y)
$(eval CLEANABLES += $(OBJDIR)/$D/preprocessed-comm2.y)
$(OBJDIR)/$D/preprocessed-comm2.y: mach/proto/as/comm2.y $(CPPANSI)
@echo PREPROCESS $$@
@mkdir -p $$(dir $$@)
$(hide) $(CPPANSI) -P \
-Imach/$(ARCH)/as \
-Imach/proto/as \
-Ih \
mach/proto/as/comm2.y > $$@
$(call file, $(LIBOBJECT))
$(call cprogram, $(BINDIR)/$(PLATFORM)/as)
$(call installto, $(PLATDEP)/$(PLATFORM)/as)
endef
build-as = $(eval $(build-as-impl))