summaryrefslogtreecommitdiff
path: root/support/kamal/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'support/kamal/makefile')
-rw-r--r--support/kamal/makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/support/kamal/makefile b/support/kamal/makefile
new file mode 100644
index 0000000000..ad0c4eb16a
--- /dev/null
+++ b/support/kamal/makefile
@@ -0,0 +1,30 @@
+CFLAGS = -O
+LINTFLAGS = -abchnpux
+CSUBS = Expand.c Match.c subs.c
+OSUBS = Expand.o Match.o subs.o
+B =
+
+default: all
+
+all: texexpand detex texeqn texmatch
+
+texexpand: texexpand1.o $(OSUBS)
+ cc $(CFLAGS) -o $(B)texexpand texexpand1.o $(OSUBS)
+
+detex: detex1.o DeTeX.o $(OSUBS)
+ cc $(CFLAGS) -o $(B)detex detex1.o DeTeX.o $(OSUBS)
+
+texeqn: texeqn1.o Eqn.o $(OSUBS)
+ cc $(CFLAGS) -o $(B)texeqn texeqn1.o Eqn.o $(OSUBS)
+
+texmatch: texmatch1.o $(OSUBS)
+ cc $(CFLAGS) -o $(B)texmatch texmatch1.o $(OSUBS)
+
+lint:
+ lint $(LINTFLAGS) texexpand1.c $(CSUBS) > texexpand.lnt
+ lint $(LINTFLAGS) detex1.c DeTeX.c $(CSUBS) > detex.lnt
+ lint $(LINTFLAGS) texeqn1.c Eqn.c $(CSUBS) > texeqn.lnt
+ lint $(LINTFLAGS) texmatch1.c $(CSUBS) > texmatch.lnt
+
+clean:
+ /bin/rm -f *.o texexpand detex texeqn texmatch core *junk*