File: Makefile

package info (click to toggle)
dvi2dvi 2.0alpha-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 404 kB
  • ctags: 1,164
  • sloc: ansic: 6,398; makefile: 130; sh: 8
file content (126 lines) | stat: -rw-r--r-- 2,992 bytes parent folder | download | duplicates (3)
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
# The following file and directory specifications may need changing at
# your site:
#
# BINAREA and DVI2LIB are relative to PREFIX
PREFIX=$(DESTDIR)/usr
# where dvi2dvi is installed
BINAREA=${PREFIX}/bin
#
# directory for dvi2dvi: where the auxiliary files are installed
DVI2LIB=$(DESTDIR)/etc/texmf/dvi2dvi
#
# name of default fontdesc file in your site
FONTDESC=fontdesc
#
DVI2PATH=.:/etc/texmf/dvi2dvi

# kpathsea
KPSELIB = -L${PREFIX}/lib -lkpathsea
KPSEINC = -I${PREFIX}/include -DKPATHSEA

#
CC=gcc
#
#CCFLAGS = -g -DPOSIX
#CCFLAGS = -O		# SUN etc ...
#CCFLAGS = -O -traditional -DPOSIX	# 386bsd (gcc 1.X)
CCFLAGS = -O -DPOSIX	# Netbsd (gcc 2.X), Linux
#CCFLAGS = -O -bsd	# NeXT
#CCFLAGS = -O -DMSDOS -DPOSIX	# DJGCC (gcc 2.X)
#CCFLAGS = -O -DSYSV	# SysV
#CCFLAGS = -O -DPOSIX -DSYSV -DSYSVIO	# Solaris 2.X (acc, gcc -- warnings)
#CCFLAGS = -O -DSYSVIO	# Solaris 2.X (ucb/cc -- warnings)

# BSD-type install assumed
INSTALL=install

# You don't have to change the definition variables in the folllowing.
#
CFLAGS = ${CCFLAGS} ${KPSEINC}
CNFCFLAGS = ${CFLAGS} -DDVI2PATH=\"${DVI2PATH}\" \
	    -DDVI2LIB=\"${DVI2LIB}\" -DFONTDESC=\"//${FONTDESC}\"

FILES = README doc Makefile lib-dist tools \
	defs.h xxstdio.h global.h commands.h set.h dconv.h \
	virfont.h bifont.h funcfont.h \
	jsub.h \
	dvi.h \
	dvi2.c dviconv.c dfdcom.c fontcom.c set.c rfset.c vfset.c \
	dconv.c run.c fontdesc.c scanfont.c \
	virfont.c vfdcom.c \
	bifont.c \
	compfont.c decompfont.c execfont.c \
	funcfont.c \
	kpse.c kanji.c open.c io.c util.c \
	xxstdio.c \
	version.c \
	dvi.c dvifont.c dvitfm.c

DVI2OBJS = dvi2.o dviconv.o dfdcom.o fontcom.o set.o rfset.o vfset.o \
	dconv.o run.o fontdesc.o scanfont.o \
	virfont.o vfdcom.o \
	bifont.o \
	compfont.o decompfont.o execfont.o \
	funcfont.o \
	kpse.o kanji.o open.o io.o util.o \
	xxstdio.o \
	version.o
DVIOBJS = dvi.o dvifont.o dvitfm.o

all: dvi2dvi

dvi2dvi: ${DVI2OBJS} ${DVIOBJS}
	${CC} -o $@ ${DVI2OBJS} ${DVIOBJS} ${KPSELIB}
dvi2.o: Makefile
	${CC} -c ${CNFCFLAGS} dvi2.c

newlib:
	-mkdir lib
	cp -pr lib-dist/* lib

install: install-dvi2dvi

install-dvi2dvi: dvi2dvi
	install -s -m 755 dvi2dvi ${BINAREA}/dvi2dvi

install-lib:
	-mkdir ${DVI2LIB}
	cp -pr lib/* ${DVI2LIB}
	chmod -R a+r ${DVI2LIB}

clean:	
	rm -f dvi2dvi *.o *.orig core

lint:
	lint *.c

dist:
	tar cf - ${FILES} | gzip > dvi2dvi.tar.gz

dvi2.o: dconv.h defs.h
dviconv.o: dconv.h defs.h set.h
dfdcom.o: dconv.h defs.h
fontcom.o: defs.h set.h
set.o: defs.h set.h
rfset.o: defs.h set.h
vfset.o: defs.h set.h
dconv.o : dconv.h
run.o: defs.h
fontdesc.o: defs.h
scanfont.o: dconv.h defs.h set.h
virfont.o: defs.h set.h virfont.h
vfdcom.o: dconv.h defs.h
bifont.o: defs.h bifont.h
compfont.o: defs.h set.h funcfont.h jsub.h
decompfont.o: defs.h set.h funcfont.h jsub.h
execfont.o: defs.h
funcfont.o: defs.h funcfont.h
kpse.o: defs.h
kanji.o: defs.h jsub.h
open.o: defs.h
io.o: defs.h
xxstdio.o: defs.h xxstdio.h

dvi.o: defs.h dvi.h
dvifont.o: defs.h dvi.h
dvitfm.o: defs.h bifont.h dvi.h