summaryrefslogtreecommitdiff
path: root/dviware/umddvi/lib/makefile.3b
blob: 1cd59b1f2cb58b88f02e4a07eb8ed9d41e508718 (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Makefile for ctex/lib (C-TeX library routines)
#
DESTDIR=
# Alas, -R makes ALL initialised variables read-only, and we cannot
# use it on font files; hence, FCFLAGS.
CFLAGS=	-O -I../h -Dsys5
FCFLAGS=-O -I../h -Dsys5

# This will be overridden by ../Makefile, but just in case...
CONFFILE=/usr/local/lib/tex/fontdesc

# 4.1BSD Vax:
#ASSRC=	bcopy.s bzero.s
#ASOBJ=	bcopy.o bzero.o
#MISCC=	getopt.c
#MISCO=	getopt.o

# 4.2BSD Vax:
#ASSRC=
#ASOBJ=
#MISCC=	getopt.c
#MISCO=	getopt.o

# 4.2BSD Sun:
#ASSRC=
#ASOBJ=
#MISCC=
#MISCO=

# 4.2BSD Pyramid:
#ASSRC=
#ASOBJ=
#MISCC=	getopt.c
#MISCO=	getopt.o

# 4.3BSD Vax:
ASSRC=
ASOBJ=
MISCC=
MISCO=

# all
CSRC=	conv.c dviclass.c error.c findpost.c fio.c font.c font_subr.c \
	gfclass.c gripes.c magfactor.c rotate.c scaletfm.c scanpost.c \
	search.c seek.c split.c strsave.c tfm.c ${MISCC}
COBJ=	conv.o dviclass.o error.o findpost.o fio.o font.o font_subr.o \
	gfclass.o gripes.o magfactor.o rotate.o scaletfm.o scanpost.o \
	search.o seek.o split.o strsave.o tfm.o ${MISCO}
FSRC=	gffont.c pkfont.c pxlfont.c tfmfont.c
FOBJ=	gffont.o pkfont.o pxlfont.o tfmfont.o

OBJS=	${COBJ} ${ASOBJ} ${FOBJ}

all: lib.a

lib.a: ${OBJS}
	ar cr lib.a ${OBJS}

# no installation is necessary; this entry is just for standardisation
install:

clean:
	rm -f *.o lib.a

depend: ${CSRC} ${FSRC}
	${CC} -M ${CFLAGS} ${CSRC} ${FSRC} | \
	    awk '{ if ($$1 != prev) { if (rec != "") print rec; \
		rec = $$0; prev = $$1; } \
		else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
		else rec = rec " " $$2 } } \
		END { print rec }' >makedep
	echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
	echo '$$r makedep' >>eddep
	echo 'w' >>eddep
	cp Makefile Makefile.bak
	ed - Makefile <eddep
	rm eddep makedep
	echo '# DEPENDENCIES MUST END AT END OF FILE' >>Makefile
	echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >>Makefile
	echo '# see make depend above' >>Makefile

#pxl.o:
#	${CC} ${CFLAGS} -c -DPXLPATH=\"${PXLPATH}\" pxl.c

# font.o needs to know where to find the font description file
font.o:
	${CC} ${CFLAGS} -c -DCONFFILE=\"${CONFFILE}\" font.c

# special rules for font objects
${FOBJ}:
	${CC} ${FCFLAGS} -c $*.c

# DO NOT DELETE THIS LINE -- make depend uses it

conv.o: conv.c ../h/types.h ../h/conv.h
dviclass.o: dviclass.c ../h/dviclass.h
error.o: error.c /usr/include/stdio.h /usr/include/varargs.h
findpost.o: findpost.c /usr/include/stdio.h ../h/types.h ../h/dvicodes.h
findpost.o: ../h/fio.h
fio.o: fio.c /usr/include/stdio.h ../h/types.h ../h/fio.h
font.o: font.c /usr/include/stdio.h /usr/include/errno.h ../h/types.h
font.o: ../h/conv.h ../h/font.h
font_subr.o: font_subr.c ../h/font.h ../h/types.h
gfclass.o: gfclass.c ../h/gfclass.h
gripes.o: gripes.c /usr/include/stdio.h ../h/types.h
magfactor.o: magfactor.c
rotate.o: rotate.c ../h/font.h ../h/types.h
scaletfm.o: scaletfm.c ../h/types.h ../h/font.h
scanpost.o: scanpost.c /usr/include/stdio.h ../h/types.h ../h/dvicodes.h
scanpost.o: ../h/fio.h ../h/postamble.h
search.o: search.c ../h/types.h ../h/search.h
seek.o: seek.c /usr/include/stdio.h /usr/include/sys/param.h
seek.o: /usr/include/signal.h
seek.o: /usr/include/sys/types.h /usr/include/sys/fcntl.h
seek.o: /usr/include/sys/stat.h
split.o: split.c /usr/include/ctype.h
strsave.o: strsave.c
tfm.o: tfm.c /usr/include/stdio.h ../h/types.h ../h/fio.h ../h/tfm.h
gffont.o: gffont.c /usr/include/stdio.h /usr/include/sys/types.h
gffont.o: /usr/include/sys/stat.h ../h/types.h ../h/font.h ../h/gfcodes.h
gffont.o: ../h/gfclass.h ../h/num.h
pkfont.o: pkfont.c /usr/include/stdio.h /usr/include/sys/types.h
pkfont.o: /usr/include/sys/stat.h ../h/types.h ../h/font.h ../h/num.h
pxlfont.o: pxlfont.c /usr/include/stdio.h /usr/include/sys/types.h
pxlfont.o: /usr/include/sys/stat.h /usr/include/errno.h ../h/types.h
pxlfont.o: ../h/font.h ../h/fio.h
tfmfont.o: tfmfont.c /usr/include/stdio.h /usr/include/sys/types.h
tfmfont.o: /usr/include/sys/stat.h ../h/types.h ../h/conv.h ../h/font.h
tfmfont.o: ../h/tfm.h
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY
# see make depend above