1
# Makefile for lgrind, a LaTeX prettyprinter
2
# for EMX+GCC with DMAKE, bound DOS-extender
4
# $Id: makefile.emx,v 1.1.1.1 1999/05/13 13:02:55 mike Exp $
6
# You will almost certainly want to change these
8
DEFSFILE=c:\\emtex\\texinput\\lgrind\\lgrindef
9
TEXINPUTS=c:\\emtex\\texinput\\lgrind
11
SOURCES=lgrind.c regexp.c regexp.h lgrindef.c lgrindef.h retest.c v2lg.c
12
TEXFILES=lgrind.doc lgrind.sty lgrind.ins
13
MANPAGES=lgrind.1 lgrindef.5
14
EXAMPLES=doc-lgrind.lg
16
OBJS=lgrind.o regexp.o retest.o lgrindef.o v2lg.o
22
# CFLAGS=-O2 -Dpopen=fopen -Dpclose=fclose
23
# There are operating systems and compilers without these...
32
lgrind.exe: lgrind.o lgrindef.o regexp.o
33
$(CC) $(CFLAGS) -o lgrind.exe lgrind.o lgrindef.o regexp.o -s
34
# alternatively you can bind the DOS-extender permanently:
35
# $(CC) $(CFLAGS) -o lgrind lgrind.o lgrindef.o regexp.o -s
36
# emxbind c:\emx\bin\emx.exe lgrind lgrind.exe -p
39
$(CC) $(CFLAGS) -DDEFSFILE=\"${DEFSFILE}\" -DHELPOPTION=\"${HELPOPTION}\"\
43
$(CC) $(CFLAGS) -o v2lg.exe v2lg.o
45
retest.exe: retest.o regexp.o
46
$(CC) $(CFLAGS) -o retest.exe retest.o regexp.o
49
-copy lgrind.exe $(DESTDIR)\\lgrind.exe
50
-copy lgrindef $(DEFSFILE)
51
-copy lgrind.dtx $(TEXINPUTS)\\lgrind.dtx
52
-copy lgrind.sty $(TEXINPUTS)\\lgrind.sty
55
-del $(CMDS) $(OBJS) retest.exe v2lg.exe