]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $" | |
3 | # | |
4 | # Berkeley commands makefile for CUPS. | |
5 | # | |
6 | # Copyright 2007-2012 by Apple Inc. | |
7 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. | |
8 | # | |
9 | # These coded instructions, statements, and computer programs are the | |
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/". | |
14 | # | |
15 | ||
16 | include ../Makedefs | |
17 | ||
18 | ||
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 | ||
30 | # | |
31 | # Make library targets... | |
32 | # | |
33 | ||
34 | libs: | |
35 | ||
36 | ||
37 | # | |
38 | # Make unit tests... | |
39 | # | |
40 | ||
41 | unittests: | |
42 | ||
43 | ||
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 | $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies | |
58 | ||
59 | ||
60 | # | |
61 | # Install all targets... | |
62 | # | |
63 | ||
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: | |
79 | echo Installing Berkeley user printing commands in $(BINDIR)... | |
80 | $(INSTALL_DIR) -m 755 $(BINDIR) | |
81 | $(INSTALL_BIN) lpq $(BINDIR) | |
82 | $(INSTALL_BIN) lpr $(BINDIR) | |
83 | $(INSTALL_BIN) lprm $(BINDIR) | |
84 | echo Installing Berkeley admin printing commands in $(BINDIR)... | |
85 | $(INSTALL_DIR) -m 755 $(SBINDIR) | |
86 | $(INSTALL_BIN) lpc $(SBINDIR) | |
87 | if test "x$(SYMROOT)" != "x"; then \ | |
88 | $(INSTALL_DIR) $(SYMROOT); \ | |
89 | for file in $(TARGETS); do \ | |
90 | cp $$file $(SYMROOT); \ | |
91 | dsymutil $(SYMROOT)/$$file; \ | |
92 | done \ | |
93 | fi | |
94 | ||
95 | ||
96 | # | |
97 | # Install headers... | |
98 | # | |
99 | ||
100 | install-headers: | |
101 | ||
102 | ||
103 | # | |
104 | # Install libraries... | |
105 | # | |
106 | ||
107 | install-libs: | |
108 | ||
109 | ||
110 | # | |
111 | # Uninstall all targets... | |
112 | # | |
113 | ||
114 | uninstall: | |
115 | $(RM) $(BINDIR)/lpq | |
116 | $(RM) $(BINDIR)/lpr | |
117 | $(RM) $(BINDIR)/lprm | |
118 | $(RM) $(SBINDIR)/lpc | |
119 | -$(RMDIR) $(SBINDIR) | |
120 | -$(RMDIR) $(BINDIR) | |
121 | ||
122 | ||
123 | # | |
124 | # lpc | |
125 | # | |
126 | ||
127 | lpc: lpc.o ../cups/$(LIBCUPS) | |
128 | echo Linking $@... | |
129 | $(CC) $(LDFLAGS) -o lpc lpc.o $(LIBS) | |
130 | ||
131 | ||
132 | # | |
133 | # lpq | |
134 | # | |
135 | ||
136 | lpq: lpq.o ../cups/$(LIBCUPS) | |
137 | echo Linking $@... | |
138 | $(CC) $(LDFLAGS) -o lpq lpq.o $(LIBS) | |
139 | ||
140 | ||
141 | # | |
142 | # lpr | |
143 | # | |
144 | ||
145 | lpr: lpr.o ../cups/$(LIBCUPS) | |
146 | echo Linking $@... | |
147 | $(CC) $(LDFLAGS) -o lpr lpr.o $(LIBS) | |
148 | ||
149 | ||
150 | # | |
151 | # lprm | |
152 | # | |
153 | ||
154 | lprm: lprm.o ../cups/$(LIBCUPS) | |
155 | echo Linking $@... | |
156 | $(CC) $(LDFLAGS) -o lprm lprm.o $(LIBS) | |
157 | ||
158 | ||
159 | # | |
160 | # Dependencies... | |
161 | # | |
162 | ||
163 | include Dependencies | |
164 | ||
165 | ||
166 | # | |
167 | # End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $". | |
168 | # |