2 # Notifier makefile for CUPS.
4 # Copyright 2007-2019 by Apple Inc.
5 # Copyright 1997-2007 by Easy Software Products, all rights reserved.
7 # Licensed under Apache License v2.0. See the file "LICENSE" for more information.
13 NOTIFIERS
= $(DBUS_NOTIFIER
) mailto rss
14 TARGETS
= $(NOTIFIERS
) testnotify
15 OBJS
= dbus.o mailto.o rss.o testnotify.o
26 # Make library targets...
40 # Clean all object files...
44 $(RM
) $(OBJS
) $(TARGETS
) dbus.h
48 # Install all targets...
51 install: all install-data install-headers install-libs install-exec
55 # Install data files...
59 $(INSTALL_DIR
) -m
775 -g
$(CUPS_GROUP
) $(CACHEDIR
)/rss
67 echo Installing notifiers in
$(SERVERBIN
)/notifier...
68 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/notifier
69 for file in
$(NOTIFIERS
); do \
70 $(INSTALL_BIN
) $$file $(SERVERBIN
)/notifier
; \
72 if
test "x$(SYMROOT)" != "x"; then \
73 $(INSTALL_DIR
) $(SYMROOT
); \
74 for file in
$(NOTIFIERS
); do \
75 cp
$$file $(SYMROOT
); \
76 dsymutil
$(SYMROOT
)/$$file; \
89 # Install libraries...
96 # Uninstall all targets...
100 for file in
$(NOTIFIERS
); do \
101 $(RM
) $(SERVERBIN
)/notifier
/$$file; \
103 -$(RMDIR
) $(SERVERBIN
)/notifier
104 -$(RMDIR
) $(SERVERBIN
)
105 -$(RMDIR
) $(CACHEDIR
)/rss
109 # Update dependencies (without system header dependencies...)
113 $(CC
) -MM
$(ALL_CFLAGS
) $(OBJS
:.o
=.c
) >Dependencies
120 dbus
: dbus.o ..
/cups
/$(LIBCUPS
)
122 $(LD_CC
) $(ALL_LDFLAGS
) -o dbus dbus.o
$(DBUS_NOTIFIERLIBS
) $(LINKCUPS
)
123 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
130 mailto
: mailto.o ..
/cups
/$(LIBCUPS
)
132 $(LD_CC
) $(ALL_LDFLAGS
) -o mailto mailto.o
$(LINKCUPS
)
133 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
140 rss
: rss.o ..
/cups
/$(LIBCUPS
)
142 $(LD_CC
) $(ALL_LDFLAGS
) -o rss rss.o
$(LINKCUPS
)
143 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
150 testnotify
: testnotify.o ..
/cups
/$(LIBCUPS
)
152 $(LD_CC
) $(ALL_LDFLAGS
) -o testnotify testnotify.o
$(LINKCUPS
)
153 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@