]> git.ipfire.org Git - thirdparty/cups.git/blame - notifier/Makefile
Fix source file header text duplication text duplication.
[thirdparty/cups.git] / notifier / Makefile
CommitLineData
ef416fc2 1#
503b54c9 2# Notifier makefile for CUPS.
ef416fc2 3#
503b54c9
MS
4# Copyright 2007-2012 by Apple Inc.
5# Copyright 1997-2007 by Easy Software Products, all rights reserved.
ef416fc2 6#
503b54c9
MS
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
57b7b66b 11# missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 12#
13
14include ../Makedefs
15
16
c5571a1d
MS
17NOTIFIERS = $(DBUS_NOTIFIER) mailto rss
18TARGETS = $(NOTIFIERS) testnotify
19OBJS = dbus.o mailto.o rss.o testnotify.o
ef416fc2 20
21
22#
23# Make all targets...
24#
25
26all: $(TARGETS)
27
28
c9fc04c6
MS
29#
30# Make library targets...
31#
32
33libs:
34
35
5f64df29
MS
36#
37# Make unit tests...
38#
39
40unittests:
41
42
ef416fc2 43#
44# Clean all object files...
45#
46
47clean:
c5571a1d 48 $(RM) $(OBJS) $(TARGETS) dbus.h
ef416fc2 49
50
51#
52# Install all targets...
53#
54
50fe7201
MS
55install: all install-data install-headers install-libs install-exec
56
57
58#
59# Install data files...
60#
61
62install-data:
e07d4801 63 $(INSTALL_DIR) -m 775 -g $(CUPS_GROUP) $(CACHEDIR)/rss
ef416fc2 64
65
50fe7201
MS
66#
67# Install programs...
68#
69
70install-exec:
c5571a1d 71 echo Installing notifiers in $(SERVERBIN)/notifier...
50fe7201 72 $(INSTALL_DIR) -m 755 $(SERVERBIN)/notifier
c5571a1d
MS
73 for file in $(NOTIFIERS); do \
74 $(INSTALL_BIN) $$file $(SERVERBIN)/notifier; \
75 done
49d87452
MS
76 if test "x$(SYMROOT)" != "x"; then \
77 $(INSTALL_DIR) $(SYMROOT); \
c1420c87
MS
78 for file in $(NOTIFIERS); do \
79 cp $$file $(SYMROOT); \
80 dsymutil $(SYMROOT)/$$file; \
81 done \
49d87452 82 fi
50fe7201
MS
83
84
85#
86# Install headers...
87#
88
89install-headers:
90
91
92#
93# Install libraries...
94#
95
96install-libs:
97
98
757d2cad 99#
100# Uninstall all targets...
101#
102
103uninstall:
c5571a1d 104 for file in $(NOTIFIERS); do \
757d2cad 105 $(RM) $(SERVERBIN)/notifier/$$file; \
106 done
107 -$(RMDIR) $(SERVERBIN)/notifier
108 -$(RMDIR) $(SERVERBIN)
f7deaa1a 109 -$(RMDIR) $(CACHEDIR)/rss
757d2cad 110
111
ef416fc2 112#
113# Update dependencies (without system header dependencies...)
114#
115
116depend:
12f89d24 117 $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
ef416fc2 118
119
c5571a1d
MS
120#
121# dbus
122#
123
124dbus: dbus.o ../cups/$(LIBCUPS)
125 echo Linking $@...
126 $(CC) $(LDFLAGS) -o dbus dbus.o $(DBUS_NOTIFIERLIBS) $(LIBS)
127
c5571a1d 128
ef416fc2 129#
130# mailto
131#
132
133mailto: mailto.o ../cups/$(LIBCUPS)
134 echo Linking $@...
135 $(CC) $(LDFLAGS) -o mailto mailto.o $(LIBS)
136
137
f7deaa1a 138#
139# rss
140#
141
142rss: rss.o ../cups/$(LIBCUPS)
143 echo Linking $@...
144 $(CC) $(LDFLAGS) -o rss rss.o $(LIBS)
145
146
ef416fc2 147#
148# testnotify
149#
150
151testnotify: testnotify.o ../cups/$(LIBCUPS)
152 echo Linking $@...
153 $(CC) $(LDFLAGS) -o testnotify testnotify.o $(LIBS)
154
155
156$(OBJS): ../Makedefs
157
158include Dependencies