2 # "$Id: Makefile 4801 2005-10-18 21:09:12Z mike $"
4 # Scheduler Makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2005 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
84 # Clean all object files...
93 # Update dependencies (without system header dependencies...)
97 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
101 # Install the scheduler...
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...
123 $(INSTALL_DIR
) $(SERVERROOT
)/interfaces
124 echo Creating
$(SERVERROOT
)/ppd...
125 $(INSTALL_DIR
) $(SERVERROOT
)/ppd
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
)...
133 $(INSTALL_DIR
) $(REQUESTS
)
134 echo Creating
$(REQUESTS
)/tmp...
135 $(INSTALL_DIR
) $(REQUESTS
)/tmp
136 echo Creating
$(CACHEDIR
)...
137 $(INSTALL_DIR
) $(CACHEDIR
)
138 echo Creating
$(CACHEDIR
)/ppd...
139 $(INSTALL_DIR
) $(CACHEDIR
)/ppd
143 # Make the scheduler executable, "cupsd".
146 cupsd
: $(CUPSDOBJS
) libmime.a ..
/cups
/$(LIBCUPS
)
148 $(CC
) $(LDFLAGS
) -o cupsd
$(CUPSDOBJS
) libmime.a \
149 $(LIBZ
) $(SSLLIBS
) $(LIBSLP
) $(PAMLIBS
) $(LIBS
) \
150 $(LIBPAPER
) $(LIBMALLOC
)
152 cupsd-static
: $(CUPSDOBJS
) libmime.a ..
/cups
/libcups.a
154 $(CC
) $(LDFLAGS
) -o cupsd-static
$(CUPSDOBJS
) libmime.a \
155 $(LIBZ
) $(SSLLIBS
) $(LIBSLP
) $(PAMLIBS
) ..
/cups
/libcups.a \
156 $(COMMONLIBS
) $(LIBZ
) $(LIBPAPER
) $(LIBMALLOC
)
160 # Make the device daemon, "cups-deviced".
163 cups-deviced
: cups-deviced.o util.o ..
/cups
/$(LIBCUPS
)
165 $(CC
) $(LDFLAGS
) -o cups-deviced cups-deviced.o util.o
$(LIBS
)
169 # Make the driver daemon, "cups-driverd".
172 cups-driverd
: cups-driverd.o util.o ..
/cups
/$(LIBCUPS
)
174 $(CC
) $(LDFLAGS
) -o cups-driverd cups-driverd.o util.o
$(LIBS
)
178 # Make the line printer daemon, "cups-lpd".
181 cups-lpd
: cups-lpd.o ..
/cups
/$(LIBCUPS
)
183 $(CC
) $(LDFLAGS
) -o cups-lpd cups-lpd.o
$(LIBS
)
187 # Make the polling daemon, "cups-polld".
190 cups-polld
: cups-polld.o ..
/cups
/$(LIBCUPS
)
192 $(CC
) $(LDFLAGS
) -o cups-polld cups-polld.o
$(LIBS
)
199 libmime.a
: $(MIMEOBJS
)
202 $(AR
) $(ARFLAGS
) $@
$(MIMEOBJS
)
207 # Make the test program, "testdirsvc".
210 testdirsvc
: testdirsvc.o
212 $(CC
) $(LDFLAGS
) -o testdirsvc testdirsvc.o
$(COMMONLIBS
) $(NETLIBS
)
219 testmime
: testmime.o libmime.a
221 $(CC
) $(LDFLAGS
) -o
$@ testmime.o libmime.a ..
/cups
/libcups.a \
222 $(COMMONLIBS
) $(LIBZ
)
226 # Make the test program, "testspeed".
229 testspeed
: testspeed.o ..
/cups
/$(LIBCUPS
)
231 $(CC
) $(LDFLAGS
) -o testspeed testspeed.o
$(LIBS
)
242 # End of "$Id: Makefile 4801 2005-10-18 21:09:12Z mike $".