]>
Commit | Line | Data |
---|---|---|
e73c6c0a | 1 | # |
997fbfa7 | 2 | # "$Id: Makefile,v 1.38 2002/12/17 18:56:33 swdev Exp $" |
e73c6c0a | 3 | # |
4 | # Backend makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
997fbfa7 | 6 | # Copyright 1997-2003 by Easy Software Products, all rights reserved. |
e73c6c0a | 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 | |
8784b6a6 | 17 | # 44141 Airport View Drive, Suite 204 |
e73c6c0a | 18 | # Hollywood, Maryland 20636-3111 USA |
19 | # | |
20 | # Voice: (301) 373-9603 | |
21 | # EMail: cups-info@cups.org | |
22 | # WWW: http://www.cups.org | |
23 | # | |
34410ef2 | 24 | # This file is subject to the Apple OS-Developed Software exception. |
25 | # | |
e73c6c0a | 26 | |
27 | include ../Makedefs | |
28 | ||
62810009 | 29 | BACKENDS = ipp lpd parallel scsi serial socket usb |
5935d4af | 30 | TARGETS = betest $(BACKENDS) |
62810009 | 31 | OBJS = betest.o ipp.o lpd.o parallel.o scsi.o serial.o socket.o usb.o |
a2c6b8b1 | 32 | |
e73c6c0a | 33 | |
34 | # | |
35 | # Make all targets... | |
36 | # | |
37 | ||
38 | all: $(TARGETS) | |
39 | ||
a2c6b8b1 | 40 | |
e73c6c0a | 41 | # |
42 | # Clean all object files... | |
43 | # | |
44 | ||
45 | clean: | |
bb5310bb | 46 | $(RM) $(OBJS) $(TARGETS) http |
e73c6c0a | 47 | |
a2c6b8b1 | 48 | |
f2848fbc | 49 | # |
50 | # Update dependencies (without system header dependencies...) | |
51 | # | |
52 | ||
53 | depend: | |
7d6d5dfe | 54 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 |
f2848fbc | 55 | |
56 | ||
e73c6c0a | 57 | # |
58 | # Install all targets... | |
59 | # | |
60 | ||
f2848fbc | 61 | install: all |
bf905723 | 62 | $(INSTALL_DIR) $(SERVERBIN)/backend |
9f8098a9 | 63 | for file in $(BACKENDS); do \ |
64 | $(INSTALL_BIN) $$file $(SERVERBIN)/backend; \ | |
2c4ce013 | 65 | done |
9f8098a9 | 66 | $(RM) $(SERVERBIN)/backend/http |
67 | $(LN) ipp $(SERVERBIN)/backend/http | |
c8f9565c | 68 | |
a2c6b8b1 | 69 | |
6a536282 | 70 | # |
71 | # betest | |
72 | # | |
73 | ||
74 | betest: betest.o ../cups/$(LIBCUPS) | |
75 | echo Linking $@... | |
76 | $(CC) $(LDFLAGS) -o betest betest.o $(LIBS) | |
77 | ||
a2c6b8b1 | 78 | |
c8f9565c | 79 | # |
80 | # ipp | |
81 | # | |
82 | ||
ab679c8f | 83 | ipp: ipp.o ../cups/$(LIBCUPS) |
8391453b | 84 | echo Linking $@... |
c8f9565c | 85 | $(CC) $(LDFLAGS) -o ipp ipp.o $(LIBS) |
f99d4fce | 86 | $(RM) http |
87 | $(LN) ipp http | |
c8f9565c | 88 | |
a2c6b8b1 | 89 | |
e73c6c0a | 90 | # |
91 | # lpd | |
92 | # | |
93 | ||
ab679c8f | 94 | lpd: lpd.o ../cups/$(LIBCUPS) |
8391453b | 95 | echo Linking $@... |
e73c6c0a | 96 | $(CC) $(LDFLAGS) -o lpd lpd.o $(LIBS) |
97 | ||
a2c6b8b1 | 98 | |
e73c6c0a | 99 | # |
100 | # parallel | |
101 | # | |
102 | ||
ab679c8f | 103 | parallel: parallel.o ../cups/$(LIBCUPS) |
8391453b | 104 | echo Linking $@... |
e73c6c0a | 105 | $(CC) $(LDFLAGS) -o parallel parallel.o $(LIBS) |
106 | ||
a2c6b8b1 | 107 | |
62810009 | 108 | # |
109 | # scsi | |
110 | # | |
111 | ||
112 | scsi: scsi.o ../cups/$(LIBCUPS) | |
113 | echo Linking $@... | |
114 | $(CC) $(LDFLAGS) -o scsi scsi.o $(LIBS) | |
115 | ||
116 | scsi.o: scsi.c scsi-irix.c scsi-linux.c | |
117 | ||
118 | ||
e73c6c0a | 119 | # |
120 | # serial | |
121 | # | |
122 | ||
ab679c8f | 123 | serial: serial.o ../cups/$(LIBCUPS) |
8391453b | 124 | echo Linking $@... |
a352d816 | 125 | $(CC) $(LDFLAGS) -o serial serial.o $(BACKLIBS) $(LIBS) |
e73c6c0a | 126 | |
a2c6b8b1 | 127 | |
e73c6c0a | 128 | # |
129 | # socket | |
130 | # | |
131 | ||
ab679c8f | 132 | socket: socket.o ../cups/$(LIBCUPS) |
8391453b | 133 | echo Linking $@... |
e73c6c0a | 134 | $(CC) $(LDFLAGS) -o socket socket.o $(LIBS) |
135 | ||
a2c6b8b1 | 136 | |
137 | # | |
138 | # usb | |
139 | # | |
140 | ||
141 | usb: usb.o ../cups/$(LIBCUPS) | |
142 | echo Linking $@... | |
a352d816 | 143 | $(CC) $(LDFLAGS) -o usb usb.o $(BACKLIBS) $(LIBS) |
a2c6b8b1 | 144 | |
f2848fbc | 145 | |
146 | # | |
147 | # Dependencies... | |
148 | # | |
149 | ||
150 | include Dependencies | |
a2c6b8b1 | 151 | |
152 | ||
e73c6c0a | 153 | # |
997fbfa7 | 154 | # End of "$Id: Makefile,v 1.38 2002/12/17 18:56:33 swdev Exp $". |
e73c6c0a | 155 | # |