]> git.ipfire.org Git - thirdparty/cups.git/blob - berkeley/Makefile
<rdar://problem/5792631> dependency cycle in cups-144 / PrintingCore-250 / Applicatio...
[thirdparty/cups.git] / berkeley / Makefile
1 #
2 # "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $"
3 #
4 # Berkeley commands makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 2007-2008 by Apple Inc.
7 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
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
16 include ../Makedefs
17
18 TARGETS = lpc lpq lpr lprm
19 OBJS = lpc.o lpq.o lpr.o lprm.o
20
21
22 #
23 # Make all targets...
24 #
25
26 all: $(TARGETS)
27
28
29 #
30 # Clean all object files...
31 #
32
33 clean:
34 $(RM) $(OBJS) $(TARGETS)
35
36
37 #
38 # Update dependencies (without system header dependencies...)
39 #
40
41 depend:
42 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
43
44
45 #
46 # Install all targets...
47 #
48
49 install: all install-data install-headers install-libs install-exec
50
51
52 #
53 # Install data files...
54 #
55
56 install-data:
57
58
59 #
60 # Install programs...
61 #
62
63 install-exec:
64 $(INSTALL_DIR) -m 755 $(BINDIR)
65 $(INSTALL_BIN) lpq $(BINDIR)
66 $(INSTALL_BIN) lpr $(BINDIR)
67 $(INSTALL_BIN) lprm $(BINDIR)
68 $(INSTALL_DIR) -m 755 $(SBINDIR)
69 $(INSTALL_BIN) lpc $(SBINDIR)
70 if test "x$(SYMROOT)" != "x"; then \
71 $(INSTALL_DIR) $(SYMROOT); \
72 for file in $(TARGETS); do \
73 cp $$file $(SYMROOT); \
74 done \
75 fi
76
77
78 #
79 # Install headers...
80 #
81
82 install-headers:
83
84
85 #
86 # Install libraries...
87 #
88
89 install-libs:
90
91
92 #
93 # Uninstall all targets...
94 #
95
96 uninstall:
97 $(RM) $(BINDIR)/lpq
98 $(RM) $(BINDIR)/lpr
99 $(RM) $(BINDIR)/lprm
100 $(RM) $(SBINDIR)/lpc
101 -$(RMDIR) $(SBINDIR)
102 -$(RMDIR) $(BINDIR)
103
104
105 #
106 # lpc
107 #
108
109 lpc: lpc.o ../cups/$(LIBCUPS)
110 echo Linking $@...
111 $(CC) $(LDFLAGS) -o lpc lpc.o $(LIBS)
112
113
114 #
115 # lpq
116 #
117
118 lpq: lpq.o ../cups/$(LIBCUPS)
119 echo Linking $@...
120 $(CC) $(LDFLAGS) -o lpq lpq.o $(LIBS)
121
122
123 #
124 # lpr
125 #
126
127 lpr: lpr.o ../cups/$(LIBCUPS)
128 echo Linking $@...
129 $(CC) $(LDFLAGS) -o lpr lpr.o $(LIBS)
130
131
132 #
133 # lprm
134 #
135
136 lprm: lprm.o ../cups/$(LIBCUPS)
137 echo Linking $@...
138 $(CC) $(LDFLAGS) -o lprm lprm.o $(LIBS)
139
140
141 #
142 # Dependencies...
143 #
144
145 include Dependencies
146
147
148 #
149 # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".
150 #