From 51ca16080ed58e6f8044cb01f8f9a7e6353b5069 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 22 Feb 2016 15:24:34 -0500 Subject: eshtrans/Makefile: New file --- (limited to 'eshtrans/Makefile') diff --git a/eshtrans/Makefile b/eshtrans/Makefile new file mode 100644 index 0000000..6858026 --- /dev/null +++ b/eshtrans/Makefile @@ -0,0 +1,27 @@ +SOURCES = \ + main.esh \ + common.esh \ + tokens.esh \ + backend/main.esh \ + backend/codegen.esh \ + frontend/main.esh \ + frontend/parser.esh \ + frontend/lexer.esh +OBJECTS = $(SOURCES:.esh=.sh) + +all: eshtrans + +.SUFFIXES: +.SUFFIXES: .esh .sh + +clean: + rm -f eshtrans $(OBJECTS) + +eshtrans: $(OBJECTS) Makefile + cat $(OBJECTS) >$@ + printf 'main "$${@}"\n' >>$@ + +$(OBJECTS): Makefile + +.esh.sh: + cp $< $@ -- cgit v0.9.1