]> git.ipfire.org Git - thirdparty/cups.git/blame - ppdc/Makefile
Merge changes from CUPS 1.4svn-r7386.
[thirdparty/cups.git] / ppdc / Makefile
CommitLineData
ac884b6a
MS
1#
2# "$Id$"
3#
4# Makefile for the CUPS PPD Compiler.
5#
6# Copyright 2007-2008 by Apple Inc.
7# Copyright 2002-2006 by Easy Software Products.
8#
9# These coded instructions, statements, and computer programs are the
10# property of Apple Inc. and are protected by Federal copyright
11# law. Distribution and use rights are outlined in the file "LICENSE.txt"
12# which should have been included with this file. If this file is
13# file is missing or damaged, see the license at "http://www.cups.org/".
14#
15
16#
17# Include standard definitions...
18#
19
20include ../Makedefs
21
22
23#
24# Object files...
25#
26
27PPDCOBJS = \
28 ppdc-array.o \
29 ppdc-attr.o \
30 ppdc-catalog.o \
31 ppdc-choice.o \
32 ppdc-constraint.o \
33 ppdc-driver.o \
34 ppdc-file.o \
35 ppdc-filter.o \
36 ppdc-font.o \
37 ppdc-group.o \
38 ppdc-import.o \
39 ppdc-mediasize.o \
40 ppdc-message.o \
41 ppdc-option.o \
42 ppdc-profile.o \
43 ppdc-shared.o \
44 ppdc-source.o \
45 ppdc-string.o \
46 ppdc-variable.o
47
48OBJS = \
49 drv.o \
50 ppdc.o \
51 ppdhtml.o \
52 ppdi.o \
53 ppdmerge.o \
54 ppdpo.o \
55 $(PPDCOBJS)
56
57TARGETS = \
58 libppdc.a \
59 drv \
60 ppdc-static \
61 ppdc \
62 ppdhtml \
63 ppdi \
64 ppdmerge \
65 ppdpo
66
67
68#
69# Make everything...
70#
71
72all: $(TARGETS)
73
74
75#
76# Clean everything...
77#
78
79clean:
80 $(RM) $(OBJS) core
81 $(RM) *.bak *.bck core.*
82 $(RM) $(TARGETS)
83 $(RM) -r ppd
84 $(RM) test.drv
85
86
87#
88# Update dependencies...
89#
90
91depend:
92 makedepend -Y -I.. -fDependencies $(OBJS:.o=.cxx) >/dev/null 2>&1
93
94
95#
96# Install...
97#
98
99install:
100 echo Installing PPD compiler programs...
101 $(INSTALL_DIR) $(BINDIR)
102 $(INSTALL_BIN) ppdc $(BINDIR)
103 $(INSTALL_BIN) ppdhtml $(BINDIR)
104 $(INSTALL_BIN) ppdi $(BINDIR)
105 $(INSTALL_BIN) ppdmerge $(BINDIR)
106 $(INSTALL_BIN) ppdpo $(BINDIR)
107 $(INSTALL_DIR) $(SERVERBIN)/driver
108 $(INSTALL_BIN) drv $(SERVERBIN)/driver
109 $(INSTALL_DIR) $(DATADIR)/drv
110
111
112#
113# Uninstall...
114#
115
116uninstall:
117 $(RM) $(BINDIR)/ppdc
118 $(RM) $(BINDIR)/ppdhtml
119 $(RM) $(BINDIR)/ppdi
120 $(RM) $(BINDIR)/ppdmerge
121 $(RM) $(BINDIR)/ppdpo
122 $(RM) $(SERVERBIN)/driver/drv
123 $(RMDIR) $(SERVERBIN)/driver
124 $(RMDIR) $(DATADIR)/drv
125
126
127#
128# drv, the CUPS driver interface program to the PPD compiler.
129#
130
131drv: drv.o libppdc.a ../cups/$(LIBCUPS)
132 echo Linking $@...
133 $(CXX) $(LDFLAGS) -o $@ drv.o libppdc.a $(LIBS)
134
135
136#
137# ppdc, the PPD compiler.
138#
139
140ppdc: ppdc.o libppdc.a ../cups/$(LIBCUPS)
141 echo Linking $@...
142 $(CXX) $(LDFLAGS) -o $@ ppdc.o libppdc.a $(LIBS)
143
144
145ppdc-static: ppdc.o libppdc.a ../cups/libcups.a foo.drv foo-fr.po
146 echo Linking $@...
147 $(CXX) $(LDFLAGS) -o ppdc-static ppdc.o libppdc.a ../cups/libcups.a \
148 $(LIBGSSAPI) $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
149 echo Testing PPD compiler...
150 ./ppdc-static -l en,fr -I ../data foo.drv
151 ./ppdc-static -l en,fr -z -I ../data foo.drv
152
153
154#
155# ppdhtml, the PPD to HTML utility.
156#
157
158ppdhtml: ppdhtml.o libppdc.a ../cups/$(LIBCUPS)
159 echo Linking $@...
160 $(CXX) $(LDFLAGS) -o $@ ppdhtml.o libppdc.a $(LIBS)
161
162
163#
164# ppdi, import PPD files.
165#
166
167ppdi: ppdi.o libppdc.a ../cups/$(LIBCUPS)
168 echo Linking $@...
169 $(CXX) $(LDFLAGS) -o $@ ppdi.o libppdc.a $(LIBS)
170
171
172#
173# ppdmerge, merge PPD files.
174#
175
176ppdmerge: ppdmerge.o ../cups/$(LIBCUPS)
177 echo Linking $@...
178 $(CXX) $(LDFLAGS) -o $@ ppdmerge.o $(LIBS)
179
180
181#
182# ppdpo, create message catalog files.
183#
184
185ppdpo: ppdpo.o libppdc.a ../cups/$(LIBCUPS)
186 echo Linking $@...
187 $(CXX) $(LDFLAGS) -o $@ ppdpo.o libppdc.a $(LIBS)
188
189
190#
191# libppdc.a, the PPD compiler library...
192#
193
194libppdc.a: $(PPDCOBJS)
195 echo Creating $@...
196 $(RM) $@
197 $(AR) $(ARFLAGS) $@ $(PPDCOBJS)
198 $(RANLIB) $@
199
200
201#
202# Include dependencies...
203#
204
205include Dependencies
206
207
208#
209# End of "$Id$".
210#