07453d184a
directories --- wrangling descr files was too hard. C programs can be built for cpm, pc86, linux386, linux68k! --HG-- branch : dtrg-buildsystem rename : util/ack/build.mk => util/led/build.mk rename : util/LLgen/build.mk => util/topgen/build.mk
34 lines
677 B
Makefile
34 lines
677 B
Makefile
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)
|
|
$(wordlist 2, $(words $g), $g): $(firstword $g)
|
|
$(firstword $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)
|
|
|
|
$(eval $q: $g)
|
|
|
|
$(call clibrary, $(LIBDIR)/libem_data.a)
|
|
$(eval LIBEM_DATA := $q)
|
|
|
|
endef
|
|
|
|
$(eval $(util-data-impl))
|