]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
f7deaa1a | 2 | # "$Id: Makefile 6304 2007-02-22 22:06:23Z mike $" |
ef416fc2 | 3 | # |
4 | # Notifier makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
f7deaa1a | 6 | # Copyright 1997-2007 by Easy Software Products, all rights reserved. |
ef416fc2 | 7 | # |
8 | # These coded instructions, statements, and computer programs are the | |
9 | # property of Easy Software Products and are protected by Federal | |
10 | # copyright law. Distribution and use rights are outlined in the file | |
11 | # "LICENSE.txt" which should have been included with this file. If this | |
12 | # file is missing or damaged please contact Easy Software Products | |
13 | # at: | |
14 | # | |
15 | # Attn: CUPS Licensing Information | |
16 | # Easy Software Products | |
17 | # 44141 Airport View Drive, Suite 204 | |
18 | # Hollywood, Maryland 20636 USA | |
19 | # | |
20 | # Voice: (301) 373-9600 | |
21 | # EMail: cups-info@cups.org | |
22 | # WWW: http://www.cups.org | |
23 | # | |
24 | ||
25 | include ../Makedefs | |
26 | ||
27 | ||
f7deaa1a | 28 | TARGETS = mailto rss testnotify |
29 | OBJS = mailto.o rss.o testnotify.o | |
ef416fc2 | 30 | |
31 | ||
32 | # | |
33 | # Make all targets... | |
34 | # | |
35 | ||
36 | all: $(TARGETS) | |
37 | ||
38 | ||
39 | # | |
40 | # Clean all object files... | |
41 | # | |
42 | ||
43 | clean: | |
44 | $(RM) $(OBJS) $(TARGETS) | |
45 | ||
46 | ||
47 | # | |
48 | # Install all targets... | |
49 | # | |
50 | ||
fa73b229 | 51 | install: all |
bd7854cb | 52 | $(INSTALL_DIR) -m 755 $(SERVERBIN)/notifier |
ef416fc2 | 53 | for file in $(TARGETS); do \ |
54 | $(INSTALL_BIN) $$file $(SERVERBIN)/notifier; \ | |
55 | done | |
f7deaa1a | 56 | $(INSTALL_DIR) -m 755 $(CACHEDIR)/rss |
57 | -chgrp $(CUPS_GROUP) $(CACHEDIR)/rss | |
ef416fc2 | 58 | |
59 | ||
757d2cad | 60 | # |
61 | # Uninstall all targets... | |
62 | # | |
63 | ||
64 | uninstall: | |
65 | for file in $(TARGETS); do \ | |
66 | $(RM) $(SERVERBIN)/notifier/$$file; \ | |
67 | done | |
68 | -$(RMDIR) $(SERVERBIN)/notifier | |
69 | -$(RMDIR) $(SERVERBIN) | |
f7deaa1a | 70 | -$(RMDIR) $(CACHEDIR)/rss |
757d2cad | 71 | |
72 | ||
ef416fc2 | 73 | # |
74 | # Update dependencies (without system header dependencies...) | |
75 | # | |
76 | ||
77 | depend: | |
78 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
79 | ||
80 | ||
81 | # | |
82 | # mailto | |
83 | # | |
84 | ||
85 | mailto: mailto.o ../cups/$(LIBCUPS) | |
86 | echo Linking $@... | |
87 | $(CC) $(LDFLAGS) -o mailto mailto.o $(LIBS) | |
88 | ||
89 | ||
f7deaa1a | 90 | # |
91 | # rss | |
92 | # | |
93 | ||
94 | rss: rss.o ../cups/$(LIBCUPS) | |
95 | echo Linking $@... | |
96 | $(CC) $(LDFLAGS) -o rss rss.o $(LIBS) | |
97 | ||
98 | ||
ef416fc2 | 99 | # |
100 | # testnotify | |
101 | # | |
102 | ||
103 | testnotify: testnotify.o ../cups/$(LIBCUPS) | |
104 | echo Linking $@... | |
105 | $(CC) $(LDFLAGS) -o testnotify testnotify.o $(LIBS) | |
106 | ||
107 | ||
108 | $(OBJS): ../Makedefs | |
109 | ||
110 | include Dependencies | |
111 | ||
112 | ||
113 | # | |
f7deaa1a | 114 | # End of "$Id: Makefile 6304 2007-02-22 22:06:23Z mike $". |
ef416fc2 | 115 | # |