summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/labltk/compiler')
-rw-r--r--otherlibs/labltk/compiler/Makefile.nt36
1 files changed, 36 insertions, 0 deletions
diff --git a/otherlibs/labltk/compiler/Makefile.nt b/otherlibs/labltk/compiler/Makefile.nt
new file mode 100644
index 000000000..0187d2cb2
--- /dev/null
+++ b/otherlibs/labltk/compiler/Makefile.nt
@@ -0,0 +1,36 @@
+!include ..\support\Makefile.common.nt
+
+OBJS=tsort.cmo tables.cmo lexer.cmo parser.cmo compile.cmo intf.cmo \
+ maincompile.cmo
+
+tkcompiler : $(OBJS)
+ $(LABLC) $(LINKFLAGS) -o tkcompiler $(OBJS)
+
+lexer.ml: lexer.mll
+ $(LABLLEX) lexer.mll
+
+parser.ml parser.mli: parser.mly
+ $(LABLYACC) -v parser.mly
+
+clean :
+ rm -f *.cm* parser.ml parser.mli lexer.ml tkcompiler parser.output
+
+scratch :
+ rm -f *.cm* parser.ml parser.mli lexer.ml tkcompiler
+
+install:
+ cp tkcompiler $(LABLTKDIR)
+
+.SUFFIXES :
+.SUFFIXES : .mli .ml .cmi .cmo .mlp
+
+.mli.cmi:
+ $(LABLCOMP) $(COMPFLAGS) $<
+
+.ml.cmo:
+ $(LABLCOMP) $(COMPFLAGS) $<
+
+depend: parser.ml parser.mli lexer.ml
+ $(LABLDEP) *.mli *.ml > .depend
+
+!include .depend