]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
f2d18633 | 2 | # "$Id$" |
ef416fc2 | 3 | # |
321d8d57 | 4 | # Notifier makefile for CUPS. |
ef416fc2 | 5 | # |
12f89d24 | 6 | # Copyright 2007-2012 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 | ||
c5571a1d MS |
19 | NOTIFIERS = $(DBUS_NOTIFIER) mailto rss |
20 | TARGETS = $(NOTIFIERS) testnotify | |
21 | OBJS = dbus.o mailto.o rss.o testnotify.o | |
ef416fc2 | 22 | |
23 | ||
24 | # | |
25 | # Make all targets... | |
26 | # | |
27 | ||
28 | all: $(TARGETS) | |
29 | ||
30 | ||
c9fc04c6 MS |
31 | # |
32 | # Make library targets... | |
33 | # | |
34 | ||
35 | libs: | |
36 | ||
37 | ||
5f64df29 MS |
38 | # |
39 | # Make unit tests... | |
40 | # | |
41 | ||
42 | unittests: | |
43 | ||
44 | ||
ef416fc2 | 45 | # |
46 | # Clean all object files... | |
47 | # | |
48 | ||
49 | clean: | |
c5571a1d | 50 | $(RM) $(OBJS) $(TARGETS) dbus.h |
ef416fc2 | 51 | |
52 | ||
53 | # | |
54 | # Install all targets... | |
55 | # | |
56 | ||
50fe7201 MS |
57 | install: all install-data install-headers install-libs install-exec |
58 | ||
59 | ||
60 | # | |
61 | # Install data files... | |
62 | # | |
63 | ||
64 | install-data: | |
e07d4801 | 65 | $(INSTALL_DIR) -m 775 -g $(CUPS_GROUP) $(CACHEDIR)/rss |
ef416fc2 | 66 | |
67 | ||
50fe7201 MS |
68 | # |
69 | # Install programs... | |
70 | # | |
71 | ||
72 | install-exec: | |
c5571a1d | 73 | echo Installing notifiers in $(SERVERBIN)/notifier... |
50fe7201 | 74 | $(INSTALL_DIR) -m 755 $(SERVERBIN)/notifier |
c5571a1d MS |
75 | for file in $(NOTIFIERS); do \ |
76 | $(INSTALL_BIN) $$file $(SERVERBIN)/notifier; \ | |
77 | done | |
49d87452 MS |
78 | if test "x$(SYMROOT)" != "x"; then \ |
79 | $(INSTALL_DIR) $(SYMROOT); \ | |
c1420c87 MS |
80 | for file in $(NOTIFIERS); do \ |
81 | cp $$file $(SYMROOT); \ | |
82 | dsymutil $(SYMROOT)/$$file; \ | |
83 | done \ | |
49d87452 | 84 | fi |
50fe7201 MS |
85 | |
86 | ||
87 | # | |
88 | # Install headers... | |
89 | # | |
90 | ||
91 | install-headers: | |
92 | ||
93 | ||
94 | # | |
95 | # Install libraries... | |
96 | # | |
97 | ||
98 | install-libs: | |
99 | ||
100 | ||
757d2cad | 101 | # |
102 | # Uninstall all targets... | |
103 | # | |
104 | ||
105 | uninstall: | |
c5571a1d | 106 | for file in $(NOTIFIERS); do \ |
757d2cad | 107 | $(RM) $(SERVERBIN)/notifier/$$file; \ |
108 | done | |
109 | -$(RMDIR) $(SERVERBIN)/notifier | |
110 | -$(RMDIR) $(SERVERBIN) | |
f7deaa1a | 111 | -$(RMDIR) $(CACHEDIR)/rss |
757d2cad | 112 | |
113 | ||
ef416fc2 | 114 | # |
115 | # Update dependencies (without system header dependencies...) | |
116 | # | |
117 | ||
118 | depend: | |
12f89d24 | 119 | $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies |
ef416fc2 | 120 | |
121 | ||
c5571a1d MS |
122 | # |
123 | # dbus | |
124 | # | |
125 | ||
126 | dbus: dbus.o ../cups/$(LIBCUPS) | |
127 | echo Linking $@... | |
128 | $(CC) $(LDFLAGS) -o dbus dbus.o $(DBUS_NOTIFIERLIBS) $(LIBS) | |
129 | ||
c5571a1d | 130 | |
ef416fc2 | 131 | # |
132 | # mailto | |
133 | # | |
134 | ||
135 | mailto: mailto.o ../cups/$(LIBCUPS) | |
136 | echo Linking $@... | |
137 | $(CC) $(LDFLAGS) -o mailto mailto.o $(LIBS) | |
138 | ||
139 | ||
f7deaa1a | 140 | # |
141 | # rss | |
142 | # | |
143 | ||
144 | rss: rss.o ../cups/$(LIBCUPS) | |
145 | echo Linking $@... | |
146 | $(CC) $(LDFLAGS) -o rss rss.o $(LIBS) | |
147 | ||
148 | ||
ef416fc2 | 149 | # |
150 | # testnotify | |
151 | # | |
152 | ||
153 | testnotify: testnotify.o ../cups/$(LIBCUPS) | |
154 | echo Linking $@... | |
155 | $(CC) $(LDFLAGS) -o testnotify testnotify.o $(LIBS) | |
156 | ||
157 | ||
158 | $(OBJS): ../Makedefs | |
159 | ||
160 | include Dependencies | |
161 | ||
162 | ||
163 | # | |
f2d18633 | 164 | # End of "$Id$". |
ef416fc2 | 165 | # |