]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/Makefile
Copyright update...
[thirdparty/cups.git] / scheduler / Makefile
CommitLineData
0bc26a84 1#
efb2f309 2# "$Id: Makefile,v 1.41 2002/01/02 17:59:13 mike Exp $"
0bc26a84 3#
a9de544f 4# Scheduler Makefile for the Common UNIX Printing System (CUPS).
0bc26a84 5#
efb2f309 6# Copyright 1997-2002 by Easy Software Products, all rights reserved.
0bc26a84 7#
a9de544f 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
13# at:
14#
15# Attn: CUPS Licensing Information
0bc26a84 16# Easy Software Products
8784b6a6 17# 44141 Airport View Drive, Suite 204
0bc26a84 18# Hollywood, Maryland 20636-3111 USA
19#
20# Voice: (301) 373-9603
21# EMail: cups-info@cups.org
22# WWW: http://www.cups.org
23#
0bc26a84 24
25include ../Makedefs
26
d21a7597 27CUPSDOBJS = auth.o banners.o cert.o classes.o client.o conf.o devices.o \
d7845573 28 dirsvc.o main.o ipp.o listen.o job.o log.o ppds.o printers.o \
89db771d 29 quotas.o server.o
68edc300 30MIMEOBJS = filter.o mime.o type.o
85e96ec0 31OBJS = $(CUPSDOBJS) $(MIMEOBJS) cups-lpd.o cups-polld.o testmime.o \
32 testspeed.o
0bc26a84 33
a3e17a89 34
b14d90ba 35#
53e4c17e 36# Make everything...
b14d90ba 37#
38
8d9af412 39all: cupsd cups-lpd cups-polld libmime.a
68edc300 40
0bc26a84 41
42#
b14d90ba 43# Clean all object files...
44#
45
46clean:
85e96ec0 47 $(RM) $(OBJS) cupsd cups-lpd cups-polld libmime.a testmime testspeed
68edc300 48
b14d90ba 49
50#
51# Install the scheduler...
52#
53
54install:
bf905723 55 $(INSTALL_DIR) $(SBINDIR)
a3e17a89 56 $(INSTALL_BIN) cupsd $(SBINDIR)
bf905723 57 $(INSTALL_DIR) $(SERVERBIN)/daemon
9f8098a9 58 $(INSTALL_BIN) cups-lpd $(SERVERBIN)/daemon
59 $(INSTALL_BIN) cups-polld $(SERVERBIN)/daemon
bf905723 60 $(INSTALL_DIR) -m 711 -o $(CUPS_USER) -g $(CUPS_GROUP) $(SERVERROOT)/certs
61 $(INSTALL_DIR) $(SERVERROOT)/interfaces
62 $(INSTALL_DIR) $(SERVERROOT)/ppd
63 $(INSTALL_DIR) $(LOGDIR)
64 $(INSTALL_DIR) -m 700 -o $(CUPS_USER) -g $(CUPS_GROUP) $(REQUESTS)
65 $(INSTALL_DIR) -m 1700 -o $(CUPS_USER) -g $(CUPS_GROUP) $(REQUESTS)/tmp
53e4c17e 66
68edc300 67
53e4c17e 68#
69# Make the scheduler executable, "cupsd".
70#
71
68edc300 72cupsd: $(CUPSDOBJS) libmime.a ../cups/$(LIBCUPS)
37005c09 73 echo Linking $@...
8c57ced1 74 $(CC) $(LDFLAGS) -o cupsd $(CUPSDOBJS) libmime.a \
25d465a4 75 $(LIBZ) $(SSLLIBS) $(LIBSLP) $(PAMLIBS) $(LIBS) $(LIBMALLOC)
53e4c17e 76
d21a7597 77$(CUPSDOBJS): auth.h banners.h cert.h classes.h client.h conf.h \
78 cupsd.h dirsvc.h job.h mime.h printers.h \
17b95e13 79 ../cups/cups.h ../cups/http.h ../cups/ipp.h \
68edc300 80 ../cups/language.h ../cups/string.h
81
82
85e96ec0 83#
84# Make the line printer daemon, "cups-lpd".
85#
86
87cups-lpd: cups-lpd.o ../cups/$(LIBCUPS)
88 echo Linking $@...
89 $(CC) $(LDFLAGS) -o cups-lpd cups-lpd.o $(LIBS)
90
91cups-lpd.o: ../cups/cups.h ../cups/http.h ../cups/ipp.h \
92 ../cups/language.h ../cups/string.h
93
94
e173a49f 95#
96# Make the polling daemon, "cups-polld".
97#
98
99cups-polld: cups-polld.o ../cups/$(LIBCUPS)
100 echo Linking $@...
101 $(CC) $(LDFLAGS) -o cups-polld cups-polld.o $(LIBS)
102
103cups-polld.o: ../cups/cups.h ../cups/http.h ../cups/ipp.h \
104 ../cups/language.h ../cups/string.h
105
106
68edc300 107#
108# libmime.a
109#
110
111libmime.a: $(MIMEOBJS)
112 echo Archiving $@...
113 $(RM) $@
114 $(AR) $(ARFLAGS) $@ $(MIMEOBJS)
115 $(RANLIB) $@
116
117$(MIMEOBJS): mime.h
118
119
120#
121# testmime
122#
123
124testmime: testmime.o libmime.a
125 echo Linking $@...
8d9af412 126 $(CC) $(LDFLAGS) -o $@ testmime.o libmime.a ../cups/libcups.a
68edc300 127
128testmime.o: mime.h
b14d90ba 129
130#
85a106ae 131# Make the test program, "testspeed".
132#
133
7e8966ca 134testspeed: testspeed.o ../cups/$(LIBCUPS)
37005c09 135 echo Linking $@...
85a106ae 136 $(CC) $(LDFLAGS) -o testspeed testspeed.o $(LIBS)
137
138testspeed.o: ../cups/cups.h ../cups/http.h ../cups/ipp.h ../cups/language.h
139
140$(OBJS): ../config.h ../Makedefs
141
a3e17a89 142
85a106ae 143#
efb2f309 144# End of "$Id: Makefile,v 1.41 2002/01/02 17:59:13 mike Exp $".
0bc26a84 145#