]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
b19ccc9e | 2 | # "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $" |
ef416fc2 | 3 | # |
321d8d57 | 4 | # Berkeley commands makefile for CUPS. |
ef416fc2 | 5 | # |
321d8d57 | 6 | # Copyright 2007-2011 by Apple Inc. |
bd7854cb | 7 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. |
ef416fc2 | 8 | # |
9 | # These coded instructions, statements, and computer programs are the | |
bc44d920 | 10 | # property of Apple Inc. and are protected by Federal copyright |
11 | # law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | # which should have been included with this file. If this file is | |
13 | # file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 14 | # |
15 | ||
16 | include ../Makedefs | |
17 | ||
5f64df29 | 18 | |
ef416fc2 | 19 | TARGETS = lpc lpq lpr lprm |
20 | OBJS = lpc.o lpq.o lpr.o lprm.o | |
21 | ||
22 | ||
23 | # | |
24 | # Make all targets... | |
25 | # | |
26 | ||
27 | all: $(TARGETS) | |
28 | ||
29 | ||
c9fc04c6 MS |
30 | # |
31 | # Make library targets... | |
32 | # | |
33 | ||
34 | libs: | |
35 | ||
36 | ||
5f64df29 MS |
37 | # |
38 | # Make unit tests... | |
39 | # | |
40 | ||
41 | unittests: | |
42 | ||
43 | ||
ef416fc2 | 44 | # |
45 | # Clean all object files... | |
46 | # | |
47 | ||
48 | clean: | |
49 | $(RM) $(OBJS) $(TARGETS) | |
50 | ||
51 | ||
52 | # | |
53 | # Update dependencies (without system header dependencies...) | |
54 | # | |
55 | ||
56 | depend: | |
57 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
58 | ||
59 | ||
60 | # | |
61 | # Install all targets... | |
62 | # | |
63 | ||
50fe7201 MS |
64 | install: all install-data install-headers install-libs install-exec |
65 | ||
66 | ||
67 | # | |
68 | # Install data files... | |
69 | # | |
70 | ||
71 | install-data: | |
72 | ||
73 | ||
74 | # | |
75 | # Install programs... | |
76 | # | |
77 | ||
78 | install-exec: | |
e07d4801 | 79 | echo Installing Berkeley user printing commands in $(BINDIR)... |
bd7854cb | 80 | $(INSTALL_DIR) -m 755 $(BINDIR) |
ef416fc2 | 81 | $(INSTALL_BIN) lpq $(BINDIR) |
82 | $(INSTALL_BIN) lpr $(BINDIR) | |
83 | $(INSTALL_BIN) lprm $(BINDIR) | |
e07d4801 | 84 | echo Installing Berkeley admin printing commands in $(BINDIR)... |
bd7854cb | 85 | $(INSTALL_DIR) -m 755 $(SBINDIR) |
ef416fc2 | 86 | $(INSTALL_BIN) lpc $(SBINDIR) |
09a101d6 | 87 | if test "x$(SYMROOT)" != "x"; then \ |
88 | $(INSTALL_DIR) $(SYMROOT); \ | |
89 | for file in $(TARGETS); do \ | |
90 | cp $$file $(SYMROOT); \ | |
91 | done \ | |
92 | fi | |
ef416fc2 | 93 | |
94 | ||
50fe7201 MS |
95 | # |
96 | # Install headers... | |
97 | # | |
98 | ||
99 | install-headers: | |
100 | ||
101 | ||
102 | # | |
103 | # Install libraries... | |
104 | # | |
105 | ||
106 | install-libs: | |
107 | ||
108 | ||
757d2cad | 109 | # |
110 | # Uninstall all targets... | |
111 | # | |
112 | ||
113 | uninstall: | |
114 | $(RM) $(BINDIR)/lpq | |
115 | $(RM) $(BINDIR)/lpr | |
116 | $(RM) $(BINDIR)/lprm | |
117 | $(RM) $(SBINDIR)/lpc | |
118 | -$(RMDIR) $(SBINDIR) | |
119 | -$(RMDIR) $(BINDIR) | |
120 | ||
121 | ||
ef416fc2 | 122 | # |
123 | # lpc | |
124 | # | |
125 | ||
126 | lpc: lpc.o ../cups/$(LIBCUPS) | |
127 | echo Linking $@... | |
128 | $(CC) $(LDFLAGS) -o lpc lpc.o $(LIBS) | |
129 | ||
130 | ||
131 | # | |
132 | # lpq | |
133 | # | |
134 | ||
135 | lpq: lpq.o ../cups/$(LIBCUPS) | |
136 | echo Linking $@... | |
137 | $(CC) $(LDFLAGS) -o lpq lpq.o $(LIBS) | |
138 | ||
139 | ||
140 | # | |
141 | # lpr | |
142 | # | |
143 | ||
144 | lpr: lpr.o ../cups/$(LIBCUPS) | |
145 | echo Linking $@... | |
146 | $(CC) $(LDFLAGS) -o lpr lpr.o $(LIBS) | |
147 | ||
148 | ||
149 | # | |
150 | # lprm | |
151 | # | |
152 | ||
153 | lprm: lprm.o ../cups/$(LIBCUPS) | |
154 | echo Linking $@... | |
155 | $(CC) $(LDFLAGS) -o lprm lprm.o $(LIBS) | |
156 | ||
157 | ||
158 | # | |
159 | # Dependencies... | |
160 | # | |
161 | ||
162 | include Dependencies | |
163 | ||
164 | ||
165 | # | |
b19ccc9e | 166 | # End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $". |
ef416fc2 | 167 | # |