]> git.ipfire.org Git - thirdparty/cups.git/blob - monitor/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / monitor / Makefile
1 #
2 # "$Id: Makefile 5229 2006-03-05 16:48:12Z mike $"
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
27 include ../Makedefs
28
29 TARGETS = bcp tbcp
30
31 OBJS = bcp.o tbcp.o
32
33
34 #
35 # Make all targets...
36 #
37
38 all: $(TARGETS)
39
40
41 #
42 # Clean all object files...
43 #
44
45 clean:
46 $(RM) $(OBJS) $(TARGETS)
47
48
49 #
50 # Update dependencies (without system header dependencies...)
51 #
52
53 depend:
54 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
55
56
57 #
58 # Install all targets...
59 #
60
61 install: all
62 $(INSTALL_DIR) -m 755 $(SERVERBIN)/monitor
63 for file in $(TARGETS); do \
64 $(INSTALL_BIN) $$file $(SERVERBIN)/monitor; \
65 done
66
67
68 #
69 # Uninstall all targets...
70 #
71
72 uninstall:
73 for file in $(TARGETS); do \
74 $(RM) $(SERVERBIN)/monitor/$$file; \
75 done
76 -$(RMDIR) $(SERVERBIN)/monitor
77 -$(RMDIR) $(SERVERBIN)
78
79
80 #
81 # bcp
82 #
83
84 bcp: bcp.o ../cups/$(LIBCUPS)
85 echo Linking $@...
86 $(CC) $(LDFLAGS) -o $@ bcp.o $(LIBS)
87
88
89 #
90 # tbcp
91 #
92
93 tbcp: tbcp.o ../cups/$(LIBCUPS)
94 echo Linking $@...
95 $(CC) $(LDFLAGS) -o $@ tbcp.o $(LIBS)
96
97
98 #
99 # Dependencies...
100 #
101
102 include Dependencies
103
104
105 #
106 # End of "$Id: Makefile 5229 2006-03-05 16:48:12Z mike $".
107 #