]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
e00b005a | 2 | # "$Id: Makefile 5044 2006-02-01 21:35:30Z mike $" |
ef416fc2 | 3 | # |
4 | # Backend makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
6 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. | |
7 | # | |
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 | |
16 | # Easy Software Products | |
17 | # 44141 Airport View Drive, Suite 204 | |
18 | # Hollywood, Maryland 20636 USA | |
19 | # | |
20 | # Voice: (301) 373-9600 | |
21 | # EMail: cups-info@cups.org | |
22 | # WWW: http://www.cups.org | |
23 | # | |
24 | # This file is subject to the Apple OS-Developed Software exception. | |
25 | # | |
26 | ||
27 | include ../Makedefs | |
28 | ||
e00b005a | 29 | RBACKENDS = lpd |
30 | UBACKENDS = ipp parallel scsi serial socket usb | |
31 | TARGETS = betest test1284 $(RBACKENDS) $(UBACKENDS) | |
ef416fc2 | 32 | OBJS = betest.o ipp.o lpd.o parallel.o scsi.o \ |
33 | serial.o socket.o test1284.o usb.o | |
34 | ||
35 | ||
36 | # | |
37 | # Make all targets... | |
38 | # | |
39 | ||
40 | all: $(TARGETS) | |
41 | ||
42 | ||
43 | # | |
44 | # Clean all object files... | |
45 | # | |
46 | ||
47 | clean: | |
48 | $(RM) $(OBJS) $(TARGETS) http | |
49 | ||
50 | ||
51 | # | |
52 | # Update dependencies (without system header dependencies...) | |
53 | # | |
54 | ||
55 | depend: | |
56 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
57 | ||
58 | ||
59 | # | |
60 | # Install all targets... | |
61 | # | |
62 | ||
63 | install: all | |
64 | $(INSTALL_DIR) $(SERVERBIN)/backend | |
e00b005a | 65 | for file in $(RBACKENDS); do \ |
66 | $(LIBTOOL) $(INSTALL) -m 700 $$file $(SERVERBIN)/backend; \ | |
67 | done | |
68 | for file in $(UBACKENDS); do \ | |
ef416fc2 | 69 | $(INSTALL_BIN) $$file $(SERVERBIN)/backend; \ |
70 | done | |
71 | $(RM) $(SERVERBIN)/backend/http | |
72 | $(LN) ipp $(SERVERBIN)/backend/http | |
73 | ||
74 | ||
75 | # | |
76 | # betest | |
77 | # | |
78 | ||
79 | betest: betest.o ../cups/$(LIBCUPS) | |
80 | echo Linking $@... | |
81 | $(CC) $(LDFLAGS) -o betest betest.o $(LIBS) | |
82 | ||
83 | ||
84 | # | |
85 | # test1284 | |
86 | # | |
87 | ||
88 | test1284: test1284.o ../cups/libcups.a | |
89 | echo Linking $@... | |
90 | $(CC) $(LDFLAGS) -o test1284 test1284.o ../cups/libcups.a | |
91 | ||
92 | ||
93 | # | |
94 | # ieee1394 | |
95 | # | |
96 | ||
97 | ieee1394: ieee1394.o ieee1394-linux.o | |
98 | echo Linking $@... | |
99 | $(CC) $(LDFLAGS) -o ieee1394 ieee1394.o ieee1394-linux.o -lraw1394 $(LIBS) | |
100 | ||
101 | ieee1394.o: ieee1394.h | |
102 | ieee1394-linux.o: ieee1394.h | |
103 | ||
104 | ||
105 | # | |
106 | # ipp | |
107 | # | |
108 | ||
109 | ipp: ipp.o ../cups/$(LIBCUPS) | |
110 | echo Linking $@... | |
111 | $(CC) $(LDFLAGS) -o ipp ipp.o $(LIBS) | |
112 | $(RM) http | |
113 | $(LN) ipp http | |
114 | ||
115 | ||
116 | # | |
117 | # lpd | |
118 | # | |
119 | ||
120 | lpd: lpd.o ../cups/$(LIBCUPS) | |
121 | echo Linking $@... | |
122 | $(CC) $(LDFLAGS) -o lpd lpd.o $(LIBS) | |
123 | ||
124 | ||
125 | # | |
126 | # parallel | |
127 | # | |
128 | ||
129 | parallel: parallel.o ../cups/$(LIBCUPS) | |
130 | echo Linking $@... | |
131 | $(CC) $(LDFLAGS) -o parallel parallel.o $(LIBS) | |
132 | ||
133 | ||
134 | # | |
135 | # scsi | |
136 | # | |
137 | ||
138 | scsi: scsi.o ../cups/$(LIBCUPS) | |
139 | echo Linking $@... | |
140 | $(CC) $(LDFLAGS) -o scsi scsi.o $(LIBS) | |
141 | ||
142 | scsi.o: scsi.c scsi-irix.c scsi-linux.c | |
143 | ||
144 | ||
145 | # | |
146 | # serial | |
147 | # | |
148 | ||
149 | serial: serial.o ../cups/$(LIBCUPS) | |
150 | echo Linking $@... | |
151 | $(CC) $(LDFLAGS) -o serial serial.o $(BACKLIBS) $(LIBS) | |
152 | ||
153 | ||
154 | # | |
155 | # socket | |
156 | # | |
157 | ||
158 | socket: socket.o ../cups/$(LIBCUPS) | |
159 | echo Linking $@... | |
160 | $(CC) $(LDFLAGS) -o socket socket.o $(LIBS) | |
161 | ||
162 | ||
163 | # | |
164 | # usb | |
165 | # | |
166 | ||
167 | usb: usb.o ../cups/$(LIBCUPS) | |
168 | echo Linking $@... | |
169 | $(CC) $(LDFLAGS) -o usb usb.o $(BACKLIBS) $(LIBS) | |
170 | usb.o: usb.c usb-darwin.c usb-unix.c ieee1284.c | |
171 | ||
172 | ||
173 | # | |
174 | # Dependencies... | |
175 | # | |
176 | ||
177 | include Dependencies | |
178 | ||
179 | ||
180 | # | |
e00b005a | 181 | # End of "$Id: Makefile 5044 2006-02-01 21:35:30Z mike $". |
ef416fc2 | 182 | # |