]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
75bd9771 | 2 | # "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $" |
ef416fc2 | 3 | # |
4 | # Notifier makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
91c84a35 | 6 | # Copyright 2007-2008 by Apple Inc. |
f7deaa1a | 7 | # Copyright 1997-2007 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 | ||
18 | ||
f7deaa1a | 19 | TARGETS = mailto rss testnotify |
20 | OBJS = mailto.o rss.o testnotify.o | |
ef416fc2 | 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 | ||
ef416fc2 | 37 | # |
38 | # Clean all object files... | |
39 | # | |
40 | ||
41 | clean: | |
42 | $(RM) $(OBJS) $(TARGETS) | |
43 | ||
44 | ||
45 | # | |
46 | # Install all targets... | |
47 | # | |
48 | ||
50fe7201 MS |
49 | install: all install-data install-headers install-libs install-exec |
50 | ||
51 | ||
52 | # | |
53 | # Install data files... | |
54 | # | |
55 | ||
56 | install-data: | |
91c84a35 | 57 | $(INSTALL_DIR) -m 775 $(CACHEDIR)/rss |
f7deaa1a | 58 | -chgrp $(CUPS_GROUP) $(CACHEDIR)/rss |
09a101d6 | 59 | if test "x$(SYMROOT)" != "x"; then \ |
60 | $(INSTALL_DIR) $(SYMROOT); \ | |
749b1e90 | 61 | cp mailto rss $(SYMROOT); \ |
09a101d6 | 62 | fi |
ef416fc2 | 63 | |
64 | ||
50fe7201 MS |
65 | # |
66 | # Install programs... | |
67 | # | |
68 | ||
69 | install-exec: | |
70 | $(INSTALL_DIR) -m 755 $(SERVERBIN)/notifier | |
749b1e90 MS |
71 | $(INSTALL_BIN) mailto $(SERVERBIN)/notifier |
72 | $(INSTALL_BIN) rss $(SERVERBIN)/notifier | |
50fe7201 MS |
73 | |
74 | ||
75 | # | |
76 | # Install headers... | |
77 | # | |
78 | ||
79 | install-headers: | |
80 | ||
81 | ||
82 | # | |
83 | # Install libraries... | |
84 | # | |
85 | ||
86 | install-libs: | |
87 | ||
88 | ||
757d2cad | 89 | # |
90 | # Uninstall all targets... | |
91 | # | |
92 | ||
93 | uninstall: | |
94 | for file in $(TARGETS); do \ | |
95 | $(RM) $(SERVERBIN)/notifier/$$file; \ | |
96 | done | |
97 | -$(RMDIR) $(SERVERBIN)/notifier | |
98 | -$(RMDIR) $(SERVERBIN) | |
f7deaa1a | 99 | -$(RMDIR) $(CACHEDIR)/rss |
757d2cad | 100 | |
101 | ||
ef416fc2 | 102 | # |
103 | # Update dependencies (without system header dependencies...) | |
104 | # | |
105 | ||
106 | depend: | |
107 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
108 | ||
109 | ||
110 | # | |
111 | # mailto | |
112 | # | |
113 | ||
114 | mailto: mailto.o ../cups/$(LIBCUPS) | |
115 | echo Linking $@... | |
116 | $(CC) $(LDFLAGS) -o mailto mailto.o $(LIBS) | |
117 | ||
118 | ||
f7deaa1a | 119 | # |
120 | # rss | |
121 | # | |
122 | ||
123 | rss: rss.o ../cups/$(LIBCUPS) | |
124 | echo Linking $@... | |
125 | $(CC) $(LDFLAGS) -o rss rss.o $(LIBS) | |
126 | ||
127 | ||
ef416fc2 | 128 | # |
129 | # testnotify | |
130 | # | |
131 | ||
132 | testnotify: testnotify.o ../cups/$(LIBCUPS) | |
133 | echo Linking $@... | |
134 | $(CC) $(LDFLAGS) -o testnotify testnotify.o $(LIBS) | |
135 | ||
136 | ||
137 | $(OBJS): ../Makedefs | |
138 | ||
139 | include Dependencies | |
140 | ||
141 | ||
142 | # | |
75bd9771 | 143 | # End of "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $". |
ef416fc2 | 144 | # |