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

« back to all changes in this revision

Viewing changes to source/Makefile

  • 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
# make binaries
 
3
# $Id: Makefile,v 1.4 1999/12/18 21:54:29 mike Exp $
 
4
 
 
5
BINDIR=$(BASEDIR)/bin
 
6
MANDIR=$(BASEDIR)/man
 
7
 
 
8
CC=gcc
 
9
MANPAGES1=lgrind.1
 
10
MANPAGES5=lgrindef.5
 
11
OBJS=lgrind.o regexp.o retest.o lgrindef.o v2lg.o
 
12
 
 
13
CFLAGS=-O2
 
14
# CFLAGS=-Dpopen=fopen -Dpclose=fclose
 
15
# There are operating systems and compilers without these...
 
16
 
 
17
.PHONY: all install clean distribution
 
18
 
 
19
all:    lgrind
 
20
 
 
21
lgrind: lgrind.o lgrindef.o regexp.o
 
22
        $(CC) $(CFLAGS) -o lgrind lgrind.o lgrindef.o regexp.o
 
23
 
 
24
lgrind.o: lgrind.c lgutil.c
 
25
        $(CC) $(CFLAGS) -DDEFSFILE=\"$(DEFSFILE)\" -DVERSION=\"$(VERSION)\" -c lgrind.c
 
26
 
 
27
v2lg:   v2lg.o
 
28
        $(CC) $(CFLAGS) -o v2lg v2lg.o
 
29
 
 
30
retest: retest.o regexp.o
 
31
        $(CC) $(CFLAGS) -o retest retest.o regexp.o
 
32
 
 
33
install: all
 
34
        $(INSTALL) -s lgrind $(BINDIR)/lgrind
 
35
        $(INSTALL) -m 644 $(MANPAGES1) $(MANDIR)/man1
 
36
        $(INSTALL) -m 644 $(MANPAGES5) $(MANDIR)/man5
 
37
 
 
38
clean:
 
39
        rm -f $(OBJS) lgrind retest v2lg