Add missing file.`
[thirdparty/cups.git] / monitor / Makefile
CommitLineData
bd7854cb 1#
75bd9771 2# "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $"
bd7854cb 3#
4# Port monitor makefile for the Common UNIX Printing System (CUPS).
5#
50fe7201 6# Copyright 2007-2008 by Apple Inc.
bd7854cb 7# Copyright 2006 by Easy Software Products.
8#
9# These coded instructions, statements, and computer programs are the
bc44d920 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/".
bd7854cb 14#
15# This file is subject to the Apple OS-Developed Software exception.
16#
17
18include ../Makedefs
19
20TARGETS = bcp tbcp
21
22OBJS = bcp.o tbcp.o
23
24
25#
26# Make all targets...
27#
28
29all: $(TARGETS)
30
31
c9fc04c6
MS
32#
33# Make library targets...
34#
35
36libs:
37
38
bd7854cb 39#
40# Clean all object files...
41#
42
43clean:
44 $(RM) $(OBJS) $(TARGETS)
45
46
47#
48# Update dependencies (without system header dependencies...)
49#
50
51depend:
52 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
53
54
55#
56# Install all targets...
57#
58
50fe7201
MS
59install: all install-data install-headers install-libs install-exec
60
61
62#
63# Install data files...
64#
65
66install-data:
67
68
69#
70# Install programs...
71#
72
73install-exec:
bd7854cb 74 $(INSTALL_DIR) -m 755 $(SERVERBIN)/monitor
75 for file in $(TARGETS); do \
76 $(INSTALL_BIN) $$file $(SERVERBIN)/monitor; \
77 done
09a101d6 78 if test "x$(SYMROOT)" != "x"; then \
79 $(INSTALL_DIR) $(SYMROOT); \
80 for file in $(TARGETS); do \
81 cp $$file $(SYMROOT); \
82 done \
83 fi
bd7854cb 84
85
50fe7201
MS
86#
87# Install headers...
88#
89
90install-headers:
91
92
93#
94# Install libraries...
95#
96
97install-libs:
98
99
757d2cad 100#
101# Uninstall all targets...
102#
103
104uninstall:
105 for file in $(TARGETS); do \
106 $(RM) $(SERVERBIN)/monitor/$$file; \
107 done
108 -$(RMDIR) $(SERVERBIN)/monitor
109 -$(RMDIR) $(SERVERBIN)
110
111
bd7854cb 112#
113# bcp
114#
115
116bcp: bcp.o ../cups/$(LIBCUPS)
117 echo Linking $@...
118 $(CC) $(LDFLAGS) -o $@ bcp.o $(LIBS)
119
120
121#
122# tbcp
123#
124
125tbcp: tbcp.o ../cups/$(LIBCUPS)
126 echo Linking $@...
127 $(CC) $(LDFLAGS) -o $@ tbcp.o $(LIBS)
128
129
130#
131# Dependencies...
132#
133
134include Dependencies
135
136
137#
75bd9771 138# End of "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $".
bd7854cb 139#