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
This commit is contained in:
David Given
2013-05-12 23:51:55 +01:00
parent c1aca7dae5
commit b0c238eb5d
23 changed files with 501 additions and 92 deletions

View File

@@ -7,7 +7,7 @@ D := modules/src/em_code
define build-em_code-impl
$(call reset)
$(eval cflags += $3)
$(eval objdir := $D/$1)
$(eval objdir := $1)
$(call cfile, $D/bhcst.c)
$(call cfile, $D/bhdlb.c)
$(call cfile, $D/bhdnam.c)

View File

@@ -0,0 +1,54 @@
D := modules/src/read_em
define build-read_em-headers-impl
$(eval g := $(OBJDIR)/$D/C_mnem_narg.h)
$(eval CLEANABLES += $g)
$g: $D/m_C_mnem_na h/em_table
@echo M_C_MNEM_NA $g
@mkdir -p $(dir $g)
$(hide) cd $D && $(abspath $D/m_C_mnem_na) $(abspath h/em_table) > $(abspath $g)
$(eval g := $(OBJDIR)/$D/C_mnem.h)
$(eval CLEANABLES += $g)
$g: $D/m_C_mnem h/em_table
@echo M_C_MNEM $g
@mkdir -p $(dir $g)
$(hide) cd $D && $(abspath $D/m_C_mnem) $(abspath h/em_table) > $(abspath $g)
endef
define build-read_em-impl
$(call reset)
$(eval objdir := emev)
$(eval cflags += -I$(OBJDIR)/$D -DPRIVATE=static -DEXPORT= -DNDEBUG -DCHECKING)
$(call cfile, $D/EM_vars.c)
$(call cfile, $D/read_em.c)
$(call cfile, $D/mkcalls.c)
$(eval $q: $(OBJDIR)/$D/C_mnem_narg.h)
$(eval $q: $(OBJDIR)/$D/C_mnem.h)
$(call clibrary, $(LIBDIR)/lib_read_emeV.a)
$(eval LIBREAD_EMEV := $q)
$(call reset)
$(eval objdir := emkv)
$(eval cflags += -I$(OBJDIR)/$D -DPRIVATE=static -DEXPORT= -DNDEBUG -DCHECKING -DCOMPACT)
$(call cfile, $D/EM_vars.c)
$(call cfile, $D/read_em.c)
$(call cfile, $D/mkcalls.c)
$(eval $q: $(OBJDIR)/$D/C_mnem_narg.h)
$(eval $q: $(OBJDIR)/$D/C_mnem.h)
$(call clibrary, $(LIBDIR)/lib_read_emkV.a)
$(eval LIBREAD_EMKV := $q)
$(call reset)
$(eval q := $D/em_comp.h)
$(call installto, $(INCDIR)/em_comp.h)
endef
$(eval $(call build-read_em-headers-impl))
$(eval $(call build-read_em-impl))