]> git.ipfire.org Git - thirdparty/cups.git/blob - backend/Makefile
6152f31f481c2a7a8ce5f70284f94ba928d99d86
[thirdparty/cups.git] / backend / Makefile
1 #
2 # "$Id: Makefile,v 1.25.2.1 2001/04/02 19:51:42 mike Exp $"
3 #
4 # Backend makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1997-2001 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-3111 USA
19 #
20 # Voice: (301) 373-9603
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
23 #
24
25 include ../Makedefs
26
27 BACKENDS = ipp lpd parallel serial socket usb
28 TARGETS = betest $(BACKENDS)
29 OBJS = betest.o ipp.o lpd.o parallel.o serial.o socket.o usb.o
30
31
32 #
33 # Make all targets...
34 #
35
36 all: $(TARGETS)
37
38
39 #
40 # Clean all object files...
41 #
42
43 clean:
44 $(RM) $(OBJS) $(TARGETS) http
45
46
47 #
48 # Install all targets...
49 #
50
51 install:
52 -$(MKDIR) $(SERVERBIN)/backend
53 $(CHMOD) ugo+rx $(SERVERBIN)
54 $(CHMOD) ugo+rx $(SERVERBIN)/backend
55 $(INSTALL_BIN) $(BACKENDS) $(SERVERBIN)/backend
56 $(RM) $(SERVERBIN)/backend/http
57 $(LN) ipp $(SERVERBIN)/backend/http
58
59
60 #
61 # betest
62 #
63
64 betest: betest.o ../cups/$(LIBCUPS)
65 echo Linking $@...
66 $(CC) $(LDFLAGS) -o betest betest.o $(LIBS)
67
68 betest.o: ../cups/string.h
69
70
71 #
72 # ipp
73 #
74
75 ipp: ipp.o ../cups/$(LIBCUPS)
76 echo Linking $@...
77 $(CC) $(LDFLAGS) -o ipp ipp.o $(LIBS)
78 $(RM) http
79 $(LN) ipp http
80
81 ipp.o: ../cups/cups.h
82
83
84 #
85 # lpd
86 #
87
88 lpd: lpd.o ../cups/$(LIBCUPS)
89 echo Linking $@...
90 $(CC) $(LDFLAGS) -o lpd lpd.o $(LIBS)
91
92 lpd.o: ../cups/cups.h
93
94
95 #
96 # parallel
97 #
98
99 parallel: parallel.o ../cups/$(LIBCUPS)
100 echo Linking $@...
101 $(CC) $(LDFLAGS) -o parallel parallel.o $(LIBS)
102
103 parallel.o: ../cups/cups.h
104
105
106 #
107 # serial
108 #
109
110 serial: serial.o ../cups/$(LIBCUPS)
111 echo Linking $@...
112 $(CC) $(LDFLAGS) -o serial serial.o $(LIBS)
113
114 serial.o: ../cups/cups.h
115
116
117 #
118 # socket
119 #
120
121 socket: socket.o ../cups/$(LIBCUPS)
122 echo Linking $@...
123 $(CC) $(LDFLAGS) -o socket socket.o $(LIBS)
124
125 socket.o: ../cups/cups.h
126
127
128 #
129 # usb
130 #
131
132 usb: usb.o ../cups/$(LIBCUPS)
133 echo Linking $@...
134 $(CC) $(LDFLAGS) -o usb usb.o $(LIBS)
135
136 usb.o: ../cups/cups.h
137
138
139 $(OBJS): ../config.h ../Makedefs
140
141 #
142 # End of "$Id: Makefile,v 1.25.2.1 2001/04/02 19:51:42 mike Exp $".
143 #