summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-01-10 09:15:55 -0500
committerOri Bernstein <ori@eigenstate.org>2012-01-10 09:15:55 -0500
commit587802404abe50162411bbbebb7480cc871acd05 (patch)
tree3a18f9d9cf36afe0c2da438c5db931d3a0a0de83
parent2873bffdeef94e269d5bc6e0d229fdafa973ad5d (diff)
downloadmc-587802404abe50162411bbbebb7480cc871acd05.tar.gz
Move main file to backend.
-rw-r--r--8/Makefile9
-rw-r--r--8/main.c (renamed from parse/main.c)0
-rw-r--r--Makefile3
-rw-r--r--parse/Makefile6
4 files changed, 12 insertions, 6 deletions
diff --git a/8/Makefile b/8/Makefile
new file mode 100644
index 0000000..48d2104
--- /dev/null
+++ b/8/Makefile
@@ -0,0 +1,9 @@
+BIN=8m
+OBJ=main.o
+
+CFLAGS+=-I../parse
+LDFLAGS+=-L../parse -lparse
+
+include ../mk/lexyacc.mk
+include ../mk/c.mk
+
diff --git a/parse/main.c b/8/main.c
index 4f6986a..4f6986a 100644
--- a/parse/main.c
+++ b/8/main.c
diff --git a/Makefile b/Makefile
index 0779d93..381f7ab 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
-SUB = parse
+SUB = parse \
+ 8
-include config.mk
include mk/c.mk
diff --git a/parse/Makefile b/parse/Makefile
index 1cd2159..445d41b 100644
--- a/parse/Makefile
+++ b/parse/Makefile
@@ -1,10 +1,9 @@
-BIN=pt
+LIB=libparse.a
OBJ=bitset.o \
dump.o \
gram.o \
htab.o \
infer.o \
- main.o \
names.o \
node.o \
pickle.o \
@@ -18,6 +17,3 @@ CLEAN=gram.c
include ../mk/lexyacc.mk
include ../mk/c.mk
-
-ops.o: ../mc/ops.c
- $(CC) -c $(CFLAGS) $<