Debian Codegraph @

texk/dvipsk/vmcms/Makefile.IBM

raw
1 #
2 # Makefile for dvips. Edit this first part of the file.
3 #
4 # First, the things that absolutely must be edited for your system.
5 # Please, don't forget to edit MakeTeXPK in the same way!
6
7 # the default path to search for TFM files
8 # (this usually is identical to TeX's defaultfontpath, which omits `.')
9 # (private fonts are given an explicit directory, which overrides the path)
10 # TFMPATH = /LocalLibrary/Fonts/TeXFonts/tfm:/usr/lib/tex/fonts/tfm
11 TFMPATH = /usr/local/lib/tex/fonts/tfm:/local/lib/tex/fonts/tfm
12
13 # the default path to search for PK files (usually omits `.')
14 # Don't forget to add the directory that
15 # MakeTeXPK puts the files! (In this case, /LocalLibrary/Fonts...)
16 # PKPATH = /LocalLibrary/Fonts/TeXFonts/pk:/usr/lib/tex/fonts/pk
17 PKPATH = /local/lib/tex/fonts/%m/%f.%d%p:/usr/local/lib/tex/fonts/%m/%f.%d%p:
18
19 # the default path to search for VF files (usually omits `.')
20 # VFPATH = /LocalLibrary/Fonts/TeXFonts/vf:/usr/lib/tex/fonts/vf
21 VFPATH = /local/lib/tex/fonts/vf:/usr/local/lib/tex/fonts/vf
22
23 # additional directories in which to search for subdirectories to find
24 # both tfm and pk files
25 FONTSUBDIRPATH =
26
27 # where the config files go
28 # CONFIGDIR = /usr/lib/tex/ps
29 CONFIGDIR = /local/lib/tex/dvips
30
31 # the default path to search for config files
32 # CONFIGPATH = .:$(CONFIGDIR)
33 CONFIGPATH = .:$(CONFIGDIR):/usr/local/lib/tex/dvips
34
35 # the name of your config file
36 # CONFIGFILE = config.ps
37 CONFIGFILE = config.ps
38
39 # where the header PS files go
40 # HEADERDIR = /usr/lib/tex/ps
41 HEADERDIR = /local/lib/tex/dvips
42
43 # the default path to search for header files
44 # HEADERPATH = .:$(HEADERDIR)
45 HEADERPATH = .:$(HEADERDIR):/usr/local/lib/tex/dvips
46
47 # where epsf.tex and rotate.tex go (usually the TeX macros directory)
48 # TEXMACRODIR = /usr/lib/tex/inputs
49 TEXMACRODIR = /local/lib/tex/inputs
50
51 # the default path to search for epsf and psfiles
52 # (usually the same as TeX's defaultinputpath)
53 # FIGPATH = .:..:/usr/lib/tex/inputs
54 FIGPATH = .:..:/local/lib/tex/inputs:/usr/local/lib/tex/inputs
55
56 # change -DDEFRES=300 or whatever is required
57 # if the default resolution is not 300 dpi,
58 # add -DDEBUG to turn on debugging capability
59 # add -DTPIC for tpic support
60 # add -DFONTLIB to search font libraries
61 # add -DSEARCH_SUBDIRECTORIES to search the FONTSUBDIRPATH.
62 # add -DHAVE_GETCWD if you have getcwd (relevant only for subdir searching)
63 # add -DIBM6000 for compiling on IBM 6000 systems
64 # (for VM/CMS, see the MKDVIPS.EXEC file in the vmcms subdirectory).
65 DEFS= -DTPIC -DDEBUG -DDEFRES=300 -DIBM6000
66
67 # either use
68 # OPT = -g -Wall
69 # or
70 #OPT = -O -s -Wall
71 OPT = -O
72
73 # libraries to include (-lm -lc on most systems)
74 #FLIBS= -lNeXT_s -lsys_s
75 FLIBS= -lm
76
77 # If you are compiling dvips for suid or other privileges, you will
78 # definitely want to define the following symbol; else don't.
79 # SECURE = -DSECURE
80
81 # If you want EMTEX specials, define the following.
82 #EMTEX = -DEMTEX
83
84 # for SYSV (and friends which use <string.h> instead of <strings.h>)
85 # define the c-compiler flag
86 # add -D_POSIX_SOURCE if you are POSIX (also define SYSV) (only relevant
87 # for subdir searching)
88 # SYS = -DSYSV
89
90 # Define this to be whatever you use for installation. If you don't have
91 # install, use a script that invokes copy and chmod's the files
92 # appropriately.
93 # INSTALL = install
94 INSTALL = install
95
96 # where the installed binary goes
97 # BINDIR = /usr/bin
98 BINDIR =
99
100 PATHS = -DTFMPATH=\"$(TFMPATH)\" \
101 -DPKPATH=\"$(PKPATH)\" \
102 -DVFPATH=\"$(VFPATH)\" \
103 -DHEADERPATH=\"$(HEADERPATH)\" \
104 -DCONFIGPATH=\"$(CONFIGPATH)\" \
105 -DCONFIGFILE=\"$(CONFIGFILE)\" \
106 -DFONTSUBDIRPATH=\"$(FONTSUBDIRPATH)\" \
107 -DFIGPATH=\"$(FIGPATH)\"
108
109 CFLAGS = $(DEFS) $(PATHS) $(OPT) $(SYS) $(SECURE) $(EMTEX) $(DEFPFMT)
110
111 SRC = dospecial.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
112 download.c prescan.c scanpage.c skippage.c output.c scalewidth.c \
113 dosection.c dopage.c resident.c search.c unpack.c drawPS.c \
114 header.c makefont.c repack.c virtualfont.c dpicheck.c finclude.c \
115 pprescan.c papersiz.c flib.c color.c bbox.c emspecial.c
116
117 OBJ = dospecial.o dviinput.o fontdef.o loadfont.o dvips.o tfmload.o \
118 download.o prescan.o scanpage.o skippage.o output.o scalewidth.o \
119 dosection.o dopage.o resident.o search.o unpack.o drawPS.o \
120 header.o makefont.o repack.o virtualfont.o dpicheck.o finclude.o \
121 pprescan.o papersiz.o flib.o color.o bbox.o emspecial.o
122
123 all : afm2tfm dvips tex.pro texps.pro texc.pro special.pro finclude.pro \
124 color.pro
125
126 dvips : $(OBJ)
127 $(CC) $(CFLAGS) $(OBJ) $(LIBS) $(FLIBS) -o dvips
128
129 afm2tfm: afm2tfm.c
130 $(CC) $(CFLAGS) -o afm2tfm afm2tfm.c $(LIBS) $(FLIBS)
131
132 $(OBJ) : dvips.h debug.h Makefile
133 flib.o resident.o dvips.o loadfont.o tfmload.o : paths.h
134
135 squeeze : squeeze.o
136 $(CC) $(CFLAGS) squeeze.o -o squeeze $(LIBS) $(FLIBS)
137
138 tex.pro : tex.lpro squeeze
139 ./squeeze <tex.lpro > tex.pro
140
141 texc.pro: texc.lpro squeeze
142 ./squeeze <texc.lpro >texc.pro
143
144 texc.lpro: texc.script tex.lpro
145 ./texc.script tex.lpro texc.lpro
146
147 texps.pro : texps.lpro squeeze
148 ./squeeze <texps.lpro >texps.pro
149
150 special.pro : special.lpro squeeze
151 ./squeeze <special.lpro >special.pro
152
153 finclude.pro : finclude.lpro squeeze
154 ./squeeze <finclude.lpro >finclude.pro
155
156 color.pro : color.lpro squeeze
157 ./squeeze <color.lpro >color.pro
158
159 install : afm2tfm dvips MakeTeXPK \
160 tex.pro texc.pro texps.pro special.pro finclude.pro color.pro \
161 config.ps psfonts.map epsf.tex epsf.sty rotate.tex rotate.sty \
162 colordvi.tex colordvi.sty blackdvi.tex blackdvi.sty
163 - mkdir $(BINDIR)
164 - mkdir $(HEADERDIR)
165 - mkdir $(CONFIGDIR)
166 - mkdir $(MANDIR)
167 - mkdir $(TEXMACRODIR)
168 $(INSTALL) -c -m 755 afm2tfm $(BINDIR)/afm2tfm
169 $(INSTALL) -c -m 755 dvips $(BINDIR)/dvips
170 $(INSTALL) -c -m 755 MakeTeXPK $(BINDIR)/MakeTeXPK
171 $(INSTALL) -c -m 644 tex.pro $(HEADERDIR)
172 $(INSTALL) -c -m 644 texc.pro $(HEADERDIR)
173 $(INSTALL) -c -m 644 texps.pro $(HEADERDIR)
174 $(INSTALL) -c -m 644 special.pro $(HEADERDIR)
175 $(INSTALL) -c -m 644 finclude.pro $(HEADERDIR)
176 $(INSTALL) -c -m 644 color.pro $(HEADERDIR)
177 $(INSTALL) -c -m 644 config.ps $(CONFIGDIR)/$(CONFIGFILE)
178 $(INSTALL) -c -m 644 psfonts.map $(CONFIGDIR)
179 $(INSTALL) -c -m 644 epsf.tex $(TEXMACRODIR)
180 $(INSTALL) -c -m 644 epsf.sty $(TEXMACRODIR)
181 $(INSTALL) -c -m 644 rotate.tex $(TEXMACRODIR)
182 $(INSTALL) -c -m 644 rotate.sty $(TEXMACRODIR)
183 $(INSTALL) -c -m 644 colordvi.sty $(TEXMACRODIR)
184 $(INSTALL) -c -m 644 colordvi.tex $(TEXMACRODIR)
185 $(INSTALL) -c -m 644 blackdvi.sty $(TEXMACRODIR)
186 $(INSTALL) -c -m 644 blackdvi.tex $(TEXMACRODIR)
187 $(INSTALL) -c -m 644 dvips.tex $(TEXMACRODIR)
188 $(INSTALL) -c -m 644 dvipsmac.tex $(TEXMACRODIR)
189
190 veryclean :
191 rm -f *.o dvips squeeze afm2tfm texc.lpro *.pro *~ *.log *.dvi
192
193 clean :
194 rm -f *.o squeeze afm2tfm *~ *.log *.dvi
195
196 lint :
197 lint $(DEFS) $(PATHS) $(SRC)
198 lint $(DEFS) squeeze.c
199 lint $(DEFS) afm2tfm.c