First milestone of replacing the build system.

--HG--
branch : dtrg-buildsystem
rename : lang/cem/cpp.ansi/Parameters => lang/cem/cpp.ansi/parameters.h
This commit is contained in:
David Given
2013-05-12 20:45:55 +01:00
parent bcfb3d802f
commit c1aca7dae5
119 changed files with 1584 additions and 319 deletions

29
util/data/build.mk Normal file
View File

@@ -0,0 +1,29 @@
D := util/data
define util-data-impl
$(eval g := \
$(INCDIR)/em_spec.h \
$(INCDIR)/em_pseu.h \
$(INCDIR)/em_mnem.h \
$(OBJDIR)/$D/em_flag.c \
$(OBJDIR)/$D/em_pseu.c \
$(OBJDIR)/$D/em_mnem.c)
$(eval CLEANABLES += $g)
$g: $D/new_table h/em_table
@echo DATA
@mkdir -p $(dir $g)
$(hide) $D/new_table h/em_table $(INCDIR) $(OBJDIR)/$D
$(call reset)
$(call cfile, $(OBJDIR)/$D/em_flag.c)
$(call cfile, $(OBJDIR)/$D/em_pseu.c)
$(call cfile, $(OBJDIR)/$D/em_mnem.c)
$(call cfile, $D/em_ptyp.c)
$(call clibrary, $(LIBDIR)/libem_data.a)
$(eval LIBEM_DATA := $q)
endef
$(eval $(util-data-impl))