2 # "$Id: Makefile 6576 2007-06-20 00:23:32Z mike $"
4 # Backend makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2007 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
= ipp
$(PAP
) $(LEGACY_BACKENDS
) 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
) $(LIBOBJS
) 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
74 if
test "x$(SYMROOT)" != "x"; then \
75 $(INSTALL_DIR
) $(SYMROOT
); \
76 for file in
$(TARGETS
); do \
77 cp
$$file $(SYMROOT
); \
83 # Uninstall all targets...
87 for file in
$(RBACKENDS
) $(UBACKENDS
); do \
88 $(RM
) $(SERVERBIN
)/backend
/$$file; \
90 $(RM
) $(SERVERBIN
)/backend
/http
91 -$(RMDIR
) $(SERVERBIN
)/backend
92 -$(RMDIR
) $(SERVERBIN
)
99 betest
: betest.o ..
/cups
/$(LIBCUPS
)
101 $(CC
) $(LDFLAGS
) -o betest betest.o
$(LIBS
)
108 test1284
: test1284.o ..
/cups
/libcups.a
110 $(CC
) $(LDFLAGS
) -o test1284 test1284.o ..
/cups
/libcups.a \
111 $(SSLLIBS
) $(COMMONLIBS
) $(LIBZ
)
118 libbackend.a
: $(LIBOBJS
)
121 $(AR
) $(ARFLAGS
) $@
$(LIBOBJS
)
129 ieee1394
: ieee1394.o ieee1394-linux.o
131 $(CC
) $(LDFLAGS
) -o ieee1394 ieee1394.o ieee1394-linux.o
-lraw1394
$(LIBS
)
133 ieee1394.o
: ieee1394.h
134 ieee1394-linux.o
: ieee1394.h
141 ipp
: ipp.o ..
/cups
/$(LIBCUPS
)
143 $(CC
) $(LDFLAGS
) -o ipp ipp.o
$(LIBS
)
152 lpd
: lpd.o ..
/cups
/$(LIBCUPS
)
154 $(CC
) $(LDFLAGS
) -o lpd lpd.o
$(LIBS
)
161 pap
: pap.o ..
/cups
/$(LIBCUPS
)
163 $(CC
) $(LDFLAGS
) -o pap pap.o
$(BACKLIBS
) $(LIBS
) -framework AppleTalk
170 parallel
: parallel.o ..
/cups
/$(LIBCUPS
) libbackend.a
172 $(CC
) $(LDFLAGS
) -o parallel parallel.o libbackend.a
$(LIBS
)
179 scsi
: scsi.o ..
/cups
/$(LIBCUPS
)
181 $(CC
) $(LDFLAGS
) -o scsi scsi.o
$(LIBS
)
183 scsi.o
: scsi.c scsi-irix.c scsi-linux.c
190 serial
: serial.o ..
/cups
/$(LIBCUPS
) libbackend.a
192 $(CC
) $(LDFLAGS
) -o serial serial.o libbackend.a
$(BACKLIBS
) $(LIBS
)
199 snmp
: snmp.o ..
/cups
/$(LIBCUPS
) libbackend.a
201 $(CC
) $(LDFLAGS
) -o snmp snmp.o libbackend.a
$(LIBS
)
208 socket
: socket.o ..
/cups
/$(LIBCUPS
) libbackend.a
210 $(CC
) $(LDFLAGS
) -o socket socket.o libbackend.a
$(LIBS
)
217 usb
: usb.o ..
/cups
/$(LIBCUPS
) libbackend.a
219 $(CC
) $(LDFLAGS
) -o usb usb.o libbackend.a
$(BACKLIBS
) $(LIBS
)
220 usb.o
: usb.c usb-darwin.c usb-unix.c
231 # End of "$Id: Makefile 6576 2007-06-20 00:23:32Z mike $".