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