blob: 37917ac38eea7b6b5c036ee32f1136feb42c68ef (
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
-------------------------------------------------------------------------
@REM To compile dvi2xx.c for MSDOS with MSC Rel 6.0:
set MSC=\C600
set INCLUDE=%MSC%\include
set LIB=%MSC%\lib
set CFLAGS=-AL -W2 -Gs -Ox
set LFLAGS=/stack:9000 /EXEPACK
@REM For all version (LJ and 3812)
cl %CFLAGS% -c findfile.c ;;
@REM LaserJet+ and LaserJet II Version:
cl %CFLAGS% -DLJ2 dvi2xx.c findfile.obj -link %LFLAGS%
copy dvi2xx.exe dvilj2.exe
@REM LaserJet II P and LaserJet III and LaserJet 2000 Version:
cl %CFLAGS% -DLJ2P dvi2xx.c findfile.obj -link %LFLAGS%
copy dvi2xx.exe dvilj2p.exe
@REM IBM3812 Version:
cl %CFLAGS% -DIBM3812 dvi2xx.c findfile.obj -link %LFLAGS%
copy dvi2xx.exe dvi3812.exe
@REM LaserJet with 7 bit
cl %CFLAGS% -DLJ -DSEVENBIT dvi2xx.c findfile.obj -link %LFLAGS%
copy dvi2xx.exe dvilj.exe
@REM LaserJet II P with 7 bit and landscape
cl %CFLAGS% -DLJ2P -DSEVENBIT dvi2xx.c findfile.obj -link %LFLAGS%
copy dvi2xx.exe dviljp.exe
del dvi2xx.exe
-------------------------------------------------------------------------
@REM To compile dvi2xx.c under MSDOS for OS/2 with MSC Rel 6.0:
set MSC=\C600
set INCLUDE=%MSC%\include
set LIB=%MSC%\lib
set CFLAGS=-AL -W2 -Gs -UMSDOS -DOS2 -Ox -Lp -Fb
set LFLAGS=/stack:9000 /EXEPACK /PMTYPE:VIO
@REM For all version (LJ and 3812)
cl %CFLAGS% -c findfile.c ;;
@REM LaserJet II Version:
cl %CFLAGS% -DLJ2 dvi2xx.c findfile.obj -link %LFLAGS%
markexe -t windowcompat dvi2xx.exe
copy dvi2xx.exe odvilj2.exe
@REM LaserJet II P and LaserJet III and LaserJet 2000 Version:
cl %CFLAGS% -DLJ2P dvi2xx.c findfile.obj -link %LFLAGS%
markexe -t windowcompat dvi2xx.exe
copy dvi2xx.exe odvilj2p.exe
@REM LaserJet with 7 bit
cl %CFLAGS% -DLJ -DSEVENBIT dvi2xx.c findfile.obj -link %LFLAGS%
markexe -t windowcompat dvi2xx.exe
copy dvi2xx.exe odvilj.exe
@REM LaserJet II P with 7 bit and landscape
cl %CFLAGS% -DLJ2P -DSEVENBIT dvi2xx.c findfile.obj -link %LFLAGS%
markexe -t windowcompat dvi2xx.exe
copy dvi2xx.exe odviljp.exe
@REM IBM3812 Version:
cl %CFLAGS% -DIBM3812 dvi2xx.c findfile.obj -link %LFLAGS%
markexe -t windowcompat dvi2xx.exe
copy dvi2xx.exe odvi3812.exe
del dvi2xx.exe
-------------------------------------------------------------------------
# makefile for the dvi-to-(3812 || lj + || lj II || lj IIp ) filter.
#
CFLAGS=-O -s -Dunix
BINDIR=/usr/local/bin
MANDIR=/usr/man
MANSEC=1
CC=cc
# under Ultrix 4.1 use:
CFLAGS=-O1 -s -Dunix
# for gcc you might wish to set the following flags
CC=gcc
CFLAGS=-O2 -Dunix -ansi -pedantic
# under AIX 3.1 add the following line:
#LFLAGS=-lbsd
OBJS=findlj.o find3812.o
HFILES=commands.h config.h
PROGRAMS=dvilj2p dvilj2 dvi3812 dvilj dviljp
all: $(PROGRAMS) dvi2xx.txt
dvi3812: dvi2xx.c find3812.o $(HFILES)
$(CC) ${CFLAGS} -DIBM3812 -o $@ dvi2xx.c find3812.o ${LFLAGS}
dvilj2p: dvi2xx.c findlj.o $(HFILES)
$(CC) ${CFLAGS} -DLJ2P -o $@ dvi2xx.c findlj.o ${LFLAGS}
dvilj2: dvi2xx.c findlj.o $(HFILES)
$(CC) ${CFLAGS} -DLJ2 -o $@ dvi2xx.c findlj.o ${LFLAGS}
dvilj: dvi2xx.c findlj.o $(HFILES)
$(CC) ${CFLAGS} -DLJ -DSEVENBIT -o $@ dvi2xx.c findlj.o ${LFLAGS}
dviljp: dvi2xx.c findlj.o $(HFILES)
$(CC) ${CFLAGS} -DLJ2P -DSEVENBIT -o $@ dvi2xx.c findlj.o ${LFLAGS}
findlj.o: findfile.c config.h
$(CC) ${CFLAGS} -DLJ -c findfile.c
mv findfile.o $@
find3812.o: findfile.c config.h
$(CC) ${CFLAGS} -DIBM3812 -c findfile.c
mv findfile.o $@
clean:
rm -f core $(OBJS) $(PROGRAMS)
DISTFILES = \
./dvi2xx.c ./commands.h ./config.h ./findfile.c ./Makefile \
./testpage.tex ./dvi2xx.history ./dvi2xx.man ./graybox.sty \
./dvi2xx.make ./dvi2xx.051 ./README \
./MakeTeXPK ./lj3-filter ./printcap.sample ./README.vms \
./sample2.tex ./2up.sty ./README.dell-unix ./dvi2xx.tex
shar:
shar ${DISTFILES} > dvi2xx.shar
tar:
pdtar zcvf dvi2xx.tar.Z ${DISTFILES}
shar dvi2xx.tar.Z > dvi2xx.shar
testfiles:
./dvilj2 -eftable.lj2 ftable
./dvilj2p -eftable.lj2p ftable
./dvi3812 ftab2
install:
@for f in $(PROGRAMS); do \
echo installing $$f in $(BINDIR); \
install -c $$f $(BINDIR); \
done
cp dvi2xx.man dvi2xx.$(MANSEC)
install dvi2xx.$(MANSEC) $(MANDIR)/man$(MANSEC)
dvi2xx.txt: dvi2xx.man
-nroff -man dvi2xx.man | col -b > dvi2xx.txt
|