summaryrefslogtreecommitdiff
path: root/src/runtime/c/teyjus/tables_gen/Makefile
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2012-07-31 15:16:04 +0000
committerkr.angelov <kr.angelov@gmail.com>2012-07-31 15:16:04 +0000
commit83b321d862472f31c0c9f7feca8360ad5bfe8a75 (patch)
tree0f0ef20ad78e25b320013c7bb160211a8612d4e9 /src/runtime/c/teyjus/tables_gen/Makefile
parent314662dd09d5d1480007faa79258b0e93cc2aa59 (diff)
An initial import of the teyjus source code in the C runtime for GF. The two runtime are still not connected but the source code compiles.
Diffstat (limited to 'src/runtime/c/teyjus/tables_gen/Makefile')
-rw-r--r--src/runtime/c/teyjus/tables_gen/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/runtime/c/teyjus/tables_gen/Makefile b/src/runtime/c/teyjus/tables_gen/Makefile
new file mode 100644
index 000000000..7cf2c532a
--- /dev/null
+++ b/src/runtime/c/teyjus/tables_gen/Makefile
@@ -0,0 +1,28 @@
+all: instrformats/gen pervasives/gen
+
+instrformats/gen: instrformats/y.tab.o instrformats/lex.yy.o \
+ instrformats/instrgen-c.o instrformats/instrgen-ocaml.o \
+ util/util.o
+ gcc -o instrformats/gen $^
+
+pervasives/gen: pervasives/y.tab.o pervasives/lex.yy.o \
+ pervasives/ccode.o pervasives/ocamlcode.o \
+ pervasives/pervgen-c.o pervasives/pervgen-ocaml.o \
+ pervasives/types.o pervasives/op.o \
+ util/util.o
+ gcc -o pervasives/gen $^
+
+.o : .c
+ gcc -c -o $@ $^
+
+instrformats/y.tab.c instrformats/y.tab.h : instrformats/instrformats.y
+ yacc -o instrformats/y.tab.c --defines=instrformats/y.tab.h instrformats/instrformats.y
+
+instrformats/lex.yy.c : instrformats/instrformats.l instrformats/y.tab.h
+ flex -o instrformats/lex.yy.c instrformats/instrformats.l
+
+pervasives/y.tab.c pervasives/y.tab.h : pervasives/pervasives.y
+ yacc -o pervasives/y.tab.c --defines=pervasives/y.tab.h pervasives/pervasives.y
+
+pervasives/lex.yy.c : pervasives/pervasives.l pervasives/y.tab.h
+ flex -o pervasives/lex.yy.c pervasives/pervasives.l