| 1 |
# The following file and directory specifications may need changing at |
| 2 |
# your site: |
| 3 |
# |
| 4 |
# BINAREA and DVI2LIB are relative to PREFIX |
| 5 |
PREFIX=$(DESTDIR)/usr |
| 6 |
# where dvi2dvi is installed |
| 7 |
BINAREA=${PREFIX}/bin |
| 8 |
# |
| 9 |
# directory for dvi2dvi: where the auxiliary files are installed |
| 10 |
DVI2LIB=$(DESTDIR)/etc/texmf/dvi2dvi |
| 11 |
# |
| 12 |
# name of default fontdesc file in your site |
| 13 |
FONTDESC=fontdesc |
| 14 |
# |
| 15 |
DVI2PATH=. |
| 16 |
|
| 17 |
# kpathsea |
| 18 |
KPSELIB = -L${PREFIX}/lib -lkpathsea |
| 19 |
KPSEINC = -I${PREFIX}/include -DKPATHSEA |
| 20 |
|
| 21 |
# |
| 22 |
CC=gcc |
| 23 |
# |
| 24 |
CCFLAGS = -g -DPOSIX |
| 25 |
#CCFLAGS = -O # SUN etc ... |
| 26 |
#CCFLAGS = -O -traditional -DPOSIX # 386bsd (gcc 1.X) |
| 27 |
#CCFLAGS = -O -DPOSIX # Netbsd (gcc 2.X), Linux |
| 28 |
#CCFLAGS = -O -bsd # NeXT |
| 29 |
#CCFLAGS = -O -DMSDOS -DPOSIX # DJGCC (gcc 2.X) |
| 30 |
#CCFLAGS = -O -DSYSV # SysV |
| 31 |
#CCFLAGS = -O -DPOSIX -DSYSV -DSYSVIO # Solaris 2.X (acc, gcc -- warnings) |
| 32 |
#CCFLAGS = -O -DSYSVIO # Solaris 2.X (ucb/cc -- warnings) |
| 33 |
|
| 34 |
# BSD-type install assumed |
| 35 |
INSTALL=install |
| 36 |
|
| 37 |
# You don't have to change the definition variables in the folllowing. |
| 38 |
# |
| 39 |
CFLAGS = ${CCFLAGS} ${KPSEINC} |
| 40 |
CNFCFLAGS = ${CFLAGS} -DDVI2PATH=\"${DVI2PATH}\" \ |
| 41 |
-DDVI2LIB=\"${DVI2LIB}\" -DFONTDESC=\"//${FONTDESC}\" |
| 42 |
|
| 43 |
FILES = README doc Makefile lib-dist tools \ |
| 44 |
defs.h xxstdio.h global.h commands.h set.h dconv.h \ |
| 45 |
virfont.h bifont.h funcfont.h \ |
| 46 |
jsub.h \ |
| 47 |
dvi.h \ |
| 48 |
dvi2.c dviconv.c dfdcom.c fontcom.c set.c rfset.c vfset.c \ |
| 49 |
dconv.c run.c fontdesc.c scanfont.c \ |
| 50 |
virfont.c vfdcom.c \ |
| 51 |
bifont.c \ |
| 52 |
compfont.c decompfont.c execfont.c \ |
| 53 |
funcfont.c \ |
| 54 |
kpse.c kanji.c open.c io.c util.c \ |
| 55 |
xxstdio.c \ |
| 56 |
version.c \ |
| 57 |
dvi.c dvifont.c dvitfm.c |
| 58 |
|
| 59 |
DVI2OBJS = dvi2.o dviconv.o dfdcom.o fontcom.o set.o rfset.o vfset.o \ |
| 60 |
dconv.o run.o fontdesc.o scanfont.o \ |
| 61 |
virfont.o vfdcom.o \ |
| 62 |
bifont.o \ |
| 63 |
compfont.o decompfont.o execfont.o \ |
| 64 |
funcfont.o \ |
| 65 |
kpse.o kanji.o open.o io.o util.o \ |
| 66 |
xxstdio.o \ |
| 67 |
version.o |
| 68 |
DVIOBJS = dvi.o dvifont.o dvitfm.o |
| 69 |
|
| 70 |
all: dvi2dvi |
| 71 |
|
| 72 |
dvi2dvi: ${DVI2OBJS} ${DVIOBJS} |
| 73 |
${CC} -o $@ ${DVI2OBJS} ${DVIOBJS} ${KPSELIB} |
| 74 |
dvi2.o: Makefile |
| 75 |
${CC} -c ${CNFCFLAGS} dvi2.c |
| 76 |
|
| 77 |
newlib: |
| 78 |
-mkdir lib |
| 79 |
cp -pr lib-dist/* lib |
| 80 |
|
| 81 |
install: install-dvi2dvi |
| 82 |
|
| 83 |
install-dvi2dvi: dvi2dvi |
| 84 |
install -s -m 755 dvi2dvi ${BINAREA}/dvi2dvi |
| 85 |
|
| 86 |
install-lib: |
| 87 |
-mkdir ${DVI2LIB} |
| 88 |
cp -pr lib/* ${DVI2LIB} |
| 89 |
chmod -R a+r ${DVI2LIB} |
| 90 |
|
| 91 |
clean: |
| 92 |
rm -f dvi2dvi *.o *.orig core |
| 93 |
|
| 94 |
lint: |
| 95 |
lint *.c |
| 96 |
|
| 97 |
dist: |
| 98 |
tar cf - ${FILES} | gzip > dvi2dvi.tar.gz |
| 99 |
|
| 100 |
dvi2.o: dconv.h defs.h |
| 101 |
dviconv.o: dconv.h defs.h set.h |
| 102 |
dfdcom.o: dconv.h defs.h |
| 103 |
fontcom.o: defs.h set.h |
| 104 |
set.o: defs.h set.h |
| 105 |
rfset.o: defs.h set.h |
| 106 |
vfset.o: defs.h set.h |
| 107 |
dconv.o : dconv.h |
| 108 |
run.o: defs.h |
| 109 |
fontdesc.o: defs.h |
| 110 |
scanfont.o: dconv.h defs.h set.h |
| 111 |
virfont.o: defs.h set.h virfont.h |
| 112 |
vfdcom.o: dconv.h defs.h |
| 113 |
bifont.o: defs.h bifont.h |
| 114 |
compfont.o: defs.h set.h funcfont.h jsub.h |
| 115 |
decompfont.o: defs.h set.h funcfont.h jsub.h |
| 116 |
execfont.o: defs.h |
| 117 |
funcfont.o: defs.h funcfont.h |
| 118 |
kpse.o: defs.h |
| 119 |
kanji.o: defs.h jsub.h |
| 120 |
open.o: defs.h |
| 121 |
io.o: defs.h |
| 122 |
xxstdio.o: defs.h xxstdio.h |
| 123 |
|
| 124 |
dvi.o: defs.h dvi.h |
| 125 |
dvifont.o: defs.h dvi.h |
| 126 |
dvitfm.o: defs.h bifont.h dvi.h |