summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-22 15:24:34 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-22 15:24:34 (EST)
commit51ca16080ed58e6f8044cb01f8f9a7e6353b5069 (patch)
treeae1fb87ee6499e12bc30e04763166801ae1d0a08
parent589a8f036c12259895c24a500480b17b32d73159 (diff)
downloadeggshell-51ca16080ed58e6f8044cb01f8f9a7e6353b5069.zip
eggshell-51ca16080ed58e6f8044cb01f8f9a7e6353b5069.tar.gz
eggshell-51ca16080ed58e6f8044cb01f8f9a7e6353b5069.tar.bz2
eshtrans/Makefile: New file
-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 $< $@