2 # "$Id: Makefile 6291 2007-02-19 21:54:27Z mike $"
4 # Scheduler Makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2007 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
90 # Clean all object files...
99 # Update dependencies (without system header dependencies...)
103 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
107 # Install the scheduler...
111 echo Creating
$(SBINDIR
)...
112 $(INSTALL_DIR
) -m
755 $(SBINDIR
)
113 echo Installing cupsd in
$(SBINDIR
)...
114 $(INSTALL_BIN
) cupsd
$(SBINDIR
)
115 echo Creating
$(SERVERBIN
)...
116 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)
117 echo Creating
$(SERVERBIN
)/daemon...
118 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/daemon
119 echo Installing cups-deviced
, cups-driverd
, cups-lpd
, and cups-polld in
$(SERVERBIN
)/daemon...
120 $(INSTALL_BIN
) cups-deviced
$(SERVERBIN
)/daemon
121 $(INSTALL_BIN
) cups-driverd
$(SERVERBIN
)/daemon
122 $(INSTALL_BIN
) cups-lpd
$(SERVERBIN
)/daemon
123 $(INSTALL_BIN
) cups-polld
$(SERVERBIN
)/daemon
124 echo Creating
$(SERVERBIN
)/driver...
125 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/driver
126 echo Creating
$(SERVERROOT
)...
127 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)
128 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)
129 echo Creating
$(SERVERROOT
)/interfaces...
130 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)/interfaces
131 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/interfaces
132 echo Creating
$(SERVERROOT
)/ppd...
133 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)/ppd
134 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/ppd
135 echo Creating
$(SERVERROOT
)/ssl...
136 $(INSTALL_DIR
) -m
700 $(SERVERROOT
)/ssl
137 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/ssl
138 echo Creating
$(STATEDIR
)...
139 $(INSTALL_DIR
) -m
755 $(STATEDIR
)
140 echo Creating
$(STATEDIR
)/certs...
141 $(INSTALL_DIR
) -m
511 $(STATEDIR
)/certs
142 -chgrp
$(CUPS_PRIMARY_SYSTEM_GROUP
) $(STATEDIR
)/certs
143 echo Creating
$(LOGDIR
)...
144 $(INSTALL_DIR
) -m
755 $(LOGDIR
)
145 echo Creating
$(REQUESTS
)...
146 $(INSTALL_DIR
) -m
710 $(REQUESTS
)
147 -chgrp
$(CUPS_GROUP
) $(REQUESTS
)
148 echo Creating
$(REQUESTS
)/tmp...
149 $(INSTALL_DIR
) -m
1770 $(REQUESTS
)/tmp
150 -chgrp
$(CUPS_GROUP
) $(REQUESTS
)/tmp
151 echo Creating
$(CACHEDIR
)...
152 $(INSTALL_DIR
) -m
775 $(CACHEDIR
)
153 -chgrp
$(CUPS_GROUP
) $(CACHEDIR
)
154 # echo Creating $(CACHEDIR)/ppd...
155 # $(INSTALL_DIR) -m 755 $(CACHEDIR)/ppd
156 # -chgrp $(CUPS_GROUP) $(CACHEDIR)/ppd
160 # Uninstall the scheduler...
164 $(RM
) $(SBINDIR
)/cupsd
165 $(RM
) $(SERVERBIN
)/daemon
/cups-deviced
166 $(RM
) $(SERVERBIN
)/daemon
/cups-driverd
167 $(RM
) $(SERVERBIN
)/daemon
/cups-lpd
168 $(RM
) $(SERVERBIN
)/daemon
/cups-polld
169 -$(RMDIR
) $(STATEDIR
)/certs
170 -$(RMDIR
) $(STATEDIR
)
171 -$(RMDIR
) $(SERVERROOT
)/ppd
172 -$(RMDIR
) $(SERVERROOT
)/interfaces
173 -$(RMDIR
) $(SERVERROOT
)
174 -$(RMDIR
) $(SERVERBIN
)/driver
175 -$(RMDIR
) $(SERVERBIN
)/daemon
176 -$(RMDIR
) $(SERVERBIN
)
178 -$(RMDIR
) $(REQUESTS
)/tmp
179 -$(RMDIR
) $(REQUESTS
)
181 -$(RMDIR
) $(CACHEDIR
)
185 # Make the scheduler executable, "cupsd".
188 cupsd
: $(CUPSDOBJS
) libmime.a ..
/cups
/$(LIBCUPS
)
190 $(CC
) $(LDFLAGS
) -o cupsd
$(CUPSDOBJS
) libmime.a \
191 $(LIBZ
) $(SSLLIBS
) $(LIBSLP
) $(LIBLDAP
) $(PAMLIBS
) \
192 $(LIBPAPER
) $(LIBMALLOC
) $(CUPSDLIBS
) $(DNSSDLIBS
) $(LIBS
) \
195 cupsd-static
: $(CUPSDOBJS
) libmime.a ..
/cups
/libcups.a
197 $(CC
) $(LDFLAGS
) -o cupsd-static
$(CUPSDOBJS
) libmime.a \
198 $(LIBZ
) $(SSLLIBS
) $(LIBSLP
) $(LIBLDAP
) $(PAMLIBS
) \
199 ..
/cups
/libcups.a
$(COMMONLIBS
) $(LIBZ
) $(LIBPAPER
) \
200 $(LIBMALLOC
) $(CUPSDLIBS
) $(DNSSDLIBS
) $(LIBGSSAPI
)
204 # Make the device daemon, "cups-deviced".
207 cups-deviced
: cups-deviced.o util.o ..
/cups
/$(LIBCUPS
)
209 $(CC
) $(LDFLAGS
) -o cups-deviced cups-deviced.o util.o
$(LIBS
)
213 # Make the driver daemon, "cups-driverd".
216 cups-driverd
: cups-driverd.o util.o ..
/cups
/$(LIBCUPS
)
218 $(CC
) $(LDFLAGS
) -o cups-driverd cups-driverd.o util.o
$(LIBS
)
222 # Make the line printer daemon, "cups-lpd".
225 cups-lpd
: cups-lpd.o ..
/cups
/$(LIBCUPS
)
227 $(CC
) $(LDFLAGS
) -o cups-lpd cups-lpd.o
$(LIBS
)
231 # Make the polling daemon, "cups-polld".
234 cups-polld
: cups-polld.o ..
/cups
/$(LIBCUPS
)
236 $(CC
) $(LDFLAGS
) -o cups-polld cups-polld.o
$(LIBS
)
243 libmime.a
: $(MIMEOBJS
)
246 $(AR
) $(ARFLAGS
) $@
$(MIMEOBJS
)
251 # Make the test program, "testdirsvc".
254 testdirsvc
: testdirsvc.o
256 $(CC
) $(LDFLAGS
) -o testdirsvc testdirsvc.o
$(COMMONLIBS
) $(NETLIBS
)
260 # Make the test program, "testlpd".
263 testlpd
: testlpd.o ..
/cups
/libcups.a cups-lpd
265 $(CC
) $(LDFLAGS
) -o testlpd testlpd.o ..
/cups
/libcups.a \
266 $(COMMONLIBS
) $(LIBZ
) $(SSLLIBS
) $(LIBGSSAPI
)
273 testmime
: testmime.o libmime.a ..
/cups
/libcups.a
275 $(CC
) $(LDFLAGS
) -o
$@ testmime.o libmime.a ..
/cups
/libcups.a \
276 $(COMMONLIBS
) $(LIBZ
) $(SSLLIBS
) $(LIBGSSAPI
)
280 # Make the test program, "testspeed".
283 testspeed
: testspeed.o ..
/cups
/libcups.a
285 $(CC
) $(LDFLAGS
) -o testspeed testspeed.o ..
/cups
/libcups.a \
286 $(SSLLIBS
) $(COMMONLIBS
) $(LIBZ
) $(LIBGSSAPI
)
290 # Make the test program, "testsub".
293 testsub
: testsub.o ..
/cups
/libcups.a
295 $(CC
) $(LDFLAGS
) -o testsub testsub.o ..
/cups
/libcups.a \
296 $(SSLLIBS
) $(COMMONLIBS
) $(LIBZ
) $(LIBGSSAPI
)
307 # End of "$Id: Makefile 6291 2007-02-19 21:54:27Z mike $".