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