]> git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/Makefile
d3f659f31c10c1c9e5f3c5a235112291ab5defa5
[thirdparty/cups.git] / scheduler / Makefile
1 #
2 # "$Id$"
3 #
4 # Scheduler Makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1997-2005 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 = auth.o banners.o cert.o classes.o client.o conf.o devices.o \
28 dirsvc.o main.o ipp.o listen.o job.o log.o network.o \
29 policy.o ppds.o printers.o process.o quotas.o server.o \
30 statbuf.o subscriptions.o
31 MIMEOBJS = filter.o mime.o type.o
32 OBJS = $(CUPSDOBJS) $(MIMEOBJS) cups-lpd.o cups-polld.o testmime.o \
33 testspeed.o
34 TARGETS = cupsd cups-lpd cups-polld libmime.a testmime testspeed
35
36 #
37 # Make everything...
38 #
39
40 all: $(TARGETS)
41
42
43 #
44 # Clean all object files...
45 #
46
47 clean:
48 $(RM) $(OBJS)
49 $(RM) $(TARGETS)
50
51
52 #
53 # Update dependencies (without system header dependencies...)
54 #
55
56 depend:
57 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
58
59
60 #
61 # Install the scheduler...
62 #
63
64 install: all
65 $(INSTALL_DIR) $(SBINDIR)
66 $(INSTALL_BIN) cupsd $(SBINDIR)
67 $(INSTALL_DIR) $(SERVERBIN)/daemon
68 $(INSTALL_BIN) cups-lpd $(SERVERBIN)/daemon
69 $(INSTALL_BIN) cups-polld $(SERVERBIN)/daemon
70 $(INSTALL_DIR) -m 711 -o $(CUPS_USER) -g $(CUPS_GROUP) $(SERVERROOT)/certs
71 $(INSTALL_DIR) $(SERVERROOT)/interfaces
72 $(INSTALL_DIR) $(SERVERROOT)/ppd
73 $(INSTALL_DIR) $(LOGDIR)
74 $(INSTALL_DIR) -m 710 $(REQUESTS)
75 $(INSTALL_DIR) -m 1770 $(REQUESTS)/tmp
76
77
78 #
79 # Make the scheduler executable, "cupsd".
80 #
81
82 cupsd: $(CUPSDOBJS) libmime.a ../cups/$(LIBCUPS)
83 echo Linking $@...
84 $(CC) $(LDFLAGS) -o cupsd $(CUPSDOBJS) libmime.a \
85 $(LIBZ) $(SSLLIBS) $(LIBSLP) $(PAMLIBS) $(LIBS) \
86 $(LIBPAPER) $(LIBMALLOC)
87
88
89 #
90 # Make the line printer daemon, "cups-lpd".
91 #
92
93 cups-lpd: cups-lpd.o ../cups/$(LIBCUPS)
94 echo Linking $@...
95 $(CC) $(LDFLAGS) -o cups-lpd cups-lpd.o $(LIBS)
96
97
98 #
99 # Make the polling daemon, "cups-polld".
100 #
101
102 cups-polld: cups-polld.o ../cups/$(LIBCUPS)
103 echo Linking $@...
104 $(CC) $(LDFLAGS) -o cups-polld cups-polld.o $(LIBS)
105
106
107 #
108 # libmime.a
109 #
110
111 libmime.a: $(MIMEOBJS)
112 echo Archiving $@...
113 $(RM) $@
114 $(AR) $(ARFLAGS) $@ $(MIMEOBJS)
115 $(RANLIB) $@
116
117
118 #
119 # testmime
120 #
121
122 testmime: testmime.o libmime.a
123 echo Linking $@...
124 $(CC) $(LDFLAGS) -o $@ testmime.o libmime.a ../cups/libcups.a $(LIBZ)
125
126
127 #
128 # Make the test program, "testspeed".
129 #
130
131 testspeed: testspeed.o ../cups/$(LIBCUPS)
132 echo Linking $@...
133 $(CC) $(LDFLAGS) -o testspeed testspeed.o $(LIBS)
134
135
136 #
137 # Dependencies...
138 #
139
140 include Dependencies
141
142
143 #
144 # End of "$Id$".
145 #