~ubuntu-branches/ubuntu/utopic/cups/utopic

« back to all changes in this revision

Viewing changes to .pc/dont-use-dbus-from-two-threads.patch/scheduler/Makefile

  • Committer: Package Import Robot
  • Author(s): Didier Raboud, Till Kamppeter, Steve Langasek, Didier Raboud
  • Date: 2014-01-03 18:42:39 UTC
  • mfrom: (99.2.3 sid)
  • Revision ID: package-import@ubuntu.com-20140103184239-85wju2l7weie4dgo
Tags: 1.7.0-1
* New 1.7.0 upstream release

[ Till Kamppeter ]
* Refresh most patches with quilt
* Removed usb-backend-do-not-crash-if-usb-disabled-in-bios and
  cupsd-no-crash-on-avahi-threaded-poll-shutdown patches as they got
  applied upstream
* Removed drop-arch-specifics-from-doc patch as it is not needed
  anymore
* Updated drop_unnecessary_dependencies, manpage-hyphen-minus,
  manpage-translations and ppd-poll-with-client-conf patches manually
  to apply to the new CUPS version
* Added error counting exception from
  usb-backend-do-not-crash-if-usb-disabled-in-bios to
  tests-ignore-warnings
* Install the newly added ippfind utility and its manpage in
  cups-client
* Added pwg.h to libcups2-dev package
* Call dh_auto_clean only if the file Makedefs is present, to avoid a
  FTBFS
* Added color management extensions from Joe Simon's GSoC 2013
  project.
* Patch cups-files.conf to activate CUPS daemon syncing of files when
  closing, so that config files (like printers.conf) do not
  mysteriously disappear (LP: #1157972)
* In the AppArmor profile, allow execution of programs in
  /etc/cups/interfaces/, needed to make CUPS working with queues based
  on System V interface scripts, especially PPD-less queues
  auto-generated by cups-browsed from cups-filters 1.0.41 on.
* Silenced AppArmor noise from udev.conf in syslog (LP: #1229766)

[ Steve Langasek ]
* Add cups-filters (>= 1.0.42) as alternative to foomatic-filters
  (which is deprecated) in package relationships

[ Didier Raboud ]
* Remove Roger Leigh from uploaders on his request with thanks for his
  past work!
* Switch avahi LSB Should-Start dependency to be avahi-daemon; also
  bump package relationship to >= 0.6.31-3~ (Closes: #731608)
* Refresh the manpage translation files
* Move the USB backend quirk rules file to cups-server-common
* Add 38 new 1.7.0 libcups2 symbols
* Mark one C++ libcupsppdc1 symbol as optional as it isn't exported in
  1.7.0 anymore
* Import Fedora patches:
  - to avoid sign-extending CRCs in gz decompression
  - to build with full read-only relocations
  - to fix job history logging (upstream patch)
  - to set the internal default for SyncOnClose to Yes, instead of
    only configuring it to Yes
  - to fix a stringpool corruption issue
  - to prevent USB timeouts causing incorrect print output
* Import Fedora patch updates:
  - to dont-use-dbus-from-two-threads patch so it removes a call to
    avahi_threaded_poll_stop()
  - to avoid_stale_lockfile_in_dbus_notifier patch to call _exit when
    handling SIGTERM
* Move manpage-translations patch at the very end of the patch series
  to have it include all our patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# "$Id: Makefile 10996 2013-05-29 11:51:34Z msweet $"
 
3
#
 
4
#   Scheduler Makefile for CUPS.
 
5
#
 
6
#   Copyright 2007-2012 by Apple Inc.
 
7
#   Copyright 1997-2007 by Easy Software Products, all rights reserved.
 
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
include ../Makedefs
 
17
 
 
18
CUPSDOBJS =     \
 
19
                auth.o \
 
20
                banners.o \
 
21
                cert.o \
 
22
                classes.o \
 
23
                client.o \
 
24
                colorman.o \
 
25
                conf.o \
 
26
                dirsvc.o \
 
27
                env.o \
 
28
                file.o \
 
29
                main.o \
 
30
                ipp.o \
 
31
                listen.o \
 
32
                job.o \
 
33
                log.o \
 
34
                network.o \
 
35
                policy.o \
 
36
                printers.o \
 
37
                process.o \
 
38
                quotas.o \
 
39
                select.o \
 
40
                server.o \
 
41
                statbuf.o \
 
42
                subscriptions.o \
 
43
                sysman.o \
 
44
                tls.o
 
45
LIBOBJS =       \
 
46
                filter.o \
 
47
                mime.o \
 
48
                type.o
 
49
COBJS   =       \
 
50
                $(CUPSDOBJS) \
 
51
                $(LIBOBJS) \
 
52
                cupsfilter.o \
 
53
                cups-deviced.o \
 
54
                cups-exec.o \
 
55
                cups-lpd.o \
 
56
                testlpd.o \
 
57
                testmime.o \
 
58
                testspeed.o \
 
59
                testsub.o \
 
60
                util.o
 
61
CXXOBJS =       \
 
62
                cups-driverd.o
 
63
OBJS    =       \
 
64
                $(COBJS) \
 
65
                $(CXXOBJS)
 
66
LIBTARGETS =    \
 
67
                $(LIBCUPSMIME) \
 
68
                libcupsmime.a
 
69
 
 
70
UNITTARGETS =   \
 
71
                testlpd \
 
72
                testmime \
 
73
                testspeed \
 
74
                testsub
 
75
 
 
76
PROGRAMS =      \
 
77
                cupsd \
 
78
                cupsfilter \
 
79
                cups-deviced \
 
80
                cups-driverd \
 
81
                cups-exec \
 
82
                cups-lpd
 
83
 
 
84
TARGETS =       \
 
85
                $(LIBTARGETS) \
 
86
                $(PROGRAMS)
 
87
 
 
88
 
 
89
#
 
90
# Make everything...
 
91
#
 
92
 
 
93
all:            $(TARGETS)
 
94
 
 
95
 
 
96
#
 
97
# Make library targets...
 
98
#
 
99
 
 
100
libs:           $(LIBTARGETS)
 
101
 
 
102
 
 
103
#
 
104
# Make unit tests...
 
105
#
 
106
 
 
107
unittests:      $(UNITTARGETS)
 
108
 
 
109
 
 
110
#
 
111
# Clean all object files...
 
112
#
 
113
 
 
114
clean:
 
115
        $(RM) $(OBJS)
 
116
        $(RM) $(TARGETS) $(UNITTARGETS) convert
 
117
        $(RM) libcupsmime.so libcupsmime.sl libcupsmime.dylib
 
118
 
 
119
 
 
120
#
 
121
# Update dependencies (without system header dependencies...)
 
122
#
 
123
 
 
124
depend:
 
125
        $(CC) -MM $(ALL_CFLAGS) $(COBJS:.o=.c) >Dependencies
 
126
        $(CXX) -MM $(ALL_CXXFLAGS) $(CXXOBJS:.o=.cxx) >>Dependencies
 
127
 
 
128
 
 
129
#
 
130
# Run oclint to check code coverage...
 
131
#
 
132
 
 
133
oclint:
 
134
        oclint -o=oclint.html -html $(CUPSDOBJS:.o=.c) $(LIBOBJS:.o=.c) -- $(ALL_CFLAGS)
 
135
 
 
136
 
 
137
#
 
138
# Install all targets...
 
139
#
 
140
 
 
141
install:        all install-data install-headers install-libs install-exec
 
142
 
 
143
 
 
144
#
 
145
# Install data files...
 
146
#
 
147
 
 
148
install-data:
 
149
        echo Creating $(SERVERBIN)/driver...
 
150
        $(INSTALL_DIR) -m 755 $(SERVERBIN)/driver
 
151
        echo Creating $(SERVERROOT)...
 
152
        $(INSTALL_DIR) -m 755 -g $(CUPS_GROUP) $(SERVERROOT)
 
153
        echo Creating $(SERVERROOT)/interfaces...
 
154
        $(INSTALL_DIR) -m 755 -g $(CUPS_GROUP) $(SERVERROOT)/interfaces
 
155
        echo Creating $(SERVERROOT)/ppd...
 
156
        $(INSTALL_DIR) -m 755 -g $(CUPS_GROUP) $(SERVERROOT)/ppd
 
157
        if test "x`uname`" != xDarwin; then \
 
158
                echo Creating $(SERVERROOT)/ssl...; \
 
159
                $(INSTALL_DIR) -m 700 -g $(CUPS_GROUP) $(SERVERROOT)/ssl; \
 
160
        fi
 
161
        if test "$(STATEDIR)" != "$(SERVERROOT)"; then \
 
162
                echo Creating $(STATEDIR)...; \
 
163
                $(INSTALL_DIR) -m 755 $(STATEDIR); \
 
164
        fi
 
165
        echo Creating $(STATEDIR)/certs...
 
166
        $(INSTALL_DIR) -m 511 -o $(CUPS_USER) -g $(CUPS_PRIMARY_SYSTEM_GROUP) \
 
167
                $(STATEDIR)/certs
 
168
        echo Creating $(LOGDIR)...
 
169
        $(INSTALL_DIR) -m 755 $(LOGDIR)
 
170
        echo Creating $(REQUESTS)...
 
171
        $(INSTALL_DIR) -m 710 -g $(CUPS_GROUP) $(REQUESTS)
 
172
        echo Creating $(REQUESTS)/tmp...
 
173
        $(INSTALL_DIR) -m 1770 -g $(CUPS_GROUP) $(REQUESTS)/tmp
 
174
        echo Creating $(CACHEDIR)...
 
175
        $(INSTALL_DIR) -m 775 -g $(CUPS_GROUP) $(CACHEDIR)
 
176
        if test "x$(INITDIR)" != x; then \
 
177
                echo Installing init scripts...; \
 
178
                $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDIR)/init.d; \
 
179
                $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDIR)/init.d/cups; \
 
180
                for level in $(RCLEVELS); do \
 
181
                        $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDIR)/rc$${level}.d; \
 
182
                        $(LN) ../init.d/cups $(BUILDROOT)$(INITDIR)/rc$${level}.d/S$(RCSTART)cups; \
 
183
                        if test `uname` = HP-UX; then \
 
184
                                level=`expr $$level - 1`; \
 
185
                                $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDIR)/rc$${level}.d; \
 
186
                        fi; \
 
187
                        $(LN) ../init.d/cups $(BUILDROOT)$(INITDIR)/rc$${level}.d/K$(RCSTOP)cups; \
 
188
                done; \
 
189
                $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDIR)/rc0.d; \
 
190
                $(LN) ../init.d/cups $(BUILDROOT)$(INITDIR)/rc0.d/K$(RCSTOP)cups; \
 
191
        fi
 
192
        if test "x$(INITDIR)" = x -a "x$(INITDDIR)" != x; then \
 
193
                $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR); \
 
194
                if test "$(INITDDIR)" = "/System/Library/LaunchDaemons"; then \
 
195
                        echo Installing LaunchDaemons configuration files...; \
 
196
                        $(INSTALL_DATA) org.cups.cupsd.plist $(BUILDROOT)$(DEFAULT_LAUNCHD_CONF); \
 
197
                        $(INSTALL_DATA) org.cups.cups-lpd.plist $(BUILDROOT)/System/Library/LaunchDaemons; \
 
198
                else \
 
199
                        echo Installing RC script...; \
 
200
                        $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDDIR)/cups; \
 
201
                fi \
 
202
        fi
 
203
        if test "x$(SMFMANIFESTDIR)" != x; then \
 
204
                echo Installing SMF manifest in $(SMFMANIFESTDIR)...;\
 
205
                $(INSTALL_DIR) $(BUILDROOT)/$(SMFMANIFESTDIR); \
 
206
                $(INSTALL_SCRIPT) cups.xml $(BUILDROOT)$(SMFMANIFESTDIR)/cups.xml; \
 
207
        fi
 
208
        if test "x$(XINETD)" != x; then \
 
209
                echo Installing xinetd configuration file for cups-lpd...; \
 
210
                $(INSTALL_DIR) -m 755 $(BUILDROOT)$(XINETD); \
 
211
                $(INSTALL_DATA) cups-lpd.xinetd $(BUILDROOT)$(XINETD)/cups-lpd; \
 
212
        fi
 
213
 
 
214
 
 
215
#
 
216
# Install programs...
 
217
#
 
218
 
 
219
install-exec:
 
220
        echo Installing programs in $(SBINDIR)...
 
221
        $(INSTALL_DIR) -m 755 $(SBINDIR)
 
222
        $(INSTALL_BIN) -m $(CUPS_CUPSD_FILE_PERM) cupsd $(SBINDIR)
 
223
        $(INSTALL_BIN) cupsfilter $(SBINDIR)
 
224
        echo Installing programs in $(SERVERBIN)/daemon...
 
225
        $(INSTALL_DIR) -m 755 $(SERVERBIN)
 
226
        $(INSTALL_DIR) -m 755 $(SERVERBIN)/daemon
 
227
        $(INSTALL_BIN) cups-deviced $(SERVERBIN)/daemon
 
228
        $(INSTALL_BIN) cups-driverd $(SERVERBIN)/daemon
 
229
        $(INSTALL_BIN) cups-exec $(SERVERBIN)/daemon
 
230
        $(INSTALL_BIN) cups-lpd $(SERVERBIN)/daemon
 
231
        if test "x$(SYMROOT)" != "x"; then \
 
232
                $(INSTALL_DIR) $(SYMROOT); \
 
233
                for file in $(PROGRAMS); do \
 
234
                        cp $$file $(SYMROOT); \
 
235
                        dsymutil $(SYMROOT)/$$file; \
 
236
                done \
 
237
        fi
 
238
 
 
239
 
 
240
#
 
241
# Install headers...
 
242
#
 
243
 
 
244
install-headers:
 
245
        echo Installing header files in $(INCLUDEDIR)/cups...
 
246
        $(INSTALL_DIR) -m 755 $(INCLUDEDIR)/cups
 
247
        $(INSTALL_DATA) mime.h $(INCLUDEDIR)/cups
 
248
 
 
249
 
 
250
#
 
251
# Install libraries...
 
252
#
 
253
 
 
254
install-libs: $(INSTALLSTATIC)
 
255
        echo Installing libraries in $(LIBDIR)...
 
256
        $(INSTALL_DIR) -m 755 $(LIBDIR)
 
257
        $(INSTALL_LIB) $(LIBCUPSMIME) $(LIBDIR)
 
258
        if test $(LIBCUPSMIME) = "libcupsmime.so.1" -o $(LIBCUPSMIME) = "libcupsmime.sl.1"; then \
 
259
                $(RM) $(LIBDIR)/`basename $(LIBCUPSMIME) .1`; \
 
260
                $(LN) $(LIBCUPSMIME) $(LIBDIR)/`basename $(LIBCUPSMIME) .1`; \
 
261
        fi
 
262
        if test $(LIBCUPSMIME) = "libcupsmime.1.dylib"; then \
 
263
                $(RM) $(LIBDIR)/libcupsmime.dylib; \
 
264
                $(LN) $(LIBCUPSMIME) $(LIBDIR)/libcupsmime.dylib; \
 
265
        fi
 
266
        if test "x$(SYMROOT)" != "x"; then \
 
267
                $(INSTALL_DIR) $(SYMROOT); \
 
268
                cp $(LIBCUPSMIME) $(SYMROOT); \
 
269
                dsymutil $(SYMROOT)/$(LIBCUPSMIME); \
 
270
        fi
 
271
 
 
272
installstatic:
 
273
        $(INSTALL_DIR) -m 755 $(LIBDIR)
 
274
        $(INSTALL_LIB) -m 755 libcupsmime.a $(LIBDIR)
 
275
        $(RANLIB) $(LIBDIR)/libcupsmime.a
 
276
        $(CHMOD) 555 $(LIBDIR)/libcupsmime.a
 
277
 
 
278
 
 
279
#
 
280
# Uninstall the scheduler...
 
281
#
 
282
 
 
283
uninstall:
 
284
        $(RM) $(SBINDIR)/cupsd
 
285
        $(RM) $(SBINDIR)/cupsfilter
 
286
        $(RM) $(SERVERBIN)/daemon/cups-deviced
 
287
        $(RM) $(SERVERBIN)/daemon/cups-driverd
 
288
        $(RM) $(SERVERBIN)/daemon/cups-exec
 
289
        $(RM) $(SERVERBIN)/daemon/cups-lpd
 
290
        $(RM) $(BUILDROOT)/System/Library/Printers/Libraries/convert
 
291
        -$(RMDIR) $(STATEDIR)/certs
 
292
        -$(RMDIR) $(STATEDIR)
 
293
        -$(RMDIR) $(SERVERROOT)/ppd
 
294
        -$(RMDIR) $(SERVERROOT)/interfaces
 
295
        -$(RMDIR) $(SERVERROOT)
 
296
        -$(RMDIR) $(SERVERBIN)/driver
 
297
        -$(RMDIR) $(SERVERBIN)/daemon
 
298
        -$(RMDIR) $(SERVERBIN)
 
299
        -$(RMDIR) $(SBINDIR)
 
300
        -$(RMDIR) $(REQUESTS)/tmp
 
301
        -$(RMDIR) $(REQUESTS)
 
302
        -$(RMDIR) $(LOGDIR)
 
303
        -$(RMDIR) $(CACHEDIR)
 
304
        $(RM) $(LIBDIR)/libcupsmime.1.dylib
 
305
        $(RM) $(LIBDIR)/libcupsmime.a
 
306
        $(RM) $(LIBDIR)/libcupsmime.dylib
 
307
        $(RM) $(LIBDIR)/libcupsmime_s.a
 
308
        $(RM) $(LIBDIR)/libcupsmime.sl
 
309
        $(RM) $(LIBDIR)/libcupsmime.sl.1
 
310
        $(RM) $(LIBDIR)/libcupsmime.so
 
311
        $(RM) $(LIBDIR)/libcupsmime.so.1
 
312
        -$(RMDIR) $(LIBDIR)
 
313
        $(RM) $(INCLUDEDIR)/cups/mime.h
 
314
        -$(RMDIR) $(INCLUDEDIR)/cups
 
315
        echo Uninstalling startup script...
 
316
        if test "x$(INITDIR)" != x; then \
 
317
                $(RM) $(BUILDROOT)$(INITDIR)/init.d/cups; \
 
318
                $(RMDIR) $(BUILDROOT)$(INITDIR)/init.d; \
 
319
                $(RM)  $(BUILDROOT)$(INITDIR)/rc0.d/K00cups; \
 
320
                $(RMDIR) $(BUILDROOT)$(INITDIR)/rc0.d; \
 
321
                $(RM) $(BUILDROOT)$(INITDIR)/rc2.d/S99cups; \
 
322
                $(RMDIR) $(BUILDROOT)$(INITDIR)/rc2.d; \
 
323
                $(RM) $(BUILDROOT)$(INITDIR)/rc3.d/S99cups; \
 
324
                $(RMDIR) $(BUILDROOT)$(INITDIR)/rc3.d; \
 
325
                $(RM) $(BUILDROOT)$(INITDIR)/rc5.d/S99cups; \
 
326
                $(RMDIR) $(BUILDROOT)$(INITDIR)/rc5.d; \
 
327
        fi
 
328
        if test "x$(INITDIR)" = x -a "x$(INITDDIR)" != x; then \
 
329
                if test "$(INITDDIR)" = "/System/Library/StartupItems/PrintingServices"; then \
 
330
                        $(RM) $(BUILDROOT)$(INITDDIR)/PrintingServices; \
 
331
                        $(RM) $(BUILDROOT)$(INITDDIR)/StartupParameters.plist; \
 
332
                        $(RM) $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \
 
333
                        $(RMDIR) $(BUILDROOT)$(INITDDIR)/Resources/English.lproj; \
 
334
                elif test "$(INITDDIR)" = "/System/Library/LaunchDaemons"; then \
 
335
                        $(RM) $(BUILDROOT)$(INITDDIR)/org.cups.cupsd.plist; \
 
336
                        $(RM) $(BUILDROOT)$(INITDDIR)/org.cups.cups-lpd.plist; \
 
337
                        $(RMDIR) $(BUILDROOT)/System/Library/StartupItems/PrintingServices; \
 
338
                else \
 
339
                        $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDDIR)/cups; \
 
340
                fi \
 
341
                $(RMDIR) $(BUILDROOT)$(INITDDIR); \
 
342
        fi
 
343
        if test "x$(SMFMANIFESTDIR)" != x; then \
 
344
                echo Uninstalling SMF manifest in $(SMFMANIFESTDIR)...;\
 
345
                $(RM) $(BUILDROOT)$(SMFMANIFESTDIR)/cups.xml; \
 
346
        fi
 
347
        if test "x$(XINETD)" != x; then \
 
348
                echo Uninstalling xinetd configuration file for cups-lpd...; \
 
349
                $(RM) $(BUILDROOT)$(XINETD)/cups-lpd; \
 
350
        fi
 
351
 
 
352
 
 
353
#
 
354
# Automatic API help files...
 
355
#
 
356
 
 
357
apihelp:
 
358
        mxmldoc --section "Programming" \
 
359
                --title "MIME API" \
 
360
                --css ../doc/cups-printable.css \
 
361
                --header api-mime.header --intro api-mime.shtml \
 
362
                mime.h $(LIBOBJS:.o=.c) >../doc/help/api-mime.html
 
363
        mxmldoc --tokens help/api-mime.html api-mime.xml >../doc/help/api-mime.tokens
 
364
        $(RM) api-mime.xml
 
365
 
 
366
framedhelp:
 
367
        mxmldoc --framed api-mime \
 
368
                --section "Programming" \
 
369
                --title "MIME API" \
 
370
                --css ../doc/cups-printable.css \
 
371
                --header api-mime.header --intro api-mime.shtml \
 
372
                mime.h $(LIBOBJS:.o=.c)
 
373
 
 
374
 
 
375
#
 
376
# Make the scheduler executable, "cupsd".
 
377
#
 
378
 
 
379
cupsd:  $(CUPSDOBJS) $(LIBCUPSMIME) ../cups/$(LIBCUPS)
 
380
        echo Linking $@...
 
381
        $(CC) $(LDFLAGS) -o cupsd $(CUPSDOBJS) -L. -lcupsmime \
 
382
                $(LIBZ) $(SSLLIBS) $(LIBSLP) $(LIBLDAP) $(PAMLIBS) \
 
383
                $(LIBPAPER) $(LIBMALLOC) $(SERVERLIBS) $(DNSSDLIBS) $(LIBS) \
 
384
                $(LIBGSSAPI) $(LIBWRAP)
 
385
 
 
386
cupsd-static:   $(CUPSDOBJS) libcupsmime.a ../cups/$(LIBCUPSSTATIC)
 
387
        echo Linking $@...
 
388
        $(CC) $(LDFLAGS) -o cupsd-static $(CUPSDOBJS) libcupsmime.a \
 
389
                $(LIBZ) $(SSLLIBS) $(LIBSLP) $(LIBLDAP) $(PAMLIBS) \
 
390
                ../cups/$(LIBCUPSSTATIC) $(COMMONLIBS) $(LIBZ) $(LIBPAPER) \
 
391
                $(LIBMALLOC) $(SERVERLIBS) $(DNSSDLIBS) $(LIBGSSAPI) \
 
392
                $(LIBWRAP)
 
393
 
 
394
tls.o:  tls-darwin.c tls-gnutls.c tls-openssl.c
 
395
 
 
396
 
 
397
#
 
398
# Make the cupsfilter utility.
 
399
#
 
400
 
 
401
cupsfilter:     cupsfilter.o $(LIBCUPSMIME) ../cups/$(LIBCUPS)
 
402
        echo Linking $@...
 
403
        $(CC) $(LDFLAGS) -o cupsfilter cupsfilter.o -L. -lcupsmime $(LIBS)
 
404
        $(RM) convert
 
405
        $(LN) cupsfilter convert
 
406
 
 
407
 
 
408
#
 
409
# Make the device daemon, "cups-deviced".
 
410
#
 
411
 
 
412
cups-deviced:   cups-deviced.o util.o ../cups/$(LIBCUPS)
 
413
        echo Linking $@...
 
414
        $(CC) $(LDFLAGS) -o cups-deviced cups-deviced.o util.o $(LIBS)
 
415
 
 
416
 
 
417
#
 
418
# Make the driver daemon, "cups-driverd".
 
419
#
 
420
 
 
421
cups-driverd:   cups-driverd.o util.o ../cups/$(LIBCUPS) ../ppdc/$(LIBCUPSPPDC)
 
422
        echo Linking $@...
 
423
        $(CXX) $(LDFLAGS) -o cups-driverd cups-driverd.o util.o \
 
424
                -L../ppdc -lcupsppdc $(LIBS)
 
425
 
 
426
 
 
427
#
 
428
# Make the sandbox execution helper, "cups-exec".
 
429
#
 
430
 
 
431
cups-exec:      cups-exec.o
 
432
        echo Linking $@...
 
433
        $(CC) $(LDFLAGS) -o cups-exec cups-exec.o $(LIBS)
 
434
 
 
435
 
 
436
#
 
437
# Make the line printer daemon, "cups-lpd".
 
438
#
 
439
 
 
440
cups-lpd:       cups-lpd.o ../cups/$(LIBCUPS)
 
441
        echo Linking $@...
 
442
        $(CC) $(LDFLAGS) -o cups-lpd cups-lpd.o $(LIBS)
 
443
 
 
444
 
 
445
#
 
446
# libcupsmime.so.1, libcupsmime.sl.1
 
447
#
 
448
 
 
449
libcupsmime.so.1 libcupsmime.sl.1:      $(LIBOBJS)
 
450
        echo Linking $@...
 
451
        $(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(LIBOBJS) $(LIBS)
 
452
        $(RM) `basename $@ .1`
 
453
        $(LN) $@ `basename $@ .1`
 
454
 
 
455
 
 
456
#
 
457
# libcupsmime.1.dylib
 
458
#
 
459
 
 
460
libcupsmime.1.dylib:    $(LIBOBJS) libcupsmime.exp
 
461
        echo Linking $@...
 
462
        $(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ \
 
463
                -install_name $(libdir)/$@ \
 
464
                -current_version 1.0.0 \
 
465
                -compatibility_version 1.0.0 \
 
466
                -exported_symbols_list libcupsmime.exp \
 
467
                $(LIBOBJS) $(LIBS)
 
468
        $(RM) libcupsmime.dylib
 
469
        $(LN) $@ libcupsmime.dylib
 
470
 
 
471
 
 
472
#
 
473
# libcupsmime_s.a
 
474
#
 
475
 
 
476
libcupsmime_s.a:        $(LIBOBJS)
 
477
        echo Creating $@...
 
478
        $(DSO) $(DSOFLAGS) -o libcupsmime_s.o $(LIBOBJS) $(LIBS)
 
479
        $(RM) $@
 
480
        $(AR) $(ARFLAGS) $@ libcupsmime_s.o
 
481
 
 
482
 
 
483
#
 
484
# libcupsmime.la
 
485
#
 
486
 
 
487
libcupsmime.la:    $(LIBOBJS)
 
488
        echo Linking $@...
 
489
        $(CC) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(LIBOBJS:.o=.lo) -rpath $(LIBDIR) \
 
490
                -version-info 1:0 $(LIBS)
 
491
 
 
492
 
 
493
#
 
494
# libcupsmime.a
 
495
#
 
496
 
 
497
libcupsmime.a:  $(LIBOBJS)
 
498
        echo Archiving $@...
 
499
        $(RM) $@
 
500
        $(AR) $(ARFLAGS) $@ $(LIBOBJS)
 
501
        $(RANLIB) $@
 
502
 
 
503
 
 
504
#
 
505
# Make the test program, "testlpd".
 
506
#
 
507
 
 
508
testlpd:        testlpd.o ../cups/$(LIBCUPSSTATIC) cups-lpd
 
509
        echo Linking $@...
 
510
        $(CC) $(LDFLAGS) -o testlpd testlpd.o ../cups/$(LIBCUPSSTATIC) \
 
511
                $(COMMONLIBS) $(LIBZ) $(SSLLIBS) $(DNSSDLIBS) $(LIBGSSAPI)
 
512
 
 
513
 
 
514
#
 
515
# testmime
 
516
#
 
517
 
 
518
testmime:       testmime.o libcupsmime.a ../cups/$(LIBCUPSSTATIC)
 
519
        echo Linking $@...
 
520
        $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testmime.o libcupsmime.a \
 
521
                ../cups/$(LIBCUPSSTATIC) $(COMMONLIBS) $(LIBZ) $(SSLLIBS) \
 
522
                $(DNSSDLIBS) $(LIBGSSAPI)
 
523
        echo Running MIME tests...
 
524
        ./testmime
 
525
 
 
526
 
 
527
#
 
528
# Make the test program, "testspeed".
 
529
#
 
530
 
 
531
testspeed:      testspeed.o ../cups/$(LIBCUPSSTATIC)
 
532
        echo Linking $@...
 
533
        $(CC) $(LDFLAGS) -o testspeed testspeed.o ../cups/$(LIBCUPSSTATIC) \
 
534
                $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) $(LIBGSSAPI)
 
535
 
 
536
 
 
537
#
 
538
# Make the test program, "testsub".
 
539
#
 
540
 
 
541
testsub:        testsub.o ../cups/$(LIBCUPSSTATIC)
 
542
        echo Linking $@...
 
543
        $(CC) $(LDFLAGS) -o testsub testsub.o ../cups/$(LIBCUPSSTATIC) \
 
544
                $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) $(LIBGSSAPI)
 
545
 
 
546
 
 
547
#
 
548
# Lines of code computation...
 
549
#
 
550
 
 
551
sloc:
 
552
        echo "cupsd: \c"
 
553
        sloccount $(CUPSDOBJS:.o=.c) $(LIBOBJS:.o=.c) cups-driverd.cxx cups-lpd.c 2>/dev/null | grep "Total Physical" | awk '{print $$9}'
 
554
 
 
555
 
 
556
#
 
557
# Dependencies...
 
558
#
 
559
 
 
560
include Dependencies
 
561
 
 
562
 
 
563
#
 
564
# End of "$Id: Makefile 10996 2013-05-29 11:51:34Z msweet $".
 
565
#