]> git.ipfire.org Git - thirdparty/cups.git/blame - monitor/Makefile
Merge changes from CUPS 1.4svn-r7386.
[thirdparty/cups.git] / monitor / Makefile
CommitLineData
bd7854cb 1#
bc44d920 2# "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $"
bd7854cb 3#
4# Port monitor makefile for the Common UNIX Printing System (CUPS).
5#
bc44d920 6# Copyright 2007 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
32#
33# Clean all object files...
34#
35
36clean:
37 $(RM) $(OBJS) $(TARGETS)
38
39
40#
41# Update dependencies (without system header dependencies...)
42#
43
44depend:
45 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
46
47
48#
49# Install all targets...
50#
51
52install: all
53 $(INSTALL_DIR) -m 755 $(SERVERBIN)/monitor
54 for file in $(TARGETS); do \
55 $(INSTALL_BIN) $$file $(SERVERBIN)/monitor; \
56 done
09a101d6 57 if test "x$(SYMROOT)" != "x"; then \
58 $(INSTALL_DIR) $(SYMROOT); \
59 for file in $(TARGETS); do \
60 cp $$file $(SYMROOT); \
61 done \
62 fi
bd7854cb 63
64
757d2cad 65#
66# Uninstall all targets...
67#
68
69uninstall:
70 for file in $(TARGETS); do \
71 $(RM) $(SERVERBIN)/monitor/$$file; \
72 done
73 -$(RMDIR) $(SERVERBIN)/monitor
74 -$(RMDIR) $(SERVERBIN)
75
76
bd7854cb 77#
78# bcp
79#
80
81bcp: bcp.o ../cups/$(LIBCUPS)
82 echo Linking $@...
83 $(CC) $(LDFLAGS) -o $@ bcp.o $(LIBS)
84
85
86#
87# tbcp
88#
89
90tbcp: tbcp.o ../cups/$(LIBCUPS)
91 echo Linking $@...
92 $(CC) $(LDFLAGS) -o $@ tbcp.o $(LIBS)
93
94
95#
96# Dependencies...
97#
98
99include Dependencies
100
101
102#
bc44d920 103# End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".
bd7854cb 104#