4 # Backend 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
24 # This file is subject to the Apple OS-Developed Software exception.
30 UBACKENDS
= $(PAP
) parallel scsi serial snmp socket usb
31 TARGETS
= betest test1284 libbackend.a
$(RBACKENDS
) $(UBACKENDS
)
32 LIBOBJS
= ieee1284.o runloop.o
33 OBJS
= betest.o ipp.o lpd.o pap.o parallel.o scsi.o \
34 serial.o snmp.o socket.o test1284.o usb.o
45 # Clean all object files...
49 $(RM
) $(OBJS
) $(TARGETS
) http
53 # Update dependencies (without system header dependencies...)
57 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
61 # Install all targets...
65 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/backend
66 for file in
$(RBACKENDS
); do \
67 $(LIBTOOL
) $(INSTALL
) -m
700 $$file $(SERVERBIN
)/backend
; \
69 for file in
$(UBACKENDS
); do \
70 $(INSTALL_BIN
) $$file $(SERVERBIN
)/backend
; \
72 $(RM
) $(SERVERBIN
)/backend
/http
73 $(LN
) ipp
$(SERVERBIN
)/backend
/http
77 # Uninstall all targets...
81 for file in
$(RBACKENDS
) $(UBACKENDS
); do \
82 $(RM
) $(SERVERBIN
)/backend
/$$file; \
84 $(RM
) $(SERVERBIN
)/backend
/http
85 -$(RMDIR
) $(SERVERBIN
)/backend
86 -$(RMDIR
) $(SERVERBIN
)
93 betest
: betest.o ..
/cups
/$(LIBCUPS
)
95 $(CC
) $(LDFLAGS
) -o betest betest.o
$(LIBS
)
102 test1284
: test1284.o ..
/cups
/libcups.a
104 $(CC
) $(LDFLAGS
) -o test1284 test1284.o ..
/cups
/libcups.a \
105 $(SSLLIBS
) $(COMMONLIBS
) $(LIBZ
)
112 libbackend.a
: $(LIBOBJS
)
115 $(AR
) $(ARFLAGS
) $@
$(LIBOBJS
)
123 ieee1394
: ieee1394.o ieee1394-linux.o
125 $(CC
) $(LDFLAGS
) -o ieee1394 ieee1394.o ieee1394-linux.o
-lraw1394
$(LIBS
)
127 ieee1394.o
: ieee1394.h
128 ieee1394-linux.o
: ieee1394.h
135 ipp
: ipp.o ..
/cups
/$(LIBCUPS
)
137 $(CC
) $(LDFLAGS
) -o ipp ipp.o
$(LIBS
)
146 lpd
: lpd.o ..
/cups
/$(LIBCUPS
)
148 $(CC
) $(LDFLAGS
) -o lpd lpd.o
$(LIBS
)
155 pap
: pap.o ..
/cups
/$(LIBCUPS
)
157 $(CC
) $(LDFLAGS
) -o pap pap.o
$(BACKLIBS
) $(LIBS
) -framework AppleTalk
164 parallel
: parallel.o ..
/cups
/$(LIBCUPS
) libbackend.a
166 $(CC
) $(LDFLAGS
) -o parallel parallel.o libbackend.a
$(LIBS
)
173 scsi
: scsi.o ..
/cups
/$(LIBCUPS
)
175 $(CC
) $(LDFLAGS
) -o scsi scsi.o
$(LIBS
)
177 scsi.o
: scsi.c scsi-irix.c scsi-linux.c
184 serial
: serial.o ..
/cups
/$(LIBCUPS
) libbackend.a
186 $(CC
) $(LDFLAGS
) -o serial serial.o libbackend.a
$(BACKLIBS
) $(LIBS
)
193 snmp
: snmp.o ..
/cups
/$(LIBCUPS
) libbackend.a
195 $(CC
) $(LDFLAGS
) -o snmp snmp.o libbackend.a
$(LIBS
)
202 socket
: socket.o ..
/cups
/$(LIBCUPS
) libbackend.a
204 $(CC
) $(LDFLAGS
) -o socket socket.o libbackend.a
$(LIBS
)
211 usb
: usb.o ..
/cups
/$(LIBCUPS
) libbackend.a
213 $(CC
) $(LDFLAGS
) -o usb usb.o libbackend.a
$(BACKLIBS
) $(LIBS
)
214 usb.o
: usb.c usb-darwin.c usb-unix.c