summaryrefslogtreecommitdiff
path: root/dviware/dvi2pcl/Makefile
blob: 6c375aa67360d702533e05ab37c30c64cb93a29e (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
#$Log:	Makefile,v $
# Revision 0.8  92/11/23  19:48:02  19:48:02  bt (Bo Thide')
# Fixed resolution bug. Portable downloading. Added/changed options. PJXL color support
# 
# Revision 0.7  92/11/13  02:43:26  02:43:26  bt (Bo Thide')
# More bug fixes and improvements. Support for PaintJet XL
# 
# Revision 0.6  92/11/10  21:47:36  21:47:36  bt (Bo Thide')
# Bug fixes. Added -R option. Better font handling.
# 
# Revision 0.5  92/11/09  16:25:10  16:25:10  bt (Bo Thide')
# Rewrite of dospecial.c. Extended \special support
# 
# Revision 0.4  92/11/08  02:45:12  02:45:12  bt (Bo Thide')
# Changed to portable bit manipulations. Replaced strrstr for non-POSIX
# compliant C. Fixed numerous bugs. Added support for more \special's.
# 
# Revision 0.3  92/08/24  12:43:17  12:43:17  bt (Bo Thide')
# Fixed 8 bit (dc font) support.
# 

CC            = cc

CCOPTS        = +ESlit +OS +O3 

CFLAGS	      = $(CCOPTS) -DTIMING #-DDEBUG #-DDEBUG2 -G


DEST	      = /usr/local/bin

EDITOR	      = vi

EXTHDRS	      = 

HDRS	      = dvi.h globals.h macros.h paths.h pcl.h pk.h

INSTALL	      = cp

LD	      = $(CC)

LDFLAGS	      = -s +O3 -Wl,-a,archive

LIBS	      = -lm

MAKEFILE      = Makefile


OBJS	      = betweenpages.o \
		cachefonts.o \
		checkfont.o \
		definefont.o \
		diagnostics.o \
		dim_to_dots.o \
		doallpages.o \
		doodevpages.o \
		dopage.o \
		dospecial.o \
		downloadchar.o \
		downloadfont.o \
		drawchar.o \
		drawrule.o \
		firstpar.o \
		getcount.o \
		getoptions.o \
		initialize.o \
		loadpkfile.o \
		loadtfmfile.o \
		main.o \
		makepkdir.o \
		openpkfile.o \
		opentfmfile.o \
		permfonts.o \
		pkcharinfo.o \
		pknum.o \
		pktopxl.o \
		postamble.o \
		preamble.o \
		prescanpage.o \
		printbop.o \
		printfont.o \
		rotatechar.o \
		rulepixels.o \
		scanbop.o \
		skipfontdef.o \
		skipnextpage.o \
		skippages.o \
		sortfonts.o \
		storechar.o \
		storefont.o

PRINT	      = cpr

PROGRAMS      = dvi2pcl

SRCS	      = betweenpages.c \
		cachefonts.c \
		checkfont.c \
		definefont.c \
		diagnostics.c \
		dim_to_dots.c \
		doallpages.c \
		doodevpages.c \
		dopage.c \
		dospecial.c \
		downloadchar.c \
		downloadfont.c \
		drawchar.c \
		drawrule.c \
		firstpar.c \
		getcount.c \
		getoptions.c \
		initialize.c \
		loadpkfile.c \
		loadtfmfile.c \
		main.c \
		makepkdir.c \
		openpkfile.c \
		opentfmfile.c \
		permfonts.c \
		pkcharinfo.c \
		pknum.c \
		pktopxl.c \
		postamble.c \
		preamble.c \
		prescanpage.c \
		printbop.c \
		printfont.c \
		rotatechar.c \
		rulepixels.c \
		scanbop.c \
		skipfontdef.c \
		skipnextpage.c \
		skippages.c \
		sortfonts.c \
		storechar.c \
		storefont.c

SHELL	      = /bin/sh

TAR	      = tar cvf /tmp/dvi2pcl_0.3.tar 

TEXLIB	      = /usr/local/lib/tex

all:		$(PROGRAMS)

dvi2pcl:	$(OBJS)
		$(LD) $(OBJS) $(CFLAGS) $(LDFLAGS) $(LIBS) -o dvi2pcl

clean:;		@rm -f $(OBJS) $(PROGRAMS) core

clobber:;	@rm -f $(OBJS) $(PROGRAM) core tags

depend:;	@mkmf -f $(MAKEFILE) ROOT=$(ROOT)

echo:;		@echo $(HDRS) $(SRCS)

edit:;		@$(EDITOR) $(HDRS) $(SRCS)

index:;		@ctags -wx $(HDRS) $(SRCS)

install:	$(PROGRAMS)
		@echo Installing $(PROGRAMS) in $(DEST)
		@-strip $(PROGRAMS)
		$(INSTALL)  $(PROGRAMS) $(DEST)
		cp reslj.fnt $(TEXLIB)

print:;		@$(PRINT) $(HDRS) $(SRCS)

tar:;		@$(TAR) Makefile README TODO $(HDRS) $(SRCS) tags

tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)

update:		$(DEST)/$(PROGRAM)

$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
		@$(MAKE) -f $(MAKEFILE) ROOT=$(ROOT) DEST=$(DEST) install