2 # Notifier makefile for CUPS.
4 # Copyright 2007-2012 by Apple Inc.
5 # Copyright 1997-2007 by Easy Software Products, all rights reserved.
7 # These coded instructions, statements, and computer programs are the
8 # property of Apple Inc. and are protected by Federal copyright
9 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 # which should have been included with this file. If this file is
11 # file is missing or damaged, see the license at "http://www.cups.org/".
17 NOTIFIERS
= $(DBUS_NOTIFIER
) mailto rss
18 TARGETS
= $(NOTIFIERS
) testnotify
19 OBJS
= dbus.o mailto.o rss.o testnotify.o
30 # Make library targets...
44 # Clean all object files...
48 $(RM
) $(OBJS
) $(TARGETS
) dbus.h
52 # Install all targets...
55 install: all install-data install-headers install-libs install-exec
59 # Install data files...
63 $(INSTALL_DIR
) -m
775 -g
$(CUPS_GROUP
) $(CACHEDIR
)/rss
71 echo Installing notifiers in
$(SERVERBIN
)/notifier...
72 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/notifier
73 for file in
$(NOTIFIERS
); do \
74 $(INSTALL_BIN
) $$file $(SERVERBIN
)/notifier
; \
76 if
test "x$(SYMROOT)" != "x"; then \
77 $(INSTALL_DIR
) $(SYMROOT
); \
78 for file in
$(NOTIFIERS
); do \
79 cp
$$file $(SYMROOT
); \
80 dsymutil
$(SYMROOT
)/$$file; \
93 # Install libraries...
100 # Uninstall all targets...
104 for file in
$(NOTIFIERS
); do \
105 $(RM
) $(SERVERBIN
)/notifier
/$$file; \
107 -$(RMDIR
) $(SERVERBIN
)/notifier
108 -$(RMDIR
) $(SERVERBIN
)
109 -$(RMDIR
) $(CACHEDIR
)/rss
113 # Update dependencies (without system header dependencies...)
117 $(CC
) -MM
$(ALL_CFLAGS
) $(OBJS
:.o
=.c
) >Dependencies
124 dbus
: dbus.o ..
/cups
/$(LIBCUPS
)
126 $(CC
) $(LDFLAGS
) -o dbus dbus.o
$(DBUS_NOTIFIERLIBS
) $(LIBS
)
133 mailto
: mailto.o ..
/cups
/$(LIBCUPS
)
135 $(CC
) $(LDFLAGS
) -o mailto mailto.o
$(LIBS
)
142 rss
: rss.o ..
/cups
/$(LIBCUPS
)
144 $(CC
) $(LDFLAGS
) -o rss rss.o
$(LIBS
)
151 testnotify
: testnotify.o ..
/cups
/$(LIBCUPS
)
153 $(CC
) $(LDFLAGS
) -o testnotify testnotify.o
$(LIBS
)