2013-05-12 19:45:55 +00:00
|
|
|
D := util/data
|
|
|
|
|
|
|
|
define util-data-impl
|
|
|
|
|
|
|
|
$(eval g := \
|
2015-03-22 23:09:41 +00:00
|
|
|
$(OBJDIR)/$D/em_flag.c \
|
|
|
|
$(OBJDIR)/$D/em_pseu.c \
|
|
|
|
$(OBJDIR)/$D/em_mnem.c \
|
2013-05-12 19:45:55 +00:00
|
|
|
$(INCDIR)/em_spec.h \
|
|
|
|
$(INCDIR)/em_pseu.h \
|
|
|
|
$(INCDIR)/em_mnem.h \
|
2015-03-22 23:09:41 +00:00
|
|
|
)
|
2013-05-12 19:45:55 +00:00
|
|
|
|
|
|
|
$(eval CLEANABLES += $g)
|
2013-05-12 22:51:55 +00:00
|
|
|
$(wordlist 2, $(words $g), $g): $(firstword $g)
|
|
|
|
$(firstword $g): $D/new_table h/em_table
|
2013-05-12 19:45:55 +00:00
|
|
|
@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)
|
2013-05-13 22:26:15 +00:00
|
|
|
|
|
|
|
$(eval $q: $g)
|
|
|
|
|
2013-05-12 19:45:55 +00:00
|
|
|
$(call clibrary, $(LIBDIR)/libem_data.a)
|
|
|
|
$(eval LIBEM_DATA := $q)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(util-data-impl))
|