]>
Commit | Line | Data |
---|---|---|
bd7854cb | 1 | # |
503b54c9 | 2 | # Port monitor makefile for CUPS. |
bd7854cb | 3 | # |
a621d151 | 4 | # Copyright 2007-2017 by Apple Inc. |
503b54c9 | 5 | # Copyright 2006 by Easy Software Products. |
bd7854cb | 6 | # |
503b54c9 MS |
7 | # These coded instructions, statements, and computer programs are the |
8 | # property of Apple Inc. and are protected by Federal copyright | |
9 | # law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
10 | # which should have been included with this file. If this file is | |
57b7b66b | 11 | # missing or damaged, see the license at "http://www.cups.org/". |
bd7854cb | 12 | # |
503b54c9 | 13 | # This file is subject to the Apple OS-Developed Software exception. |
bd7854cb | 14 | # |
15 | ||
16 | include ../Makedefs | |
17 | ||
18 | TARGETS = bcp tbcp | |
19 | ||
20 | OBJS = bcp.o tbcp.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 | ||
bd7854cb | 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: | |
12f89d24 | 57 | $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies |
bd7854cb | 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: | |
bd7854cb | 79 | $(INSTALL_DIR) -m 755 $(SERVERBIN)/monitor |
80 | for file in $(TARGETS); do \ | |
81 | $(INSTALL_BIN) $$file $(SERVERBIN)/monitor; \ | |
82 | done | |
09a101d6 | 83 | if test "x$(SYMROOT)" != "x"; then \ |
84 | $(INSTALL_DIR) $(SYMROOT); \ | |
85 | for file in $(TARGETS); do \ | |
86 | cp $$file $(SYMROOT); \ | |
cb7f98ee | 87 | dsymutil $(SYMROOT)/$$file; \ |
09a101d6 | 88 | done \ |
89 | fi | |
bd7854cb | 90 | |
91 | ||
50fe7201 MS |
92 | # |
93 | # Install headers... | |
94 | # | |
95 | ||
96 | install-headers: | |
97 | ||
98 | ||
99 | # | |
100 | # Install libraries... | |
101 | # | |
102 | ||
103 | install-libs: | |
104 | ||
105 | ||
757d2cad | 106 | # |
107 | # Uninstall all targets... | |
108 | # | |
109 | ||
110 | uninstall: | |
111 | for file in $(TARGETS); do \ | |
112 | $(RM) $(SERVERBIN)/monitor/$$file; \ | |
113 | done | |
114 | -$(RMDIR) $(SERVERBIN)/monitor | |
115 | -$(RMDIR) $(SERVERBIN) | |
116 | ||
117 | ||
bd7854cb | 118 | # |
119 | # bcp | |
120 | # | |
121 | ||
122 | bcp: bcp.o ../cups/$(LIBCUPS) | |
123 | echo Linking $@... | |
a621d151 | 124 | $(LD_CC) $(LDFLAGS) -o $@ bcp.o $(LIBS) |
1c37b4f8 | 125 | $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ |
bd7854cb | 126 | |
127 | ||
128 | # | |
129 | # tbcp | |
130 | # | |
131 | ||
132 | tbcp: tbcp.o ../cups/$(LIBCUPS) | |
133 | echo Linking $@... | |
a621d151 | 134 | $(LD_CC) $(LDFLAGS) -o $@ tbcp.o $(LIBS) |
1c37b4f8 | 135 | $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ |
bd7854cb | 136 | |
137 | ||
138 | # | |
139 | # Dependencies... | |
140 | # | |
321d8d57 | 141 | |
bd7854cb | 142 | include Dependencies |