File: makefile.dos

package info (click to toggle)
lgrind 3.67-9
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 636 kB
  • sloc: ansic: 2,261; makefile: 96; asm: 75; sh: 28
file content (34 lines) | stat: -rw-r--r-- 1,007 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Makefile for lgrind, a LaTeX prettyprinter

# $Id: makefile.dos,v 1.1.1.1 1999/05/13 13:02:55 mike Exp $

# You will possibly want to change this
DEFSFILE=$(EMTEXDIR:\\=\\\\)\\\\texinput\\\\lgrind\\\\lgrindef
# if you encounter problems with the last line, enter the path
# directly; if all else fails, modify lgrind.c

CC=bcc
SOURCES=lgrind.c regexp.c regexp.h lgrindef.c lgrindef.h retest.c v2lg.c
TEXFILES=lgrind.dtx lgrind.sty lgrind.ins
CMDS=lgrind.exe
OBJS=lgrind.obj regexp.obj retest.obj lgrindef.obj v2lg.obj

HELPOPTION=-?
# popen? pclose? This is DOS!
#CFLAGS=-v -mc -Dpopen=fopen -Dpclose=fclose 
CFLAGS=-O2 -mc -Dpopen=fopen -Dpclose=fclose
# Well, the DEFSFILE is still (semi-)fixed in the EXE...

.c.obj:
	$(CC) $(CFLAGS) -DDEFSFILE="$(DEFSFILE)" -DHELPOPTION="$(HELPOPTION)" -c $<

all:	$(CMDS)

lgrind.exe: lgrind.obj lgrindef.obj regexp.obj
	$(CC) $(CFLAGS) lgrind.obj lgrindef.obj regexp.obj

v2lg: v2lg.c
	$(CC) $(CFLAGS) v2lg

retest: retest.c regexp.c
	$(CC) $(CFLAGS) retest regexp