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
27 CUPSDOBJS
= auth.o banners.o cert.o classes.o client.o conf.o devices.o \
28 dirsvc.o main.o ipp.o listen.o job.o log.o network.o \
29 policy.o ppds.o printers.o process.o quotas.o server.o \
30 statbuf.o subscriptions.o
31 MIMEOBJS
= filter.o mime.o type.o
32 OBJS
= $(CUPSDOBJS
) $(MIMEOBJS
) cups-lpd.o cups-polld.o testmime.o \
34 TARGETS
= cupsd cups-lpd cups-polld libmime.a testmime testspeed
44 # Clean all object files...
53 # Update dependencies (without system header dependencies...)
57 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
61 # Install the scheduler...
65 $(INSTALL_DIR
) $(SBINDIR
)
66 $(INSTALL_BIN
) cupsd
$(SBINDIR
)
67 $(INSTALL_DIR
) $(SERVERBIN
)/daemon
68 $(INSTALL_BIN
) cups-lpd
$(SERVERBIN
)/daemon
69 $(INSTALL_BIN
) cups-polld
$(SERVERBIN
)/daemon
70 $(INSTALL_DIR
) -m
711 -o
$(CUPS_USER
) -g
$(CUPS_GROUP
) $(SERVERROOT
)/certs
71 $(INSTALL_DIR
) $(SERVERROOT
)/interfaces
72 $(INSTALL_DIR
) $(SERVERROOT
)/ppd
73 $(INSTALL_DIR
) $(LOGDIR
)
74 $(INSTALL_DIR
) -m
710 $(REQUESTS
)
75 $(INSTALL_DIR
) -m
1770 $(REQUESTS
)/tmp
79 # Make the scheduler executable, "cupsd".
82 cupsd
: $(CUPSDOBJS
) libmime.a ..
/cups
/$(LIBCUPS
)
84 $(CC
) $(LDFLAGS
) -o cupsd
$(CUPSDOBJS
) libmime.a \
85 $(LIBZ
) $(SSLLIBS
) $(LIBSLP
) $(PAMLIBS
) $(LIBS
) \
86 $(LIBPAPER
) $(LIBMALLOC
)
90 # Make the line printer daemon, "cups-lpd".
93 cups-lpd
: cups-lpd.o ..
/cups
/$(LIBCUPS
)
95 $(CC
) $(LDFLAGS
) -o cups-lpd cups-lpd.o
$(LIBS
)
99 # Make the polling daemon, "cups-polld".
102 cups-polld
: cups-polld.o ..
/cups
/$(LIBCUPS
)
104 $(CC
) $(LDFLAGS
) -o cups-polld cups-polld.o
$(LIBS
)
111 libmime.a
: $(MIMEOBJS
)
114 $(AR
) $(ARFLAGS
) $@
$(MIMEOBJS
)
122 testmime
: testmime.o libmime.a
124 $(CC
) $(LDFLAGS
) -o
$@ testmime.o libmime.a ..
/cups
/libcups.a
$(LIBZ
)
128 # Make the test program, "testspeed".
131 testspeed
: testspeed.o ..
/cups
/$(LIBCUPS
)
133 $(CC
) $(LDFLAGS
) -o testspeed testspeed.o
$(LIBS
)