]>
Commit | Line | Data |
---|---|---|
bd7854cb | 1 | # |
75bd9771 | 2 | # "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $" |
bd7854cb | 3 | # |
4 | # Port monitor makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
50fe7201 | 6 | # Copyright 2007-2008 by Apple Inc. |
bd7854cb | 7 | # Copyright 2006 by Easy Software Products. |
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/". | |
bd7854cb | 14 | # |
15 | # This file is subject to the Apple OS-Developed Software exception. | |
16 | # | |
17 | ||
18 | include ../Makedefs | |
19 | ||
20 | TARGETS = bcp tbcp | |
21 | ||
22 | OBJS = bcp.o tbcp.o | |
23 | ||
24 | ||
25 | # | |
26 | # Make all targets... | |
27 | # | |
28 | ||
29 | all: $(TARGETS) | |
30 | ||
31 | ||
c9fc04c6 MS |
32 | # |
33 | # Make library targets... | |
34 | # | |
35 | ||
36 | libs: | |
37 | ||
38 | ||
5f64df29 MS |
39 | # |
40 | # Make unit tests... | |
41 | # | |
42 | ||
43 | unittests: | |
44 | ||
45 | ||
bd7854cb | 46 | # |
47 | # Clean all object files... | |
48 | # | |
49 | ||
50 | clean: | |
51 | $(RM) $(OBJS) $(TARGETS) | |
52 | ||
53 | ||
54 | # | |
55 | # Update dependencies (without system header dependencies...) | |
56 | # | |
57 | ||
58 | depend: | |
59 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
60 | ||
61 | ||
62 | # | |
63 | # Install all targets... | |
64 | # | |
65 | ||
50fe7201 MS |
66 | install: all install-data install-headers install-libs install-exec |
67 | ||
68 | ||
69 | # | |
70 | # Install data files... | |
71 | # | |
72 | ||
73 | install-data: | |
74 | ||
75 | ||
76 | # | |
77 | # Install programs... | |
78 | # | |
79 | ||
80 | install-exec: | |
bd7854cb | 81 | $(INSTALL_DIR) -m 755 $(SERVERBIN)/monitor |
82 | for file in $(TARGETS); do \ | |
83 | $(INSTALL_BIN) $$file $(SERVERBIN)/monitor; \ | |
84 | done | |
09a101d6 | 85 | if test "x$(SYMROOT)" != "x"; then \ |
86 | $(INSTALL_DIR) $(SYMROOT); \ | |
87 | for file in $(TARGETS); do \ | |
88 | cp $$file $(SYMROOT); \ | |
89 | done \ | |
90 | fi | |
bd7854cb | 91 | |
92 | ||
50fe7201 MS |
93 | # |
94 | # Install headers... | |
95 | # | |
96 | ||
97 | install-headers: | |
98 | ||
99 | ||
100 | # | |
101 | # Install libraries... | |
102 | # | |
103 | ||
104 | install-libs: | |
105 | ||
106 | ||
757d2cad | 107 | # |
108 | # Uninstall all targets... | |
109 | # | |
110 | ||
111 | uninstall: | |
112 | for file in $(TARGETS); do \ | |
113 | $(RM) $(SERVERBIN)/monitor/$$file; \ | |
114 | done | |
115 | -$(RMDIR) $(SERVERBIN)/monitor | |
116 | -$(RMDIR) $(SERVERBIN) | |
117 | ||
118 | ||
bd7854cb | 119 | # |
120 | # bcp | |
121 | # | |
122 | ||
123 | bcp: bcp.o ../cups/$(LIBCUPS) | |
124 | echo Linking $@... | |
125 | $(CC) $(LDFLAGS) -o $@ bcp.o $(LIBS) | |
126 | ||
127 | ||
128 | # | |
129 | # tbcp | |
130 | # | |
131 | ||
132 | tbcp: tbcp.o ../cups/$(LIBCUPS) | |
133 | echo Linking $@... | |
134 | $(CC) $(LDFLAGS) -o $@ tbcp.o $(LIBS) | |
135 | ||
136 | ||
137 | # | |
138 | # Dependencies... | |
139 | # | |
140 | ||
141 | include Dependencies | |
142 | ||
143 | ||
144 | # | |
75bd9771 | 145 | # End of "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $". |
bd7854cb | 146 | # |