2 # "$Id: Makefile 5868 2006-08-23 19:39:39Z 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
87 # Clean all object files...
96 # Update dependencies (without system header dependencies...)
100 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
104 # Install the scheduler...
108 echo Creating
$(SBINDIR
)...
109 $(INSTALL_DIR
) -m
755 $(SBINDIR
)
110 echo Installing cupsd in
$(SBINDIR
)...
111 $(INSTALL_BIN
) cupsd
$(SBINDIR
)
112 echo Creating
$(SERVERBIN
)...
113 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)
114 echo Creating
$(SERVERBIN
)/daemon...
115 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/daemon
116 echo Installing cups-deviced
, cups-driverd
, cups-lpd
, and cups-polld in
$(SERVERBIN
)/daemon...
117 $(INSTALL_BIN
) cups-deviced
$(SERVERBIN
)/daemon
118 $(INSTALL_BIN
) cups-driverd
$(SERVERBIN
)/daemon
119 $(INSTALL_BIN
) cups-lpd
$(SERVERBIN
)/daemon
120 $(INSTALL_BIN
) cups-polld
$(SERVERBIN
)/daemon
121 echo Creating
$(SERVERBIN
)/driver...
122 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/driver
123 echo Creating
$(SERVERROOT
)...
124 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)
125 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)
126 echo Creating
$(SERVERROOT
)/interfaces...
127 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)/interfaces
128 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/interfaces
129 echo Creating
$(SERVERROOT
)/ppd...
130 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)/ppd
131 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/ppd
132 echo Creating
$(SERVERROOT
)/ssl...
133 $(INSTALL_DIR
) -m
700 $(SERVERROOT
)/ssl
134 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/ssl
135 echo Creating
$(STATEDIR
)...
136 $(INSTALL_DIR
) -m
755 $(STATEDIR
)
137 echo Creating
$(STATEDIR
)/certs...
138 $(INSTALL_DIR
) -m
511 $(STATEDIR
)/certs
139 -chgrp
$(CUPS_PRIMARY_SYSTEM_GROUP
) $(STATEDIR
)/certs
140 echo Creating
$(LOGDIR
)...
141 $(INSTALL_DIR
) -m
755 $(LOGDIR
)
142 echo Creating
$(REQUESTS
)...
143 $(INSTALL_DIR
) -m
710 $(REQUESTS
)
144 -chgrp
$(CUPS_GROUP
) $(REQUESTS
)
145 echo Creating
$(REQUESTS
)/tmp...
146 $(INSTALL_DIR
) -m
1770 $(REQUESTS
)/tmp
147 -chgrp
$(CUPS_GROUP
) $(REQUESTS
)/tmp
148 echo Creating
$(CACHEDIR
)...
149 $(INSTALL_DIR
) -m
775 $(CACHEDIR
)
150 -chgrp
$(CUPS_GROUP
) $(CACHEDIR
)
151 # echo Creating $(CACHEDIR)/ppd...
152 # $(INSTALL_DIR) -m 755 $(CACHEDIR)/ppd
153 # -chgrp $(CUPS_GROUP) $(CACHEDIR)/ppd
157 # Uninstall the scheduler...
161 $(RM
) $(SBINDIR
)/cupsd
162 $(RM
) $(SERVERBIN
)/daemon
/cups-deviced
163 $(RM
) $(SERVERBIN
)/daemon
/cups-driverd
164 $(RM
) $(SERVERBIN
)/daemon
/cups-lpd
165 $(RM
) $(SERVERBIN
)/daemon
/cups-polld
166 -$(RMDIR
) $(STATEDIR
)/certs
167 -$(RMDIR
) $(STATEDIR
)
168 -$(RMDIR
) $(SERVERROOT
)/ppd
169 -$(RMDIR
) $(SERVERROOT
)/interfaces
170 -$(RMDIR
) $(SERVERROOT
)
171 -$(RMDIR
) $(SERVERBIN
)/driver
172 -$(RMDIR
) $(SERVERBIN
)/daemon
173 -$(RMDIR
) $(SERVERBIN
)
175 -$(RMDIR
) $(REQUESTS
)/tmp
176 -$(RMDIR
) $(REQUESTS
)
178 -$(RMDIR
) $(CACHEDIR
)
182 # Make the scheduler executable, "cupsd".
185 cupsd
: $(CUPSDOBJS
) libmime.a ..
/cups
/$(LIBCUPS
)
187 $(CC
) $(LDFLAGS
) -o cupsd
$(CUPSDOBJS
) libmime.a \
188 $(LIBZ
) $(SSLLIBS
) $(LIBSLP
) $(LIBLDAP
) $(PAMLIBS
) \
189 $(LIBPAPER
) $(LIBMALLOC
) $(CUPSDLIBS
) $(LIBS
)
191 cupsd-static
: $(CUPSDOBJS
) libmime.a ..
/cups
/libcups.a
193 $(CC
) $(LDFLAGS
) -o cupsd-static
$(CUPSDOBJS
) libmime.a \
194 $(LIBZ
) $(SSLLIBS
) $(LIBSLP
) $(LIBLDAP
) $(PAMLIBS
) \
195 ..
/cups
/libcups.a
$(COMMONLIBS
) $(LIBZ
) $(LIBPAPER
) \
196 $(LIBMALLOC
) $(CUPSDLIBS
)
200 # Make the device daemon, "cups-deviced".
203 cups-deviced
: cups-deviced.o util.o ..
/cups
/$(LIBCUPS
)
205 $(CC
) $(LDFLAGS
) -o cups-deviced cups-deviced.o util.o
$(LIBS
)
209 # Make the driver daemon, "cups-driverd".
212 cups-driverd
: cups-driverd.o util.o ..
/cups
/$(LIBCUPS
)
214 $(CC
) $(LDFLAGS
) -o cups-driverd cups-driverd.o util.o
$(LIBS
)
218 # Make the line printer daemon, "cups-lpd".
221 cups-lpd
: cups-lpd.o ..
/cups
/$(LIBCUPS
)
223 $(CC
) $(LDFLAGS
) -o cups-lpd cups-lpd.o
$(LIBS
)
227 # Make the polling daemon, "cups-polld".
230 cups-polld
: cups-polld.o ..
/cups
/$(LIBCUPS
)
232 $(CC
) $(LDFLAGS
) -o cups-polld cups-polld.o
$(LIBS
)
239 libmime.a
: $(MIMEOBJS
)
242 $(AR
) $(ARFLAGS
) $@
$(MIMEOBJS
)
247 # Make the test program, "testdirsvc".
250 testdirsvc
: testdirsvc.o
252 $(CC
) $(LDFLAGS
) -o testdirsvc testdirsvc.o
$(COMMONLIBS
) $(NETLIBS
)
256 # Make the test program, "testlpd".
259 testlpd
: testlpd.o ..
/cups
/libcups.a cups-lpd
261 $(CC
) $(LDFLAGS
) -o testlpd testlpd.o ..
/cups
/libcups.a \
262 $(COMMONLIBS
) $(LIBZ
) $(SSLLIBS
)
269 testmime
: testmime.o libmime.a ..
/cups
/libcups.a
271 $(CC
) $(LDFLAGS
) -o
$@ testmime.o libmime.a ..
/cups
/libcups.a \
272 $(COMMONLIBS
) $(LIBZ
) $(SSLLIBS
)
276 # Make the test program, "testspeed".
279 testspeed
: testspeed.o ..
/cups
/libcups.a
281 $(CC
) $(LDFLAGS
) -o testspeed testspeed.o ..
/cups
/libcups.a \
282 $(COMMONLIBS
) $(LIBZ
) $(SSLLIBS
)
293 # End of "$Id: Makefile 5868 2006-08-23 19:39:39Z mike $".