summaryrefslogtreecommitdiff
path: root/dviware/dvitops/makefile.dist
blob: f415f5ff72461100aff95c55690cde90bef39339 (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# $Header: /usr/jjc/dvitops/RCS/Makefile,v 1.13 90/08/14 13:26:13 jjc Rel $
BINDIR=/usr/local/bin
INPUTDIR=/usr/local/tex/inputs
FONTDIR=/usr/local/tex/fonts
MANDIR=/usr/local/man/man1
MANEXT=1
PSFONTDIR=/usr/local/psfonts
CFLAGS=-g
CC=cc
LIBS=-lm
COMPRESSFLAGS=

OBJECTS=main.o code.o read.o special.o pk.o font.o dvi.o util.o getopt.o tpic.o
SOURCES=main.c code.c read.c special.c pk.c font.c dvi.c util.c \
	getopt.c tpic.c dvitops.h util.h config.h \
	msdos.h unix.h primos.h vms.h cms.h
INPUTS=dvitops.pro dvitops.fnt ps.sty pspict.ps
TFMS=timessl.tfm timessc.tfm timesex.tfm symbolsl.tfm
FONTS=psfonts.map timessc.ps timessl.ps timesex.ps symbolsl.ps
FILES=README INSTALL config.doc dvitops.1 aftopl.1 psfont.1 dvitops.tex \
picture.ps timessc.afm timessl.afm timessc.ps timessl.ps timesex.ps \
timesex.pl symbolsl.ps symbolsl.afm ps.sty printafm.ps tex.enc \
Makefile makefile.ms dvitops.pro dvitops.fnt psfonts.map \
unix.h primos.h msdos.h vms.h cms.h \
dvitops.h util.h main.c font.c dvi.c pk.c special.c tpic.c util.c getopt.c \
read.c code.c aftopl.c psfont.c pfbtops.c pspict.sty pspict.ps  

all : dvitops psfont aftopl pfbtops

dvitops : $(OBJECTS)
	$(CC) $(CFLAGS) -o dvitops $(OBJECTS) $(LIBS)

psfont : psfont.o util.o
	$(CC) $(CFLAGS) -o psfont psfont.o util.o

aftopl : aftopl.o util.o
	$(CC) $(CFLAGS) -o aftopl aftopl.o util.o  -lm

pfbtops : pfbtops.o util.o
	$(CC) $(CFLAGS) -o pfbtops pfbtops.o util.o  -lm

psfont.o aftopl.o pfbtops.o : util.h config.h

$(OBJECTS) : dvitops.h util.h config.h

.SUFFIXES: .pl .tfm .afm

.pl.tfm :
	pltotf $< $@

.afm.pl :
	aftopl $<

timessl.tfm : timessl.pl
timessc.tfm : timessc.pl
timesex.tfm : timesex.pl
symbolsl.tfm : symbolsl.pl

timessl.pl timessc.pl symbolsl.pl : aftopl

clean:
	-rm -f *.o *~ dvitops psfont aftopl pfbtops core dvitops.log \
	TAGS dvitops.tar.Z *.tfm symbolsl.pl timessl.pl timessc.pl

install: all $(TFMS) $(FILES)
	cp dvitops psfont aftopl pfbtops $(BINDIR)
	cp  $(FONTS) $(PSFONTDIR)
	cp $(INPUTS) $(INPUTDIR)
	cp $(TFMS) $(FONTDIR)
	cp aftopl.1 $(MANDIR)/aftopl.$(MANEXT)
	cp psfont.1 $(MANDIR)/psfont.$(MANEXT)
	cp dvitops.1 $(MANDIR)/dvitops.$(MANEXT)

TAGS: $(SOURCES)
	etags $(SOURCES)
	
dvitops.tar.Z : $(FILES)
	tar cf - $(FILES) | compress $(COMPRESSFLAGS) >$@