]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
fa73b229 | 2 | # "$Id: Makefile 4970 2006-01-24 14:05:45Z mike $" |
ef416fc2 | 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 = \ | |
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 | MIMEOBJS = \ | |
50 | filter.o \ | |
51 | mime.o \ | |
52 | type.o | |
53 | OBJS = \ | |
54 | $(CUPSDOBJS) \ | |
55 | $(MIMEOBJS) \ | |
56 | cups-deviced.o \ | |
57 | cups-driverd.o \ | |
58 | cups-lpd.o \ | |
59 | cups-polld.o \ | |
60 | testdirsvc.o \ | |
61 | testmime.o \ | |
62 | testspeed.o \ | |
63 | util.o | |
64 | TARGETS = \ | |
65 | cupsd \ | |
66 | cups-deviced \ | |
67 | cups-driverd \ | |
68 | cups-lpd \ | |
69 | cups-polld \ | |
70 | libmime.a \ | |
71 | testdirsvc \ | |
72 | testmime \ | |
73 | testspeed | |
74 | ||
75 | ||
76 | # | |
77 | # Make everything... | |
78 | # | |
79 | ||
80 | all: $(TARGETS) | |
81 | ||
82 | ||
83 | # | |
84 | # Clean all object files... | |
85 | # | |
86 | ||
87 | clean: | |
88 | $(RM) $(OBJS) | |
89 | $(RM) $(TARGETS) | |
90 | ||
91 | ||
92 | # | |
93 | # Update dependencies (without system header dependencies...) | |
94 | # | |
95 | ||
96 | depend: | |
97 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
98 | ||
99 | ||
100 | # | |
101 | # Install the scheduler... | |
102 | # | |
103 | ||
104 | install: all | |
105 | echo Creating $(SBINDIR)... | |
106 | $(INSTALL_DIR) $(SBINDIR) | |
107 | echo Installing cupsd in $(SBINDIR)... | |
108 | $(INSTALL_BIN) cupsd $(SBINDIR) | |
109 | echo Creating $(SERVERBIN)... | |
110 | $(INSTALL_DIR) $(SERVERBIN) | |
111 | echo Creating $(SERVERBIN)/daemon... | |
112 | $(INSTALL_DIR) $(SERVERBIN)/daemon | |
113 | echo Installing cups-deviced, cups-driverd, cups-lpd, and cups-polld in $(SERVERBIN)/daemon... | |
114 | $(INSTALL_BIN) cups-deviced $(SERVERBIN)/daemon | |
115 | $(INSTALL_BIN) cups-driverd $(SERVERBIN)/daemon | |
116 | $(INSTALL_BIN) cups-lpd $(SERVERBIN)/daemon | |
117 | $(INSTALL_BIN) cups-polld $(SERVERBIN)/daemon | |
118 | echo Creating $(SERVERBIN)/driver... | |
119 | $(INSTALL_DIR) $(SERVERBIN)/driver | |
120 | echo Creating $(SERVERROOT)... | |
121 | $(INSTALL_DIR) $(SERVERROOT) | |
122 | echo Creating $(SERVERROOT)/interfaces... | |
fa73b229 | 123 | $(INSTALL_DIR) -g $(CUPS_GROUP) $(SERVERROOT)/interfaces |
ef416fc2 | 124 | echo Creating $(SERVERROOT)/ppd... |
fa73b229 | 125 | $(INSTALL_DIR) -g $(CUPS_GROUP) $(SERVERROOT)/ppd |
ef416fc2 | 126 | echo Creating $(STATEDIR)... |
127 | $(INSTALL_DIR) $(STATEDIR) | |
128 | echo Creating $(STATEDIR)/certs... | |
129 | $(INSTALL_DIR) $(STATEDIR)/certs | |
130 | echo Creating $(LOGDIR)... | |
131 | $(INSTALL_DIR) $(LOGDIR) | |
132 | echo Creating $(REQUESTS)... | |
fa73b229 | 133 | $(INSTALL_DIR) -g $(CUPS_GROUP) $(REQUESTS) |
134 | echo Creating -g $(CUPS_GROUP) $(REQUESTS)/tmp... | |
ef416fc2 | 135 | $(INSTALL_DIR) $(REQUESTS)/tmp |
136 | echo Creating $(CACHEDIR)... | |
137 | $(INSTALL_DIR) $(CACHEDIR) | |
138 | echo Creating $(CACHEDIR)/ppd... | |
139 | $(INSTALL_DIR) $(CACHEDIR)/ppd | |
140 | ||
141 | ||
142 | # | |
143 | # Make the scheduler executable, "cupsd". | |
144 | # | |
145 | ||
146 | cupsd: $(CUPSDOBJS) libmime.a ../cups/$(LIBCUPS) | |
147 | echo Linking $@... | |
148 | $(CC) $(LDFLAGS) -o cupsd $(CUPSDOBJS) libmime.a \ | |
149 | $(LIBZ) $(SSLLIBS) $(LIBSLP) $(PAMLIBS) $(LIBS) \ | |
150 | $(LIBPAPER) $(LIBMALLOC) | |
151 | ||
152 | cupsd-static: $(CUPSDOBJS) libmime.a ../cups/libcups.a | |
153 | echo Linking $@... | |
154 | $(CC) $(LDFLAGS) -o cupsd-static $(CUPSDOBJS) libmime.a \ | |
155 | $(LIBZ) $(SSLLIBS) $(LIBSLP) $(PAMLIBS) ../cups/libcups.a \ | |
156 | $(COMMONLIBS) $(LIBZ) $(LIBPAPER) $(LIBMALLOC) | |
157 | ||
158 | ||
159 | # | |
160 | # Make the device daemon, "cups-deviced". | |
161 | # | |
162 | ||
163 | cups-deviced: cups-deviced.o util.o ../cups/$(LIBCUPS) | |
164 | echo Linking $@... | |
165 | $(CC) $(LDFLAGS) -o cups-deviced cups-deviced.o util.o $(LIBS) | |
166 | ||
167 | ||
168 | # | |
169 | # Make the driver daemon, "cups-driverd". | |
170 | # | |
171 | ||
172 | cups-driverd: cups-driverd.o util.o ../cups/$(LIBCUPS) | |
173 | echo Linking $@... | |
174 | $(CC) $(LDFLAGS) -o cups-driverd cups-driverd.o util.o $(LIBS) | |
175 | ||
176 | ||
177 | # | |
178 | # Make the line printer daemon, "cups-lpd". | |
179 | # | |
180 | ||
181 | cups-lpd: cups-lpd.o ../cups/$(LIBCUPS) | |
182 | echo Linking $@... | |
183 | $(CC) $(LDFLAGS) -o cups-lpd cups-lpd.o $(LIBS) | |
184 | ||
185 | ||
186 | # | |
187 | # Make the polling daemon, "cups-polld". | |
188 | # | |
189 | ||
190 | cups-polld: cups-polld.o ../cups/$(LIBCUPS) | |
191 | echo Linking $@... | |
192 | $(CC) $(LDFLAGS) -o cups-polld cups-polld.o $(LIBS) | |
193 | ||
194 | ||
195 | # | |
196 | # libmime.a | |
197 | # | |
198 | ||
199 | libmime.a: $(MIMEOBJS) | |
200 | echo Archiving $@... | |
201 | $(RM) $@ | |
202 | $(AR) $(ARFLAGS) $@ $(MIMEOBJS) | |
203 | $(RANLIB) $@ | |
204 | ||
205 | ||
206 | # | |
207 | # Make the test program, "testdirsvc". | |
208 | # | |
209 | ||
210 | testdirsvc: testdirsvc.o | |
211 | echo Linking $@... | |
212 | $(CC) $(LDFLAGS) -o testdirsvc testdirsvc.o $(COMMONLIBS) $(NETLIBS) | |
213 | ||
214 | ||
215 | # | |
216 | # testmime | |
217 | # | |
218 | ||
fa73b229 | 219 | testmime: testmime.o libmime.a ../cups/libcups.a |
ef416fc2 | 220 | echo Linking $@... |
221 | $(CC) $(LDFLAGS) -o $@ testmime.o libmime.a ../cups/libcups.a \ | |
fa73b229 | 222 | $(COMMONLIBS) $(LIBZ) $(SSLLIBS) |
ef416fc2 | 223 | |
224 | ||
225 | # | |
226 | # Make the test program, "testspeed". | |
227 | # | |
228 | ||
229 | testspeed: testspeed.o ../cups/$(LIBCUPS) | |
230 | echo Linking $@... | |
231 | $(CC) $(LDFLAGS) -o testspeed testspeed.o $(LIBS) | |
232 | ||
233 | ||
234 | # | |
235 | # Dependencies... | |
236 | # | |
237 | ||
238 | include Dependencies | |
239 | ||
240 | ||
241 | # | |
fa73b229 | 242 | # End of "$Id: Makefile 4970 2006-01-24 14:05:45Z mike $". |
ef416fc2 | 243 | # |