File: Makefile

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 (41 lines) | stat: -rw-r--r-- 985 bytes parent folder | download | duplicates (2)
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
35
36
37
38
39
40
41
# Makefile for lgrind, a LaTeX prettyprinter
# make binaries
# $Id: Makefile,v 1.4 1999/12/18 21:54:29 mike Exp $

BINDIR=$(BASEDIR)/bin
MANDIR=$(BASEDIR)/share/man

CC=gcc
MANPAGES1=lgrind.1
MANPAGES5=lgrindef.5
OBJS=lgrind.o regexp.o retest.o lgrindef.o v2lg.o

CFLAGS	+= -O2
CFLAGS	+= $(CPPFLAGS)
CFLAGS	+= $(LDFLAGS)
# CFLAGS=-Dpopen=fopen -Dpclose=fclose
# There are operating systems and compilers without these...

.PHONY:	all install clean distribution

all:	lgrind

lgrind: lgrind.o lgrindef.o regexp.o
	$(CC) $(CFLAGS) -o lgrind lgrind.o lgrindef.o regexp.o

lgrind.o: lgrind.c lgutil.c
	$(CC) $(CFLAGS) -DDEFSFILE=\"$(DEFSFILE)\" -DVERSION=\"$(VERSION)\" -c lgrind.c

v2lg:	v2lg.o
	$(CC) $(CFLAGS) -o v2lg v2lg.o

retest: retest.o regexp.o
	$(CC) $(CFLAGS) -o retest retest.o regexp.o

install: all
	$(INSTALL) -s lgrind $(BINDIR)/lgrind
	$(INSTALL) -m 644 $(MANPAGES1) $(MANDIR)/man1
	$(INSTALL) -m 644 $(MANPAGES5) $(MANDIR)/man5

clean:
	rm -f $(OBJS) lgrind retest v2lg