]> git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / scheduler / Makefile
1 #
2 # "$Id: Makefile 5157 2006-02-23 20:58:57Z mike $"
3 #
4 # Scheduler Makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
7 #
8 # These coded instructions, statements, and computer programs are the
9 # property of Easy Software Products and are protected by Federal
10 # copyright law. Distribution and use rights are outlined in the file
11 # "LICENSE.txt" which should have been included with this file. If this
12 # file is missing or damaged please contact Easy Software Products
13 # at:
14 #
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636 USA
19 #
20 # Voice: (301) 373-9600
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
23 #
24
25 include ../Makedefs
26
27 CUPSDOBJS = \
28 auth.o \
29 banners.o \
30 cert.o \
31 classes.o \
32 client.o \
33 conf.o \
34 dirsvc.o \
35 env.o \
36 main.o \
37 ipp.o \
38 listen.o \
39 job.o \
40 log.o \
41 network.o \
42 policy.o \
43 printers.o \
44 process.o \
45 quotas.o \
46 server.o \
47 statbuf.o \
48 subscriptions.o \
49 sysman.o
50 MIMEOBJS = \
51 filter.o \
52 mime.o \
53 type.o
54 OBJS = \
55 $(CUPSDOBJS) \
56 $(MIMEOBJS) \
57 cups-deviced.o \
58 cups-driverd.o \
59 cups-lpd.o \
60 cups-polld.o \
61 testdirsvc.o \
62 testmime.o \
63 testspeed.o \
64 util.o
65 TARGETS = \
66 cupsd \
67 cups-deviced \
68 cups-driverd \
69 cups-lpd \
70 cups-polld \
71 libmime.a \
72 testdirsvc \
73 testmime \
74 testspeed
75
76
77 #
78 # Make everything...
79 #
80
81 all: $(TARGETS)
82
83
84 #
85 # Clean all object files...
86 #
87
88 clean:
89 $(RM) $(OBJS)
90 $(RM) $(TARGETS)
91
92
93 #
94 # Update dependencies (without system header dependencies...)
95 #
96
97 depend:
98 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
99
100
101 #
102 # Install the scheduler...
103 #
104
105 install: all
106 echo Creating $(SBINDIR)...
107 $(INSTALL_DIR) -m 755 $(SBINDIR)
108 echo Installing cupsd in $(SBINDIR)...
109 $(INSTALL_BIN) cupsd $(SBINDIR)
110 echo Creating $(SERVERBIN)...
111 $(INSTALL_DIR) -m 755 $(SERVERBIN)
112 echo Creating $(SERVERBIN)/daemon...
113 $(INSTALL_DIR) -m 755 $(SERVERBIN)/daemon
114 echo Installing cups-deviced, cups-driverd, cups-lpd, and cups-polld in $(SERVERBIN)/daemon...
115 $(INSTALL_BIN) cups-deviced $(SERVERBIN)/daemon
116 $(INSTALL_BIN) cups-driverd $(SERVERBIN)/daemon
117 $(INSTALL_BIN) cups-lpd $(SERVERBIN)/daemon
118 $(INSTALL_BIN) cups-polld $(SERVERBIN)/daemon
119 echo Creating $(SERVERBIN)/driver...
120 $(INSTALL_DIR) -m 755 $(SERVERBIN)/driver
121 echo Creating $(SERVERROOT)...
122 $(INSTALL_DIR) -m 755 $(SERVERROOT)
123 -chgrp $(CUPS_GROUP) $(SERVERROOT)
124 echo Creating $(SERVERROOT)/interfaces...
125 $(INSTALL_DIR) -m 755 $(SERVERROOT)/interfaces
126 -chgrp $(CUPS_GROUP) $(SERVERROOT)/interfaces
127 echo Creating $(SERVERROOT)/ppd...
128 $(INSTALL_DIR) -m 755 $(SERVERROOT)/ppd
129 -chgrp $(CUPS_GROUP) $(SERVERROOT)/ppd
130 echo Creating $(STATEDIR)...
131 $(INSTALL_DIR) -m 755 $(STATEDIR)
132 echo Creating $(STATEDIR)/certs...
133 $(INSTALL_DIR) -m 511 $(STATEDIR)/certs
134 -chgrp $(CUPS_PRIMARY_SYSTEM_GROUP) $(STATEDIR)/certs
135 echo Creating $(LOGDIR)...
136 $(INSTALL_DIR) -m 755 $(LOGDIR)
137 echo Creating $(REQUESTS)...
138 $(INSTALL_DIR) -m 710 $(REQUESTS)
139 -chgrp $(CUPS_GROUP) $(REQUESTS)
140 echo Creating $(REQUESTS)/tmp...
141 $(INSTALL_DIR) -m 1770 $(REQUESTS)/tmp
142 -chgrp $(CUPS_GROUP) $(REQUESTS)/tmp
143 echo Creating $(CACHEDIR)...
144 $(INSTALL_DIR) -m 775 $(CACHEDIR)
145 -chgrp $(CUPS_GROUP) $(CACHEDIR)
146 # echo Creating $(CACHEDIR)/ppd...
147 # $(INSTALL_DIR) -m 755 $(CACHEDIR)/ppd
148 # -chgrp $(CUPS_GROUP) $(CACHEDIR)/ppd
149
150
151 #
152 # Make the scheduler executable, "cupsd".
153 #
154
155 cupsd: $(CUPSDOBJS) libmime.a ../cups/$(LIBCUPS)
156 echo Linking $@...
157 $(CC) $(LDFLAGS) -o cupsd $(CUPSDOBJS) libmime.a \
158 $(LIBZ) $(SSLLIBS) $(LIBSLP) $(LIBLDAP) $(PAMLIBS) \
159 $(LIBPAPER) $(LIBMALLOC) $(CUPSDLIBS) $(LIBS)
160
161 cupsd-static: $(CUPSDOBJS) libmime.a ../cups/libcups.a
162 echo Linking $@...
163 $(CC) $(LDFLAGS) -o cupsd-static $(CUPSDOBJS) libmime.a \
164 $(LIBZ) $(SSLLIBS) $(LIBSLP) $(LIBLDAP) $(PAMLIBS) \
165 ../cups/libcups.a $(COMMONLIBS) $(LIBZ) $(LIBPAPER) \
166 $(LIBMALLOC) $(CUPSDLIBS)
167
168
169 #
170 # Make the device daemon, "cups-deviced".
171 #
172
173 cups-deviced: cups-deviced.o util.o ../cups/$(LIBCUPS)
174 echo Linking $@...
175 $(CC) $(LDFLAGS) -o cups-deviced cups-deviced.o util.o $(LIBS)
176
177
178 #
179 # Make the driver daemon, "cups-driverd".
180 #
181
182 cups-driverd: cups-driverd.o util.o ../cups/$(LIBCUPS)
183 echo Linking $@...
184 $(CC) $(LDFLAGS) -o cups-driverd cups-driverd.o util.o $(LIBS)
185
186
187 #
188 # Make the line printer daemon, "cups-lpd".
189 #
190
191 cups-lpd: cups-lpd.o ../cups/$(LIBCUPS)
192 echo Linking $@...
193 $(CC) $(LDFLAGS) -o cups-lpd cups-lpd.o $(LIBS)
194
195
196 #
197 # Make the polling daemon, "cups-polld".
198 #
199
200 cups-polld: cups-polld.o ../cups/$(LIBCUPS)
201 echo Linking $@...
202 $(CC) $(LDFLAGS) -o cups-polld cups-polld.o $(LIBS)
203
204
205 #
206 # libmime.a
207 #
208
209 libmime.a: $(MIMEOBJS)
210 echo Archiving $@...
211 $(RM) $@
212 $(AR) $(ARFLAGS) $@ $(MIMEOBJS)
213 $(RANLIB) $@
214
215
216 #
217 # Make the test program, "testdirsvc".
218 #
219
220 testdirsvc: testdirsvc.o
221 echo Linking $@...
222 $(CC) $(LDFLAGS) -o testdirsvc testdirsvc.o $(COMMONLIBS) $(NETLIBS)
223
224
225 #
226 # testmime
227 #
228
229 testmime: testmime.o libmime.a ../cups/libcups.a
230 echo Linking $@...
231 $(CC) $(LDFLAGS) -o $@ testmime.o libmime.a ../cups/libcups.a \
232 $(COMMONLIBS) $(LIBZ) $(SSLLIBS)
233
234
235 #
236 # Make the test program, "testspeed".
237 #
238
239 testspeed: testspeed.o ../cups/$(LIBCUPS)
240 echo Linking $@...
241 $(CC) $(LDFLAGS) -o testspeed testspeed.o $(LIBS)
242
243
244 #
245 # Dependencies...
246 #
247
248 include Dependencies
249
250
251 #
252 # End of "$Id: Makefile 5157 2006-02-23 20:58:57Z mike $".
253 #