]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $" | |
3 | # | |
4 | # Port monitor makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
6 | # Copyright 2007 by Apple Inc. | |
7 | # Copyright 2006 by Easy Software Products. | |
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 | # 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 | ||
32 | # | |
33 | # Clean all object files... | |
34 | # | |
35 | ||
36 | clean: | |
37 | $(RM) $(OBJS) $(TARGETS) | |
38 | ||
39 | ||
40 | # | |
41 | # Update dependencies (without system header dependencies...) | |
42 | # | |
43 | ||
44 | depend: | |
45 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
46 | ||
47 | ||
48 | # | |
49 | # Install all targets... | |
50 | # | |
51 | ||
52 | install: all | |
53 | $(INSTALL_DIR) -m 755 $(SERVERBIN)/monitor | |
54 | for file in $(TARGETS); do \ | |
55 | $(INSTALL_BIN) $$file $(SERVERBIN)/monitor; \ | |
56 | done | |
57 | if test "x$(SYMROOT)" != "x"; then \ | |
58 | $(INSTALL_DIR) $(SYMROOT); \ | |
59 | for file in $(TARGETS); do \ | |
60 | cp $$file $(SYMROOT); \ | |
61 | done \ | |
62 | fi | |
63 | ||
64 | ||
65 | # | |
66 | # Uninstall all targets... | |
67 | # | |
68 | ||
69 | uninstall: | |
70 | for file in $(TARGETS); do \ | |
71 | $(RM) $(SERVERBIN)/monitor/$$file; \ | |
72 | done | |
73 | -$(RMDIR) $(SERVERBIN)/monitor | |
74 | -$(RMDIR) $(SERVERBIN) | |
75 | ||
76 | ||
77 | # | |
78 | # bcp | |
79 | # | |
80 | ||
81 | bcp: bcp.o ../cups/$(LIBCUPS) | |
82 | echo Linking $@... | |
83 | $(CC) $(LDFLAGS) -o $@ bcp.o $(LIBS) | |
84 | ||
85 | ||
86 | # | |
87 | # tbcp | |
88 | # | |
89 | ||
90 | tbcp: tbcp.o ../cups/$(LIBCUPS) | |
91 | echo Linking $@... | |
92 | $(CC) $(LDFLAGS) -o $@ tbcp.o $(LIBS) | |
93 | ||
94 | ||
95 | # | |
96 | # Dependencies... | |
97 | # | |
98 | ||
99 | include Dependencies | |
100 | ||
101 | ||
102 | # | |
103 | # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $". | |
104 | # |