~ubuntu-branches/ubuntu/oneiric/lgrind/oneiric

« back to all changes in this revision

Viewing changes to source/makefile.emx

  • Committer: Bazaar Package Importer
  • Author(s): Michael Piefel
  • Date: 2002-01-28 11:16:34 UTC
  • Revision ID: james.westby@ubuntu.com-20020128111634-gx07d7rqveysbcc1
Tags: upstream-3.67
ImportĀ upstreamĀ versionĀ 3.67

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for lgrind, a LaTeX prettyprinter
 
2
# for EMX+GCC with DMAKE, bound DOS-extender
 
3
 
 
4
# $Id: makefile.emx,v 1.1.1.1 1999/05/13 13:02:55 mike Exp $
 
5
 
 
6
# You will almost certainly want to change these
 
7
DESTDIR=c:\\emtex\\bin
 
8
DEFSFILE=c:\\emtex\\texinput\\lgrind\\lgrindef
 
9
TEXINPUTS=c:\\emtex\\texinput\\lgrind
 
10
 
 
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
 
15
CMDS=lgrind.exe
 
16
OBJS=lgrind.o regexp.o retest.o lgrindef.o v2lg.o
 
17
 
 
18
CC=gcc
 
19
HELPOPTION=-?
 
20
CFLAGS=-O2 -DOS2
 
21
# CFLAGS=-g
 
22
# CFLAGS=-O2 -Dpopen=fopen -Dpclose=fclose
 
23
# There are operating systems and compilers without these...
 
24
 
 
25
.SUFFIXES: .o .c
 
26
 
 
27
.c.o:
 
28
        $(CC) -c $(CFLAGS) $<
 
29
 
 
30
all:    $(CMDS)
 
31
 
 
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
 
37
 
 
38
lgrind.o: lgrind.c
 
39
        $(CC) $(CFLAGS) -DDEFSFILE=\"${DEFSFILE}\" -DHELPOPTION=\"${HELPOPTION}\"\
 
40
                            -c lgrind.c
 
41
 
 
42
v2lg.exe: v2lg.o
 
43
        $(CC) $(CFLAGS) -o v2lg.exe v2lg.o
 
44
 
 
45
retest.exe: retest.o regexp.o
 
46
        $(CC) $(CFLAGS) -o retest.exe retest.o regexp.o
 
47
 
 
48
install: all
 
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
 
53
 
 
54
clean:
 
55
        -del $(CMDS) $(OBJS) retest.exe v2lg.exe