4 # Notifier makefile for CUPS.
6 # Copyright 2007-2012 by Apple Inc.
7 # Copyright 1997-2007 by Easy Software Products, all rights reserved.
9 # These coded instructions, statements, and computer programs are the
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/".
19 NOTIFIERS
= $(DBUS_NOTIFIER
) mailto rss
20 TARGETS
= $(NOTIFIERS
) testnotify
21 OBJS
= dbus.o mailto.o rss.o testnotify.o
32 # Make library targets...
46 # Clean all object files...
50 $(RM
) $(OBJS
) $(TARGETS
) dbus.h
54 # Install all targets...
57 install: all install-data install-headers install-libs install-exec
61 # Install data files...
65 $(INSTALL_DIR
) -m
775 -g
$(CUPS_GROUP
) $(CACHEDIR
)/rss
73 echo Installing notifiers in
$(SERVERBIN
)/notifier...
74 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/notifier
75 for file in
$(NOTIFIERS
); do \
76 $(INSTALL_BIN
) $$file $(SERVERBIN
)/notifier
; \
78 if
test "x$(SYMROOT)" != "x"; then \
79 $(INSTALL_DIR
) $(SYMROOT
); \
80 for file in
$(NOTIFIERS
); do \
81 cp
$$file $(SYMROOT
); \
82 dsymutil
$(SYMROOT
)/$$file; \
95 # Install libraries...
102 # Uninstall all targets...
106 for file in
$(NOTIFIERS
); do \
107 $(RM
) $(SERVERBIN
)/notifier
/$$file; \
109 -$(RMDIR
) $(SERVERBIN
)/notifier
110 -$(RMDIR
) $(SERVERBIN
)
111 -$(RMDIR
) $(CACHEDIR
)/rss
115 # Update dependencies (without system header dependencies...)
119 $(CC
) -MM
$(ALL_CFLAGS
) $(OBJS
:.o
=.c
) >Dependencies
126 dbus
: dbus.o ..
/cups
/$(LIBCUPS
)
128 $(CC
) $(LDFLAGS
) -o dbus dbus.o
$(DBUS_NOTIFIERLIBS
) $(LIBS
)
135 mailto
: mailto.o ..
/cups
/$(LIBCUPS
)
137 $(CC
) $(LDFLAGS
) -o mailto mailto.o
$(LIBS
)
144 rss
: rss.o ..
/cups
/$(LIBCUPS
)
146 $(CC
) $(LDFLAGS
) -o rss rss.o
$(LIBS
)
153 testnotify
: testnotify.o ..
/cups
/$(LIBCUPS
)
155 $(CC
) $(LDFLAGS
) -o testnotify testnotify.o
$(LIBS
)