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