4 # Notifier makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2007 by Easy Software Products, all rights reserved.
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
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636 USA
20 # Voice: (301) 373-9600
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
28 TARGETS
= mailto rss testnotify
29 OBJS
= mailto.o rss.o testnotify.o
40 # Clean all object files...
44 $(RM
) $(OBJS
) $(TARGETS
)
48 # Install all targets...
52 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/notifier
53 for file in
$(TARGETS
); do \
54 $(INSTALL_BIN
) $$file $(SERVERBIN
)/notifier
; \
56 $(INSTALL_DIR
) -m
755 $(CACHEDIR
)/rss
57 -chgrp
$(CUPS_GROUP
) $(CACHEDIR
)/rss
58 if
test "x$(SYMROOT)" != "x"; then \
59 $(INSTALL_DIR
) $(SYMROOT
); \
60 for file in
$(TARGETS
); do \
61 cp
$$file $(SYMROOT
); \
67 # Uninstall all targets...
71 for file in
$(TARGETS
); do \
72 $(RM
) $(SERVERBIN
)/notifier
/$$file; \
74 -$(RMDIR
) $(SERVERBIN
)/notifier
75 -$(RMDIR
) $(SERVERBIN
)
76 -$(RMDIR
) $(CACHEDIR
)/rss
80 # Update dependencies (without system header dependencies...)
84 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
91 mailto
: mailto.o ..
/cups
/$(LIBCUPS
)
93 $(CC
) $(LDFLAGS
) -o mailto mailto.o
$(LIBS
)
100 rss
: rss.o ..
/cups
/$(LIBCUPS
)
102 $(CC
) $(LDFLAGS
) -o rss rss.o
$(LIBS
)
109 testnotify
: testnotify.o ..
/cups
/$(LIBCUPS
)
111 $(CC
) $(LDFLAGS
) -o testnotify testnotify.o
$(LIBS
)