2013-05-12 19:45:55 +00:00
|
|
|
D := util/ncgg
|
|
|
|
|
|
|
|
define build-ncgg-impl
|
|
|
|
|
|
|
|
$(call reset)
|
|
|
|
$(eval cflags += -I$D)
|
|
|
|
|
|
|
|
$(call yacc, $(OBJDIR)/$D, $D/cgg.y)
|
|
|
|
|
|
|
|
$(call flex, $(OBJDIR)/$D, $D/scan.l)
|
|
|
|
$(call dependson, $(OBJDIR)/$D/y.tab.h)
|
|
|
|
|
|
|
|
$(call cfile, $D/subr.c)
|
|
|
|
$(call cfile, $D/main.c)
|
|
|
|
$(call cfile, $D/coerc.c)
|
|
|
|
$(call cfile, $D/error.c)
|
|
|
|
$(call cfile, $D/emlookup.c)
|
|
|
|
$(call cfile, $D/expr.c)
|
|
|
|
$(call cfile, $D/instruct.c)
|
|
|
|
$(call cfile, $D/iocc.c)
|
|
|
|
$(call cfile, $D/lookup.c)
|
|
|
|
$(call cfile, $D/output.c)
|
|
|
|
$(call cfile, $D/set.c)
|
|
|
|
$(call cfile, $D/strlookup.c)
|
|
|
|
$(call cfile, $D/var.c)
|
|
|
|
$(call cfile, $D/hall.c)
|
|
|
|
|
|
|
|
$(eval CLEANABLES += $(OBJDIR)/$D/enterkeyw.c)
|
2014-11-09 17:47:51 +00:00
|
|
|
$(OBJDIR)/$D/enterkeyw.c: $D/cvtkeywords $D/keywords $(OBJDIR)/$D/y.tab.h
|
2013-05-12 19:45:55 +00:00
|
|
|
@echo KEYWORDS $$@
|
|
|
|
@mkdir -p $$(dir $$@)
|
|
|
|
$(hide) cd $$(dir $$@) && sh $(abspath $D/cvtkeywords) $(abspath $D/keywords)
|
|
|
|
$(call cfile, $(OBJDIR)/$D/enterkeyw.c)
|
|
|
|
|
2013-05-13 22:26:15 +00:00
|
|
|
$(eval $q: $(INCDIR)/em_spec.h)
|
|
|
|
|
2015-03-22 11:09:46 +00:00
|
|
|
$(call rawfile, $(LIBEM_DATA))
|
2013-05-12 19:45:55 +00:00
|
|
|
$(call cprogram, $(BINDIR)/ncgg)
|
|
|
|
$(eval NCGG := $o)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(build-ncgg-impl))
|