summaryrefslogtreecommitdiff
path: root/support/s2latex/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/s2latex/Makefile
Initial commit
Diffstat (limited to 'support/s2latex/Makefile')
-rw-r--r--support/s2latex/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/support/s2latex/Makefile b/support/s2latex/Makefile
new file mode 100644
index 0000000000..615a3d8e0b
--- /dev/null
+++ b/support/s2latex/Makefile
@@ -0,0 +1,21 @@
+CFLAGS=-O
+
+all: s2latex s2latex.1
+
+s2latex: y.tab.c lex.yy.c symtab.o symtab.h
+ cc ${CFLAGS} -o s2latex y.tab.c symtab.o -ll
+
+y.tab.c: s2l.y
+ yacc s2l.y
+
+lex.yy.c: s2l.l
+ lex s2l.l
+
+s2latex.1: s2latex.tbl
+ tbl s2latex.tbl >s2latex.1
+
+clean:
+ rm -f y.tab.c lex.yy.c core y.tab.h *.o s2latex.1
+
+mktar:
+ tar cvf s2latex.tar Makefile s2l.y s2l.l symtab.c symtab.h s2latex.tbl