Load cups into easysw/current.
[thirdparty/cups.git] / monitor / Makefile
CommitLineData
bd7854cb 1#
09a101d6 2# "$Id: Makefile 6563 2007-06-18 22:18:46Z mike $"
bd7854cb 3#
4# Port monitor makefile for the Common UNIX Printing System (CUPS).
5#
6# Copyright 2006 by Easy Software Products.
7#
8# These coded instructions, statements, and computer programs are the
9# property of Easy Software Products and are protected by Federal
10# copyright law. Distribution and use rights are outlined in the file
11# "LICENSE.txt" which should have been included with this file. If this
12# file is missing or damaged please contact Easy Software Products
13# at:
14#
15# Attn: CUPS Licensing Information
16# Easy Software Products
17# 44141 Airport View Drive, Suite 204
18# Hollywood, Maryland 20636 USA
19#
20# Voice: (301) 373-9600
21# EMail: cups-info@cups.org
22# WWW: http://www.cups.org
23#
24# This file is subject to the Apple OS-Developed Software exception.
25#
26
27include ../Makedefs
28
29TARGETS = bcp tbcp
30
31OBJS = bcp.o tbcp.o
32
33
34#
35# Make all targets...
36#
37
38all: $(TARGETS)
39
40
41#
42# Clean all object files...
43#
44
45clean:
46 $(RM) $(OBJS) $(TARGETS)
47
48
49#
50# Update dependencies (without system header dependencies...)
51#
52
53depend:
54 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
55
56
57#
58# Install all targets...
59#
60
61install: all
62 $(INSTALL_DIR) -m 755 $(SERVERBIN)/monitor
63 for file in $(TARGETS); do \
64 $(INSTALL_BIN) $$file $(SERVERBIN)/monitor; \
65 done
09a101d6 66 if test "x$(SYMROOT)" != "x"; then \
67 $(INSTALL_DIR) $(SYMROOT); \
68 for file in $(TARGETS); do \
69 cp $$file $(SYMROOT); \
70 done \
71 fi
bd7854cb 72
73
757d2cad 74#
75# Uninstall all targets...
76#
77
78uninstall:
79 for file in $(TARGETS); do \
80 $(RM) $(SERVERBIN)/monitor/$$file; \
81 done
82 -$(RMDIR) $(SERVERBIN)/monitor
83 -$(RMDIR) $(SERVERBIN)
84
85
bd7854cb 86#
87# bcp
88#
89
90bcp: bcp.o ../cups/$(LIBCUPS)
91 echo Linking $@...
92 $(CC) $(LDFLAGS) -o $@ bcp.o $(LIBS)
93
94
95#
96# tbcp
97#
98
99tbcp: tbcp.o ../cups/$(LIBCUPS)
100 echo Linking $@...
101 $(CC) $(LDFLAGS) -o $@ tbcp.o $(LIBS)
102
103
104#
105# Dependencies...
106#
107
108include Dependencies
109
110
111#
09a101d6 112# End of "$Id: Makefile 6563 2007-06-18 22:18:46Z mike $".
bd7854cb 113#