2 # "$Id: Makefile 5044 2006-02-01 21:35:30Z mike $"
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
= ipp parallel scsi serial socket usb
31 TARGETS
= betest test1284
$(RBACKENDS
) $(UBACKENDS
)
32 OBJS
= betest.o ipp.o lpd.o parallel.o scsi.o \
33 serial.o socket.o test1284.o usb.o
44 # Clean all object files...
48 $(RM
) $(OBJS
) $(TARGETS
) http
52 # Update dependencies (without system header dependencies...)
56 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
60 # Install all targets...
64 $(INSTALL_DIR
) $(SERVERBIN
)/backend
65 for file in
$(RBACKENDS
); do \
66 $(LIBTOOL
) $(INSTALL
) -m
700 $$file $(SERVERBIN
)/backend
; \
68 for file in
$(UBACKENDS
); do \
69 $(INSTALL_BIN
) $$file $(SERVERBIN
)/backend
; \
71 $(RM
) $(SERVERBIN
)/backend
/http
72 $(LN
) ipp
$(SERVERBIN
)/backend
/http
79 betest
: betest.o ..
/cups
/$(LIBCUPS
)
81 $(CC
) $(LDFLAGS
) -o betest betest.o
$(LIBS
)
88 test1284
: test1284.o ..
/cups
/libcups.a
90 $(CC
) $(LDFLAGS
) -o test1284 test1284.o ..
/cups
/libcups.a
97 ieee1394
: ieee1394.o ieee1394-linux.o
99 $(CC
) $(LDFLAGS
) -o ieee1394 ieee1394.o ieee1394-linux.o
-lraw1394
$(LIBS
)
101 ieee1394.o
: ieee1394.h
102 ieee1394-linux.o
: ieee1394.h
109 ipp
: ipp.o ..
/cups
/$(LIBCUPS
)
111 $(CC
) $(LDFLAGS
) -o ipp ipp.o
$(LIBS
)
120 lpd
: lpd.o ..
/cups
/$(LIBCUPS
)
122 $(CC
) $(LDFLAGS
) -o lpd lpd.o
$(LIBS
)
129 parallel
: parallel.o ..
/cups
/$(LIBCUPS
)
131 $(CC
) $(LDFLAGS
) -o parallel parallel.o
$(LIBS
)
138 scsi
: scsi.o ..
/cups
/$(LIBCUPS
)
140 $(CC
) $(LDFLAGS
) -o scsi scsi.o
$(LIBS
)
142 scsi.o
: scsi.c scsi-irix.c scsi-linux.c
149 serial
: serial.o ..
/cups
/$(LIBCUPS
)
151 $(CC
) $(LDFLAGS
) -o serial serial.o
$(BACKLIBS
) $(LIBS
)
158 socket
: socket.o ..
/cups
/$(LIBCUPS
)
160 $(CC
) $(LDFLAGS
) -o socket socket.o
$(LIBS
)
167 usb
: usb.o ..
/cups
/$(LIBCUPS
)
169 $(CC
) $(LDFLAGS
) -o usb usb.o
$(BACKLIBS
) $(LIBS
)
170 usb.o
: usb.c usb-darwin.c usb-unix.c ieee1284.c
181 # End of "$Id: Makefile 5044 2006-02-01 21:35:30Z mike $".