]> git.ipfire.org Git - thirdparty/cups.git/blob - monitor/Makefile
Update svn:keyword properties.
[thirdparty/cups.git] / monitor / Makefile
1 #
2 # "$Id$"
3 #
4 # Port monitor makefile for CUPS.
5 #
6 # Copyright 2007-2012 by Apple Inc.
7 # Copyright 2006 by Easy Software Products.
8 #
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/".
14 #
15 # This file is subject to the Apple OS-Developed Software exception.
16 #
17
18 include ../Makedefs
19
20 TARGETS = bcp tbcp
21
22 OBJS = bcp.o tbcp.o
23
24
25 #
26 # Make all targets...
27 #
28
29 all: $(TARGETS)
30
31
32 #
33 # Make library targets...
34 #
35
36 libs:
37
38
39 #
40 # Make unit tests...
41 #
42
43 unittests:
44
45
46 #
47 # Clean all object files...
48 #
49
50 clean:
51 $(RM) $(OBJS) $(TARGETS)
52
53
54 #
55 # Update dependencies (without system header dependencies...)
56 #
57
58 depend:
59 $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
60
61
62 #
63 # Install all targets...
64 #
65
66 install: all install-data install-headers install-libs install-exec
67
68
69 #
70 # Install data files...
71 #
72
73 install-data:
74
75
76 #
77 # Install programs...
78 #
79
80 install-exec:
81 $(INSTALL_DIR) -m 755 $(SERVERBIN)/monitor
82 for file in $(TARGETS); do \
83 $(INSTALL_BIN) $$file $(SERVERBIN)/monitor; \
84 done
85 if test "x$(SYMROOT)" != "x"; then \
86 $(INSTALL_DIR) $(SYMROOT); \
87 for file in $(TARGETS); do \
88 cp $$file $(SYMROOT); \
89 dsymutil $(SYMROOT)/$$file; \
90 done \
91 fi
92
93
94 #
95 # Install headers...
96 #
97
98 install-headers:
99
100
101 #
102 # Install libraries...
103 #
104
105 install-libs:
106
107
108 #
109 # Uninstall all targets...
110 #
111
112 uninstall:
113 for file in $(TARGETS); do \
114 $(RM) $(SERVERBIN)/monitor/$$file; \
115 done
116 -$(RMDIR) $(SERVERBIN)/monitor
117 -$(RMDIR) $(SERVERBIN)
118
119
120 #
121 # bcp
122 #
123
124 bcp: bcp.o ../cups/$(LIBCUPS)
125 echo Linking $@...
126 $(CC) $(LDFLAGS) -o $@ bcp.o $(LIBS)
127
128
129 #
130 # tbcp
131 #
132
133 tbcp: tbcp.o ../cups/$(LIBCUPS)
134 echo Linking $@...
135 $(CC) $(LDFLAGS) -o $@ tbcp.o $(LIBS)
136
137
138 #
139 # Dependencies...
140 #
141
142 include Dependencies
143
144
145 #
146 # End of "$Id$".
147 #