]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
2 | # "$Id: Makefile 4903 2006-01-10 20:02:46Z mike $" | |
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 | ||
29 | BACKENDS = ipp lpd parallel scsi serial socket usb | |
30 | TARGETS = betest test1284 $(BACKENDS) | |
31 | OBJS = betest.o ipp.o lpd.o parallel.o scsi.o \ | |
32 | serial.o socket.o test1284.o usb.o | |
33 | ||
34 | ||
35 | # | |
36 | # Make all targets... | |
37 | # | |
38 | ||
39 | all: $(TARGETS) | |
40 | ||
41 | ||
42 | # | |
43 | # Clean all object files... | |
44 | # | |
45 | ||
46 | clean: | |
47 | $(RM) $(OBJS) $(TARGETS) http | |
48 | ||
49 | ||
50 | # | |
51 | # Update dependencies (without system header dependencies...) | |
52 | # | |
53 | ||
54 | depend: | |
55 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
56 | ||
57 | ||
58 | # | |
59 | # Install all targets... | |
60 | # | |
61 | ||
62 | install: all | |
63 | $(INSTALL_DIR) $(SERVERBIN)/backend | |
64 | for file in $(BACKENDS); do \ | |
65 | $(INSTALL_BIN) $$file $(SERVERBIN)/backend; \ | |
66 | done | |
67 | $(RM) $(SERVERBIN)/backend/http | |
68 | $(LN) ipp $(SERVERBIN)/backend/http | |
69 | ||
70 | ||
71 | # | |
72 | # betest | |
73 | # | |
74 | ||
75 | betest: betest.o ../cups/$(LIBCUPS) | |
76 | echo Linking $@... | |
77 | $(CC) $(LDFLAGS) -o betest betest.o $(LIBS) | |
78 | ||
79 | ||
80 | # | |
81 | # test1284 | |
82 | # | |
83 | ||
84 | test1284: test1284.o ../cups/libcups.a | |
85 | echo Linking $@... | |
86 | $(CC) $(LDFLAGS) -o test1284 test1284.o ../cups/libcups.a | |
87 | ||
88 | ||
89 | # | |
90 | # ieee1394 | |
91 | # | |
92 | ||
93 | ieee1394: ieee1394.o ieee1394-linux.o | |
94 | echo Linking $@... | |
95 | $(CC) $(LDFLAGS) -o ieee1394 ieee1394.o ieee1394-linux.o -lraw1394 $(LIBS) | |
96 | ||
97 | ieee1394.o: ieee1394.h | |
98 | ieee1394-linux.o: ieee1394.h | |
99 | ||
100 | ||
101 | # | |
102 | # ipp | |
103 | # | |
104 | ||
105 | ipp: ipp.o ../cups/$(LIBCUPS) | |
106 | echo Linking $@... | |
107 | $(CC) $(LDFLAGS) -o ipp ipp.o $(LIBS) | |
108 | $(RM) http | |
109 | $(LN) ipp http | |
110 | ||
111 | ||
112 | # | |
113 | # lpd | |
114 | # | |
115 | ||
116 | lpd: lpd.o ../cups/$(LIBCUPS) | |
117 | echo Linking $@... | |
118 | $(CC) $(LDFLAGS) -o lpd lpd.o $(LIBS) | |
119 | ||
120 | ||
121 | # | |
122 | # parallel | |
123 | # | |
124 | ||
125 | parallel: parallel.o ../cups/$(LIBCUPS) | |
126 | echo Linking $@... | |
127 | $(CC) $(LDFLAGS) -o parallel parallel.o $(LIBS) | |
128 | ||
129 | ||
130 | # | |
131 | # scsi | |
132 | # | |
133 | ||
134 | scsi: scsi.o ../cups/$(LIBCUPS) | |
135 | echo Linking $@... | |
136 | $(CC) $(LDFLAGS) -o scsi scsi.o $(LIBS) | |
137 | ||
138 | scsi.o: scsi.c scsi-irix.c scsi-linux.c | |
139 | ||
140 | ||
141 | # | |
142 | # serial | |
143 | # | |
144 | ||
145 | serial: serial.o ../cups/$(LIBCUPS) | |
146 | echo Linking $@... | |
147 | $(CC) $(LDFLAGS) -o serial serial.o $(BACKLIBS) $(LIBS) | |
148 | ||
149 | ||
150 | # | |
151 | # socket | |
152 | # | |
153 | ||
154 | socket: socket.o ../cups/$(LIBCUPS) | |
155 | echo Linking $@... | |
156 | $(CC) $(LDFLAGS) -o socket socket.o $(LIBS) | |
157 | ||
158 | ||
159 | # | |
160 | # usb | |
161 | # | |
162 | ||
163 | usb: usb.o ../cups/$(LIBCUPS) | |
164 | echo Linking $@... | |
165 | $(CC) $(LDFLAGS) -o usb usb.o $(BACKLIBS) $(LIBS) | |
166 | usb.o: usb.c usb-darwin.c usb-unix.c ieee1284.c | |
167 | ||
168 | ||
169 | # | |
170 | # Dependencies... | |
171 | # | |
172 | ||
173 | include Dependencies | |
174 | ||
175 | ||
176 | # | |
177 | # End of "$Id: Makefile 4903 2006-01-10 20:02:46Z mike $". | |
178 | # |