2 # "$Id: Makefile 5940 2006-09-11 18:30:09Z mike $"
4 # Scheduler Makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
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
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636 USA
20 # Voice: (301) 373-9600
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
89 # Clean all object files...
98 # Update dependencies (without system header dependencies...)
102 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
106 # Install the scheduler...
110 echo Creating
$(SBINDIR
)...
111 $(INSTALL_DIR
) -m
755 $(SBINDIR
)
112 echo Installing cupsd in
$(SBINDIR
)...
113 $(INSTALL_BIN
) cupsd
$(SBINDIR
)
114 echo Creating
$(SERVERBIN
)...
115 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)
116 echo Creating
$(SERVERBIN
)/daemon...
117 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/daemon
118 echo Installing cups-deviced
, cups-driverd
, cups-lpd
, and cups-polld in
$(SERVERBIN
)/daemon...
119 $(INSTALL_BIN
) cups-deviced
$(SERVERBIN
)/daemon
120 $(INSTALL_BIN
) cups-driverd
$(SERVERBIN
)/daemon
121 $(INSTALL_BIN
) cups-lpd
$(SERVERBIN
)/daemon
122 $(INSTALL_BIN
) cups-polld
$(SERVERBIN
)/daemon
123 echo Creating
$(SERVERBIN
)/driver...
124 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/driver
125 echo Creating
$(SERVERROOT
)...
126 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)
127 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)
128 echo Creating
$(SERVERROOT
)/interfaces...
129 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)/interfaces
130 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/interfaces
131 echo Creating
$(SERVERROOT
)/ppd...
132 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)/ppd
133 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/ppd
134 echo Creating
$(SERVERROOT
)/ssl...
135 $(INSTALL_DIR
) -m
700 $(SERVERROOT
)/ssl
136 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/ssl
137 echo Creating
$(STATEDIR
)...
138 $(INSTALL_DIR
) -m
755 $(STATEDIR
)
139 echo Creating
$(STATEDIR
)/certs...
140 $(INSTALL_DIR
) -m
511 $(STATEDIR
)/certs
141 -chgrp
$(CUPS_PRIMARY_SYSTEM_GROUP
) $(STATEDIR
)/certs
142 echo Creating
$(LOGDIR
)...
143 $(INSTALL_DIR
) -m
755 $(LOGDIR
)
144 echo Creating
$(REQUESTS
)...
145 $(INSTALL_DIR
) -m
710 $(REQUESTS
)
146 -chgrp
$(CUPS_GROUP
) $(REQUESTS
)
147 echo Creating
$(REQUESTS
)/tmp...
148 $(INSTALL_DIR
) -m
1770 $(REQUESTS
)/tmp
149 -chgrp
$(CUPS_GROUP
) $(REQUESTS
)/tmp
150 echo Creating
$(CACHEDIR
)...
151 $(INSTALL_DIR
) -m
775 $(CACHEDIR
)
152 -chgrp
$(CUPS_GROUP
) $(CACHEDIR
)
153 # echo Creating $(CACHEDIR)/ppd...
154 # $(INSTALL_DIR) -m 755 $(CACHEDIR)/ppd
155 # -chgrp $(CUPS_GROUP) $(CACHEDIR)/ppd
159 # Uninstall the scheduler...
163 $(RM
) $(SBINDIR
)/cupsd
164 $(RM
) $(SERVERBIN
)/daemon
/cups-deviced
165 $(RM
) $(SERVERBIN
)/daemon
/cups-driverd
166 $(RM
) $(SERVERBIN
)/daemon
/cups-lpd
167 $(RM
) $(SERVERBIN
)/daemon
/cups-polld
168 -$(RMDIR
) $(STATEDIR
)/certs
169 -$(RMDIR
) $(STATEDIR
)
170 -$(RMDIR
) $(SERVERROOT
)/ppd
171 -$(RMDIR
) $(SERVERROOT
)/interfaces
172 -$(RMDIR
) $(SERVERROOT
)
173 -$(RMDIR
) $(SERVERBIN
)/driver
174 -$(RMDIR
) $(SERVERBIN
)/daemon
175 -$(RMDIR
) $(SERVERBIN
)
177 -$(RMDIR
) $(REQUESTS
)/tmp
178 -$(RMDIR
) $(REQUESTS
)
180 -$(RMDIR
) $(CACHEDIR
)
184 # Make the scheduler executable, "cupsd".
187 cupsd
: $(CUPSDOBJS
) libmime.a ..
/cups
/$(LIBCUPS
)
189 $(CC
) $(LDFLAGS
) -o cupsd
$(CUPSDOBJS
) libmime.a \
190 $(LIBZ
) $(SSLLIBS
) $(LIBSLP
) $(LIBLDAP
) $(PAMLIBS
) \
191 $(LIBPAPER
) $(LIBMALLOC
) $(CUPSDLIBS
) $(LIBS
)
193 cupsd-static
: $(CUPSDOBJS
) libmime.a ..
/cups
/libcups.a
195 $(CC
) $(LDFLAGS
) -o cupsd-static
$(CUPSDOBJS
) libmime.a \
196 $(LIBZ
) $(SSLLIBS
) $(LIBSLP
) $(LIBLDAP
) $(PAMLIBS
) \
197 ..
/cups
/libcups.a
$(COMMONLIBS
) $(LIBZ
) $(LIBPAPER
) \
198 $(LIBMALLOC
) $(CUPSDLIBS
)
202 # Make the device daemon, "cups-deviced".
205 cups-deviced
: cups-deviced.o util.o ..
/cups
/$(LIBCUPS
)
207 $(CC
) $(LDFLAGS
) -o cups-deviced cups-deviced.o util.o
$(LIBS
)
211 # Make the driver daemon, "cups-driverd".
214 cups-driverd
: cups-driverd.o util.o ..
/cups
/$(LIBCUPS
)
216 $(CC
) $(LDFLAGS
) -o cups-driverd cups-driverd.o util.o
$(LIBS
)
220 # Make the line printer daemon, "cups-lpd".
223 cups-lpd
: cups-lpd.o ..
/cups
/$(LIBCUPS
)
225 $(CC
) $(LDFLAGS
) -o cups-lpd cups-lpd.o
$(LIBS
)
229 # Make the polling daemon, "cups-polld".
232 cups-polld
: cups-polld.o ..
/cups
/$(LIBCUPS
)
234 $(CC
) $(LDFLAGS
) -o cups-polld cups-polld.o
$(LIBS
)
241 libmime.a
: $(MIMEOBJS
)
244 $(AR
) $(ARFLAGS
) $@
$(MIMEOBJS
)
249 # Make the test program, "testdirsvc".
252 testdirsvc
: testdirsvc.o
254 $(CC
) $(LDFLAGS
) -o testdirsvc testdirsvc.o
$(COMMONLIBS
) $(NETLIBS
)
258 # Make the test program, "testlpd".
261 testlpd
: testlpd.o ..
/cups
/libcups.a cups-lpd
263 $(CC
) $(LDFLAGS
) -o testlpd testlpd.o ..
/cups
/libcups.a \
264 $(COMMONLIBS
) $(LIBZ
) $(SSLLIBS
)
271 testmime
: testmime.o libmime.a ..
/cups
/libcups.a
273 $(CC
) $(LDFLAGS
) -o
$@ testmime.o libmime.a ..
/cups
/libcups.a \
274 $(COMMONLIBS
) $(LIBZ
) $(SSLLIBS
)
278 # Make the test program, "testspeed".
281 testspeed
: testspeed.o ..
/cups
/libcups.a
283 $(CC
) $(LDFLAGS
) -o testspeed testspeed.o ..
/cups
/libcups.a \
284 $(COMMONLIBS
) $(LIBZ
) $(SSLLIBS
)
288 # Make the test program, "testsub".
291 testsub
: testsub.o ..
/cups
/libcups.a
293 $(CC
) $(LDFLAGS
) -o testsub testsub.o ..
/cups
/libcups.a \
294 $(LIBGSSAPI
) $(SSLLIBS
) $(COMMONLIBS
) $(LIBZ
)
305 # End of "$Id: Makefile 5940 2006-09-11 18:30:09Z mike $".