2 # "$Id: Makefile 177 2006-06-21 00:20:03Z jlovell $"
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
85 # Clean all object files...
94 # Update dependencies (without system header dependencies...)
98 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
102 # Install the scheduler...
106 echo Creating
$(SBINDIR
)...
107 $(INSTALL_DIR
) -m
755 $(SBINDIR
)
108 echo Installing cupsd in
$(SBINDIR
)...
109 $(INSTALL_BIN
) cupsd
$(SBINDIR
)
110 echo Creating
$(SERVERBIN
)...
111 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)
112 echo Creating
$(SERVERBIN
)/daemon...
113 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/daemon
114 echo Installing cups-deviced
, cups-driverd
, cups-lpd
, and cups-polld in
$(SERVERBIN
)/daemon...
115 $(INSTALL_BIN
) cups-deviced
$(SERVERBIN
)/daemon
116 $(INSTALL_BIN
) cups-driverd
$(SERVERBIN
)/daemon
117 $(INSTALL_BIN
) cups-lpd
$(SERVERBIN
)/daemon
118 $(INSTALL_BIN
) cups-polld
$(SERVERBIN
)/daemon
119 echo Creating
$(SERVERBIN
)/driver...
120 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/driver
121 echo Creating
$(SERVERROOT
)...
122 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)
123 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)
124 echo Creating
$(SERVERROOT
)/interfaces...
125 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)/interfaces
126 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/interfaces
127 echo Creating
$(SERVERROOT
)/ppd...
128 $(INSTALL_DIR
) -m
755 $(SERVERROOT
)/ppd
129 -chgrp
$(CUPS_GROUP
) $(SERVERROOT
)/ppd
130 echo Creating
$(STATEDIR
)...
131 $(INSTALL_DIR
) -m
755 $(STATEDIR
)
132 echo Creating
$(STATEDIR
)/certs...
133 $(INSTALL_DIR
) -m
511 $(STATEDIR
)/certs
134 -chgrp
$(CUPS_PRIMARY_SYSTEM_GROUP
) $(STATEDIR
)/certs
135 echo Creating
$(LOGDIR
)...
136 $(INSTALL_DIR
) -m
755 $(LOGDIR
)
137 echo Creating
$(REQUESTS
)...
138 $(INSTALL_DIR
) -m
710 $(REQUESTS
)
139 -chgrp
$(CUPS_GROUP
) $(REQUESTS
)
140 echo Creating
$(REQUESTS
)/tmp...
141 $(INSTALL_DIR
) -m
1770 $(REQUESTS
)/tmp
142 -chgrp
$(CUPS_GROUP
) $(REQUESTS
)/tmp
143 echo Creating
$(CACHEDIR
)...
144 $(INSTALL_DIR
) -m
775 $(CACHEDIR
)
145 -chgrp
$(CUPS_GROUP
) $(CACHEDIR
)
146 # echo Creating $(CACHEDIR)/ppd...
147 # $(INSTALL_DIR) -m 755 $(CACHEDIR)/ppd
148 # -chgrp $(CUPS_GROUP) $(CACHEDIR)/ppd
152 # Uninstall the scheduler...
156 $(RM
) $(SBINDIR
)/cupsd
157 $(RM
) $(SERVERBIN
)/daemon
/cups-deviced
158 $(RM
) $(SERVERBIN
)/daemon
/cups-driverd
159 $(RM
) $(SERVERBIN
)/daemon
/cups-lpd
160 $(RM
) $(SERVERBIN
)/daemon
/cups-polld
161 -$(RMDIR
) $(STATEDIR
)/certs
162 -$(RMDIR
) $(STATEDIR
)
163 -$(RMDIR
) $(SERVERROOT
)/ppd
164 -$(RMDIR
) $(SERVERROOT
)/interfaces
165 -$(RMDIR
) $(SERVERROOT
)
166 -$(RMDIR
) $(SERVERBIN
)/driver
167 -$(RMDIR
) $(SERVERBIN
)/daemon
168 -$(RMDIR
) $(SERVERBIN
)
170 -$(RMDIR
) $(REQUESTS
)/tmp
171 -$(RMDIR
) $(REQUESTS
)
173 -$(RMDIR
) $(CACHEDIR
)
177 # Make the scheduler executable, "cupsd".
180 cupsd
: $(CUPSDOBJS
) libmime.a ..
/cups
/$(LIBCUPS
)
182 $(CC
) $(LDFLAGS
) -o cupsd
$(CUPSDOBJS
) libmime.a \
183 $(LIBZ
) $(SSLLIBS
) $(LIBSLP
) $(LIBLDAP
) $(PAMLIBS
) \
184 $(LIBPAPER
) $(LIBMALLOC
) $(CUPSDLIBS
) $(LIBS
)
186 cupsd-static
: $(CUPSDOBJS
) libmime.a ..
/cups
/libcups.a
188 $(CC
) $(LDFLAGS
) -o cupsd-static
$(CUPSDOBJS
) libmime.a \
189 $(LIBZ
) $(SSLLIBS
) $(LIBSLP
) $(LIBLDAP
) $(PAMLIBS
) \
190 ..
/cups
/libcups.a
$(COMMONLIBS
) $(LIBZ
) $(LIBPAPER
) \
191 $(LIBMALLOC
) $(CUPSDLIBS
)
195 # Make the device daemon, "cups-deviced".
198 cups-deviced
: cups-deviced.o util.o ..
/cups
/$(LIBCUPS
)
200 $(CC
) $(LDFLAGS
) -o cups-deviced cups-deviced.o util.o
$(LIBS
)
204 # Make the driver daemon, "cups-driverd".
207 cups-driverd
: cups-driverd.o util.o ..
/cups
/$(LIBCUPS
)
209 $(CC
) $(LDFLAGS
) -o cups-driverd cups-driverd.o util.o
$(LIBS
)
213 # Make the line printer daemon, "cups-lpd".
216 cups-lpd
: cups-lpd.o ..
/cups
/$(LIBCUPS
)
218 $(CC
) $(LDFLAGS
) -o cups-lpd cups-lpd.o
$(LIBS
)
222 # Make the polling daemon, "cups-polld".
225 cups-polld
: cups-polld.o ..
/cups
/$(LIBCUPS
)
227 $(CC
) $(LDFLAGS
) -o cups-polld cups-polld.o
$(LIBS
)
234 libmime.a
: $(MIMEOBJS
)
237 $(AR
) $(ARFLAGS
) $@
$(MIMEOBJS
)
242 # Make the test program, "testdirsvc".
245 testdirsvc
: testdirsvc.o
247 $(CC
) $(LDFLAGS
) -o testdirsvc testdirsvc.o
$(COMMONLIBS
) $(NETLIBS
)
254 testmime
: testmime.o libmime.a ..
/cups
/libcups.a
256 $(CC
) $(LDFLAGS
) -o
$@ testmime.o libmime.a ..
/cups
/libcups.a \
257 $(COMMONLIBS
) $(LIBZ
) $(SSLLIBS
)
261 # Make the test program, "testspeed".
264 testspeed
: testspeed.o ..
/cups
/$(LIBCUPS
)
266 $(CC
) $(LDFLAGS
) -o testspeed testspeed.o
$(LIBS
)
277 # End of "$Id: Makefile 177 2006-06-21 00:20:03Z jlovell $".