summaryrefslogtreecommitdiffstats
path: root/eshtrans/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'eshtrans/Makefile')
-rw-r--r--eshtrans/Makefile27
1 files changed, 27 insertions, 0 deletions
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 $< $@