]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
bc44d920 | 2 | # "$Id: Makefile 6649 2007-07-11 21:46:42Z 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 | ||
30 | # | |
31 | # Clean all object files... | |
32 | # | |
33 | ||
34 | clean: | |
35 | $(RM) $(OBJS) $(TARGETS) | |
36 | ||
37 | ||
38 | # | |
39 | # Install all targets... | |
40 | # | |
41 | ||
fa73b229 | 42 | install: all |
bd7854cb | 43 | $(INSTALL_DIR) -m 755 $(SERVERBIN)/notifier |
ef416fc2 | 44 | for file in $(TARGETS); do \ |
45 | $(INSTALL_BIN) $$file $(SERVERBIN)/notifier; \ | |
46 | done | |
91c84a35 | 47 | $(INSTALL_DIR) -m 775 $(CACHEDIR)/rss |
f7deaa1a | 48 | -chgrp $(CUPS_GROUP) $(CACHEDIR)/rss |
09a101d6 | 49 | if test "x$(SYMROOT)" != "x"; then \ |
50 | $(INSTALL_DIR) $(SYMROOT); \ | |
51 | for file in $(TARGETS); do \ | |
52 | cp $$file $(SYMROOT); \ | |
53 | done \ | |
54 | fi | |
ef416fc2 | 55 | |
56 | ||
757d2cad | 57 | # |
58 | # Uninstall all targets... | |
59 | # | |
60 | ||
61 | uninstall: | |
62 | for file in $(TARGETS); do \ | |
63 | $(RM) $(SERVERBIN)/notifier/$$file; \ | |
64 | done | |
65 | -$(RMDIR) $(SERVERBIN)/notifier | |
66 | -$(RMDIR) $(SERVERBIN) | |
f7deaa1a | 67 | -$(RMDIR) $(CACHEDIR)/rss |
757d2cad | 68 | |
69 | ||
ef416fc2 | 70 | # |
71 | # Update dependencies (without system header dependencies...) | |
72 | # | |
73 | ||
74 | depend: | |
75 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
76 | ||
77 | ||
78 | # | |
79 | # mailto | |
80 | # | |
81 | ||
82 | mailto: mailto.o ../cups/$(LIBCUPS) | |
83 | echo Linking $@... | |
84 | $(CC) $(LDFLAGS) -o mailto mailto.o $(LIBS) | |
85 | ||
86 | ||
f7deaa1a | 87 | # |
88 | # rss | |
89 | # | |
90 | ||
91 | rss: rss.o ../cups/$(LIBCUPS) | |
92 | echo Linking $@... | |
93 | $(CC) $(LDFLAGS) -o rss rss.o $(LIBS) | |
94 | ||
95 | ||
ef416fc2 | 96 | # |
97 | # testnotify | |
98 | # | |
99 | ||
100 | testnotify: testnotify.o ../cups/$(LIBCUPS) | |
101 | echo Linking $@... | |
102 | $(CC) $(LDFLAGS) -o testnotify testnotify.o $(LIBS) | |
103 | ||
104 | ||
105 | $(OBJS): ../Makedefs | |
106 | ||
107 | include Dependencies | |
108 | ||
109 | ||
110 | # | |
bc44d920 | 111 | # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $". |
ef416fc2 | 112 | # |