"Fossies" - the Fresh Open Source Software Archive 
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 # Copyright (C) 2002-2005 Ghostgum Software Pty Ltd. All rights reserved.
2 #
3 # This software is provided AS-IS with no warranty, either express or
4 # implied.
5 #
6 # This software is distributed under licence and may not be copied,
7 # modified or distributed except as expressly authorised under the terms
8 # of the licence contained in the file LICENCE in this distribution.
9 #
10 # For more information about licensing, please refer to
11 # http://www.ghostgum.com.au/ or contact Ghostsgum Software Pty Ltd,
12 # 218 Gallaghers Rd, Glen Waverley VIC 3150, AUSTRALIA,
13 # Fax +61 3 9886 6616.
14 #
15
16 # $Id: common.mak,v 1.34 2005/06/10 09:39:24 ghostgum Exp $
17 # Common makefile for GSview
18
19 # Used by all clients
20 OBJCOM1=$(OD)calloc$(OBJ) $(OD)capp$(OBJ) \
21 $(OD)cbmp$(OBJ) $(OD)cdoc$(OBJ) $(OD)ceps$(OBJ) \
22 $(OD)cimg$(OBJ) $(OD)clzw$(OBJ) \
23 $(OD)cmac$(OBJ) $(OD)cmbcs$(OBJ) $(OD)cpdfscan$(OBJ) \
24 $(OD)cprofile$(OBJ) $(OD)cps$(OBJ) \
25 $(OD)dscparse$(OBJ) $(OD)dscutil$(OBJ)
26
27 # Used by simple viewer
28 OBJCOM2=$(OD)cdisplay$(OBJ) $(OD)cgsdll$(OBJ) \
29 $(OD)cgssrv$(OBJ) $(OD)chist$(OBJ) \
30 $(OD)copt$(OBJ) $(OD)cpagec$(OBJ) $(OD)cpdf$(OBJ) \
31 $(OD)cpldll$(OBJ) $(OD)cplsrv$(OBJ) \
32 $(OD)cview$(OBJ)
33
34 # Used by complex viewer
35 OBJCOM3=$(OD)cargs$(OBJ) $(OD)ccoord$(OBJ) $(OD)cvcmd$(OBJ)
36
37 OBJS=$(OBJCOM1) $(OBJCOM2) $(OBJCOM3) $(OBJPLAT)
38
39 EPSTOOL_VERSION=3.08
40 EPSTOOL_DATE=2005-06-10
41 EPSOBJS=$(EPSOBJPLAT) \
42 $(OD)epstool$(OBJ) \
43 $(OBJCOM1)
44
45 EPSTESTOBJS=$(EPSOBJPLAT) \
46 $(OD)epstest$(OBJ) \
47 $(OD)cbmp$(OBJ) \
48 $(OD)cimg$(OBJ) $(OD)clzw$(OBJ)
49
50 cplat_h=$(SRC)cplat.h
51 cfile_h=$(SRC)cfile.h
52 common_h=$(SRC)common.h $(cplat_h) $(cfile_h)
53 capp_h=$(SRC)capp.h
54 cargs_h=$(SRC)cargs.h
55 cbmp_h=$(SRC)cbmp.h
56 cdisplay_h=$(SRC)cdisplay.h
57 cdll_h=$(SRC)cdll.h
58 cdoc_h=$(SRC)cdoc.h
59 ceps_h=$(SRC)ceps.h
60 cmac_h=$(SRC)cmac.h
61 cgsdll_h=$(SRC)cgsdll.h
62 cgssrv_h=$(SRC)cgssrv.h
63 chist_h=$(SRC)chist.h
64 cimg_h=$(SRC)cimg.h
65 clzw_h=$(SRC)clzw.h
66 cmsg_h=$(SRC)cmsg.h
67 copt_h=$(SRC)copt.h
68 cpagec_h=$(SRC)cpagec.h
69 cpdf_h=$(SRC)cpdf.h
70 cpdfscan_h=$(SRC)cpdfscan.h
71 cpldll_h=$(SRC)cpldll.h
72 cprofile_h=$(SRC)cprofile.h
73 cps_h=$(SRC)cps.h
74 cres_h=$(SRC)cres.h
75 cvcmd_h=$(SRC)cvcmd.h
76 cver_h=$(SRC)cver.h
77 cview_h=$(SRC)cview.h
78 dscparse_h=$(SRC)dscparse.h
79 errors_h=$(SRC)errors.h
80 gdevdsp_h=$(SRC)gdevdsp.h
81 iapi_h=$(SRC)iapi.h
82 plapis_h=$(SRC)plapis.h
83
84
85 all: $(BEGIN) $(TARGET)
86
87 $(OD)calloc$(OBJ): $(SRC)calloc.c $(common_h)
88 $(COMP) $(FOO)calloc$(OBJ) $(CO) $(SRC)calloc.c
89
90 $(OD)capp$(OBJ): $(SRC)capp.c $(common_h) $(dscparse_h) $(copt_h) \
91 $(capp_h) $(cdll_h) $(cgssrv_h) $(cimg_h) $(cpagec_h) $(cprofile_h) \
92 $(cres_h)
93 $(COMP) $(FOO)capp$(OBJ) $(CO) $(SRC)capp.c
94
95 $(OD)cargs$(OBJ): $(SRC)cargs.c $(common_h) $(dscparse_h) $(capp_h) \
96 $(cargs_h) $(copt_h) $(cview_h)
97 $(COMP) $(FOO)cargs$(OBJ) $(CO) $(SRC)cargs.c
98
99 $(OD)cbmp$(OBJ): $(SRC)cbmp.c $(common_h) $(gdevdsp_h) $(cimg_h)
100 $(COMP) $(LIBPNGINC) $(FOO)cbmp$(OBJ) $(CO) $(SRC)cbmp.c
101
102 $(OD)ccoord$(OBJ): $(SRC)ccoord.c $(common_h) $(gdevdsp_h) $(cpagec_h)
103 $(COMP) $(FOO)ccoord$(OBJ) $(CO) $(SRC)ccoord.c
104
105 $(OD)cdisplay$(OBJ): $(SRC)cdisplay.c $(common_h) $(gdevdsp_h) $(errors_h) \
106 $(capp_h) $(cimg_h) $(cdisplay_h) $(cgssrv_h) $(cmsg_h)
107 $(COMP) $(FOO)cdisplay$(OBJ) $(CO) $(SRC)cdisplay.c
108
109 $(OD)cdoc$(OBJ): $(SRC)cdoc.c $(common_h) $(dscparse_h) $(capp_h) \
110 $(cdoc_h) $(cpdfscan_h) $(cres_h)
111 $(COMP) $(FOO)cdoc$(OBJ) $(CO) $(SRC)cdoc.c
112
113 $(OD)ceps$(OBJ): $(SRC)ceps.c $(common_h) $(dscparse_h) \
114 $(gdevdsp_h) $(capp_h) $(cbmp_h) $(cdoc_h) $(ceps_h) $(cimg_h) \
115 $(cmac_h) $(cpdfscan_h) $(cps_h)
116 $(COMP) $(FOO)ceps$(OBJ) $(CO) $(SRC)ceps.c
117
118 $(OD)cfile$(OBJ): $(SRC)cfile.c $(SRC)cfile.h
119 $(COMP) $(FOO)cfile$(OBJ) $(CO) $(SRC)cfile.c
120
121 $(OD)clfile$(OBJ): $(SRC)clfile.c $(SRC)cfile.h
122 $(COMP) $(FOO)clfile$(OBJ) $(CO) $(SRC)clfile.c
123
124 $(OD)cgsdll$(OBJ): $(SRC)cgsdll.c $(common_h) $(errors_h) $(iapi_h) \
125 $(capp_h) $(cdll_h) $(cgsdll_h)
126 $(COMP) $(FOO)cgsdll$(OBJ) $(CO) $(SRC)cgsdll.c
127
128 $(OD)cgssrv$(OBJ): $(SRC)cgssrv.c $(common_h) $(dscparse_h) \
129 $(errors_h) $(iapi_h) \
130 $(capp_h) $(cdll_h) $(cimg_h) $(copt_h) $(cdisplay_h) $(cdoc_h) \
131 $(cgsdll_h) $(cmsg_h) $(cpdf_h) $(cpdfscan_h) $(cview_h) $(cgssrv_h)
132 $(COMP) $(FOO)cgssrv$(OBJ) $(CO) $(SRC)cgssrv.c
133
134 $(OD)chist$(OBJ): $(SRC)chist.c $(common_h) $(chist_h)
135 $(COMP) $(FOO)chist$(OBJ) $(CO) $(SRC)chist.c
136
137 $(OD)cimg$(OBJ): $(SRC)cimg.c $(common_h) $(gdevdsp_h) $(cimg_h) $(clzw_h)
138 $(COMP) $(FOO)cimg$(OBJ) $(CO) $(SRC)cimg.c
139
140 $(OD)clzw$(OBJ): $(SRC)clzw.c $(clzw_h)
141 $(COMP) $(FOO)clzw$(OBJ) $(CO) $(SRC)clzw.c
142
143 $(OD)cmac$(OBJ): $(SRC)cmac.c $(cmac_h) $(common_h)
144 $(COMP) $(FOO)cmac$(OBJ) $(CO) $(SRC)cmac.c
145
146 $(OD)cmbcs$(OBJ): $(SRC)cmbcs.c $(common_h)
147 $(COMP) $(FOO)cmbcs$(OBJ) $(CO) $(SRC)cmbcs.c
148
149 $(OD)copt$(OBJ): $(SRC)copt.c $(common_h) $(dscparse_h) $(copt_h) $(cprofile_h)
150 $(COMP) $(FOO)copt$(OBJ) $(CO) $(SRC)copt.c
151
152 $(OD)cpagec$(OBJ): $(SRC)cpagec.c $(common_h) $(dscparse_h) \
153 $(capp_h) $(cgssrv_h) $(cimg_h) $(cpagec_h) $(cpdf_h) $(cview_h)
154 $(COMP) $(FOO)cpagec$(OBJ) $(CO) $(SRC)cpagec.c
155
156 $(OD)cpdf$(OBJ): $(SRC)cpdf.c $(common_h) $(dscparse_h) \
157 $(capp_h) $(cpdf_h) $(cgssrv_h) $(cview_h)
158 $(COMP) $(FOO)cpdf$(OBJ) $(CO) $(SRC)cpdf.c
159
160 $(OD)cpdfscan$(OBJ): $(SRC)cpdfscan.c $(common_h) $(dscparse_h) \
161 $(capp_h) $(cpdfscan_h)
162 $(COMP) $(FOO)cpdfscan$(OBJ) $(CO) $(SRC)cpdfscan.c
163
164 $(OD)cpldll$(OBJ): $(SRC)cpldll.c $(common_h) $(errors_h) $(iapi_h) \
165 $(capp_h) $(cdll_h) $(cpldll_h)
166 $(COMP) $(FOO)cpldll$(OBJ) $(CO) $(SRC)cpldll.c
167
168 $(OD)cplsrv$(OBJ): $(SRC)cplsrv.c $(common_h) $(dscparse_h) \
169 $(errors_h) $(iapi_h) \
170 $(capp_h) $(cdll_h) $(cimg_h) $(copt_h) $(cdisplay_h) $(cdoc_h) \
171 $(cgsdll_h) $(cmsg_h) $(cpdf_h) $(cpdfscan_h) $(cview_h) $(cgssrv_h)
172 $(COMP) $(FOO)cplsrv$(OBJ) $(CO) $(SRC)cplsrv.c
173
174 $(OD)cprofile$(OBJ): $(SRC)cprofile.c $(cplat_h) $(cprofile_h)
175 $(COMP) $(FOO)cprofile$(OBJ) $(CO) $(SRC)cprofile.c
176
177 $(OD)cps$(OBJ): $(SRC)cps.c $(common_h) $(dscparse_h) \
178 $(capp_h) $(cdoc_h)
179 $(COMP) $(FOO)cps$(OBJ) $(CO) $(SRC)cps.c
180
181 $(OD)cvcmd$(OBJ): $(SRC)cvcmd.c $(common_h) $(dscparse_h) \
182 $(copt_h) $(capp_h) $(cdoc_h) $(cgssrv_h) $(chist_h) \
183 $(cmsg_h) $(cpdfscan_h) $(cps_h) $(cres_h) $(cvcmd_h) $(cview_h)
184 $(COMP) $(FOO)cvcmd$(OBJ) $(CO) $(SRC)cvcmd.c
185
186 $(OD)cview$(OBJ): $(SRC)cview.c $(common_h) $(dscparse_h) \
187 $(capp_h) $(cdoc_h) $(cgssrv_h) $(chist_h) $(cimg_h) \
188 $(cmsg_h) $(copt_h) $(cpagec_h) $(cpdf_h) $(cpdfscan_h) $(cres_h) \
189 $(cvcmd_h) $(cview_h)
190 $(COMP) $(FOO)cview$(OBJ) $(CO) $(SRC)cview.c
191
192 $(OD)dscparse$(OBJ): $(SRC)dscparse.c $(dscparse_h)
193 $(COMP) $(FOO)dscparse$(OBJ) $(CO) $(SRC)dscparse.c
194
195 $(OD)dscutil$(OBJ): $(SRC)dscutil.c $(dscparse_h)
196 $(COMP) $(FOO)dscutil$(OBJ) $(CO) $(SRC)dscutil.c
197
198 $(BD)epstool$(EXE): $(OD)lib.rsp $(EPSOBJS)
199 $(CLINK) $(FE)$(BD)epstool$(EXE) $(EPSOBJS) $(EPSLIB)
200
201 $(OD)epstool$(OBJ): $(SRC)epstool.c $(SRC)common.mak \
202 $(common_h) $(copt_h) $(capp_h) $(cbmp_h) $(cdoc_h) $(cdll_h) \
203 $(ceps_h) $(cimg_h) $(cmac_h) $(cps_h) $(cres_h) \
204 $(dscparse_h) $(errors_h) $(iapi_h) $(gdevdsp_h)
205 $(COMP) $(FOO)epstool$(OBJ) $(CO) -DEPSTOOL_VERSION="$(EPSTOOL_VERSION)" -DEPSTOOL_DATE="$(EPSTOOL_DATE)" $(SRC)epstool.c
206
207 $(BD)epstest$(EXE): $(OD)lib.rsp $(EPSTESTOBJS)
208 $(CLINK) $(FE)$(BD)epstest$(EXE) $(EPSTESTOBJS) $(EPSLIB)
209
210 $(OD)epstest$(OBJ): $(SRC)epstest.c $(SRC)common.mak \
211 $(common_h) $(copt_h) $(capp_h) $(cbmp_h) $(cdoc_h) $(cdll_h) \
212 $(ceps_h) $(cimg_h) $(cmac_h) $(cps_h) $(cres_h) \
213 $(dscparse_h) $(errors_h) $(iapi_h) $(gdevdsp_h)
214 $(COMP) $(FOO)epstest$(OBJ) $(CO) $(SRC)epstest.c
215
216
217 $(BD)dscparse$(EXE): (OD)dscparse$(OBJ) $(SRC)dscutil.c
218 $(CC) $(CFLAGS) $(GSCFLAGS) -DSTANDALONE $(FOO)dscutils$(OBJ) $(CO) $(SRC)dscutil.c
219 $(CLINK) $(CFLAGS) $(GSCFLAGS) $(FEO)dscparse$(EXE) $(OD)dscparse$(OBJ) $(OD)dscutils$(OBJ)
220
221 # X11/gtk+ specific
222
223 $(OD)xdll$(OBJ): $(SRC)xdll.c $(common_h) $(cdll_h)
224 $(COMP) $(FOO)xdll$(OBJ) $(CO) $(SRC)xdll.c
225
226 $(OD)xnodll$(OBJ): $(SRC)xnodll.c $(common_h) $(cdll_h)
227 $(COMP) $(FOO)xnodll$(OBJ) $(CO) $(SRC)xnodll.c
228
229
230 # Build distribution files for epstool
231 EPSDIST=epstool-$(EPSTOOL_VERSION)
232 EPSZIP=epstool-$(EPSTOOL_VERSION).zip
233 EPSTAR=epstool-$(EPSTOOL_VERSION).tar
234 EPSTARGZ=$(EPSTAR).gz
235
236 epssrc:
237 -$(RMDIR) $(EPSDIST)
238 -mkdir $(EPSDIST)
239 -mkdir $(EPSDIST)$(DD)$(SRCDIR)
240 -mkdir $(EPSDIST)$(DD)$(SRCWINDIR)
241 -mkdir $(EPSDIST)$(DD)doc
242 $(CP) $(SRC)calloc.* $(EPSDIST)$(DD)$(SRCDIR)
243 $(CP) $(SRC)capp.* $(EPSDIST)$(DD)$(SRCDIR)
244 $(CP) $(SRC)cargs.h $(EPSDIST)$(DD)$(SRCDIR)
245 $(CP) $(SRC)cbmp.* $(EPSDIST)$(DD)$(SRCDIR)
246 $(CP) $(SRC)cdll.h $(EPSDIST)$(DD)$(SRCDIR)
247 $(CP) $(SRC)cdoc.* $(EPSDIST)$(DD)$(SRCDIR)
248 $(CP) $(SRC)ceps.* $(EPSDIST)$(DD)$(SRCDIR)
249 $(CP) $(SRC)cfile.* $(EPSDIST)$(DD)$(SRCDIR)
250 $(CP) $(SRC)clfile.* $(EPSDIST)$(DD)$(SRCDIR)
251 $(CP) $(SRC)clzw.* $(EPSDIST)$(DD)$(SRCDIR)
252 $(CP) $(SRC)cgssrv.h $(EPSDIST)$(DD)$(SRCDIR)
253 $(CP) $(SRC)cimg.* $(EPSDIST)$(DD)$(SRCDIR)
254 $(CP) $(SRC)cmac.* $(EPSDIST)$(DD)$(SRCDIR)
255 $(CP) $(SRC)cmbcs.* $(EPSDIST)$(DD)$(SRCDIR)
256 $(CP) $(SRC)common.h $(EPSDIST)$(DD)$(SRCDIR)
257 $(CP) $(SRC)copt.h $(EPSDIST)$(DD)$(SRCDIR)
258 $(CP) $(SRC)cpagec.h $(EPSDIST)$(DD)$(SRCDIR)
259 $(CP) $(SRC)cpdfscan.* $(EPSDIST)$(DD)$(SRCDIR)
260 $(CP) $(SRC)cplat.h $(EPSDIST)$(DD)$(SRCDIR)
261 $(CP) $(SRC)cprofile.* $(EPSDIST)$(DD)$(SRCDIR)
262 $(CP) $(SRC)cps.* $(EPSDIST)$(DD)$(SRCDIR)
263 $(CP) $(SRC)cres.h $(EPSDIST)$(DD)$(SRCDIR)
264 $(CP) $(SRC)dscparse.* $(EPSDIST)$(DD)$(SRCDIR)
265 $(CP) $(SRC)dscutil.c $(EPSDIST)$(DD)$(SRCDIR)
266 $(CP) $(SRC)epstool.c $(EPSDIST)$(DD)$(SRCDIR)
267 $(CP) $(SRC)epstool.mak $(EPSDIST)$(DD)$(SRCDIR)
268 $(CP) $(SRC)errors.h $(EPSDIST)$(DD)$(SRCDIR)
269 $(CP) $(SRC)iapi.h $(EPSDIST)$(DD)$(SRCDIR)
270 $(CP) $(SRC)gdevdsp.h $(EPSDIST)$(DD)$(SRCDIR)
271 $(CP) $(SRC)xdll.c $(EPSDIST)$(DD)$(SRCDIR)
272 $(CP) $(SRC)xnodll.c $(EPSDIST)$(DD)$(SRCDIR)
273 $(CP) $(SRC)common.mak $(EPSDIST)$(DD)$(SRCDIR)
274 $(CP) $(SRC)os2.mak $(EPSDIST)$(DD)$(SRCDIR)
275 $(CP) $(SRC)unix.mak $(EPSDIST)$(DD)$(SRCDIR)
276 $(CP) $(SRC)unixcom.mak $(EPSDIST)$(DD)$(SRCDIR)
277 $(CP) $(SRC)epstool.spec $(EPSDIST)$(DD)$(SRCDIR)
278 $(CP) $(SRCWIN)wdll.c $(EPSDIST)$(DD)$(SRCWIN)
279 $(CP) $(SRCWIN)wfile.c $(EPSDIST)$(DD)$(SRCWIN)
280 $(CP) $(SRCWIN)wgsver.c $(EPSDIST)$(DD)$(SRCWIN)
281 $(CP) $(SRCWIN)wgsver.h $(EPSDIST)$(DD)$(SRCWIN)
282 $(CP) $(SRCWIN)windows.mak $(EPSDIST)$(DD)$(SRCWIN)
283 $(CP) $(SRCWIN)epstool.mak $(EPSDIST)$(DD)$(SRCWIN)
284 $(CP) doc$(DD)epstool.htm $(EPSDIST)$(DD)doc
285 $(CP) doc$(DD)epstool.1 $(EPSDIST)$(DD)doc
286 $(CP) doc$(DD)gsview.css $(EPSDIST)$(DD)doc
287 $(CP) doc$(DD)cygwin.README $(EPSDIST)$(DD)doc
288 $(CP) doc$(DD)cygwin.hint $(EPSDIST)$(DD)doc
289 $(CP) $(SRC)epstool.mak $(EPSDIST)$(DD)makefile
290 echo "Documentation for epstool is in doc/epstool.htm" > epstool.txt
291 $(CP) epstool.txt $(EPSDIST)$(DD)epstool.txt
292 $(CP) LICENCE $(EPSDIST)
293
294
295 $(EPSZIP): epssrc $(BD)epstool$(EXE)
296 $(CP) $(SRCWIN)epstool.mak $(EPSDIST)$(DD)makefile
297 -$(RM) $(EPSZIP)
298 -mkdir $(EPSDIST)$(DD)bin
299 $(CP) $(BD)epstool$(EXE) $(EPSDIST)$(DD)bin$(DD)epstool$(EXE)
300 zip -r -X -9 $(EPSZIP) $(EPSDIST)
301
302 epszip: $(EPSZIP)
303
304 $(EPSTAR): epssrc
305 -$(RM) $(EPSTAR)
306 tar -cvf $(EPSTAR) $(EPSDIST)
307
308 $(EPSTARGZ): $(EPSTAR)
309 -$(RM) $(EPSTARGZ)
310 gzip $(EPSTAR)
311
312 epstar: $(EPSTARGZ)
313