diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/kamal/makefile.msc |
Initial commit
Diffstat (limited to 'support/kamal/makefile.msc')
-rw-r--r-- | support/kamal/makefile.msc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/support/kamal/makefile.msc b/support/kamal/makefile.msc new file mode 100644 index 0000000000..dec2b879c8 --- /dev/null +++ b/support/kamal/makefile.msc @@ -0,0 +1,44 @@ +#----------------------------------------------------------------------- +# Makefile for textools +# Make targets: +# (none) same as all +# all produces all executables +# lint run lint on sources +# clean remove object files +# share make ../textools.sh for mailing +# + +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) + +share: + make clean + makescript ../textools.sh * + +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: + \rm -f *.o core *junk* lint.lst |