]> git.ipfire.org Git - thirdparty/cups.git/blob - berkeley/Makefile
Merge changes from CUPS trunk, r7566.
[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 # Make library targets...
31 #
32
33 libs:
34
35
36 #
37 # Clean all object files...
38 #
39
40 clean:
41 $(RM) $(OBJS) $(TARGETS)
42
43
44 #
45 # Update dependencies (without system header dependencies...)
46 #
47
48 depend:
49 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
50
51
52 #
53 # Install all targets...
54 #
55
56 install: all install-data install-headers install-libs install-exec
57
58
59 #
60 # Install data files...
61 #
62
63 install-data:
64
65
66 #
67 # Install programs...
68 #
69
70 install-exec:
71 $(INSTALL_DIR) -m 755 $(BINDIR)
72 $(INSTALL_BIN) lpq $(BINDIR)
73 $(INSTALL_BIN) lpr $(BINDIR)
74 $(INSTALL_BIN) lprm $(BINDIR)
75 $(INSTALL_DIR) -m 755 $(SBINDIR)
76 $(INSTALL_BIN) lpc $(SBINDIR)
77 if test "x$(SYMROOT)" != "x"; then \
78 $(INSTALL_DIR) $(SYMROOT); \
79 for file in $(TARGETS); do \
80 cp $$file $(SYMROOT); \
81 done \
82 fi
83
84
85 #
86 # Install headers...
87 #
88
89 install-headers:
90
91
92 #
93 # Install libraries...
94 #
95
96 install-libs:
97
98
99 #
100 # Uninstall all targets...
101 #
102
103 uninstall:
104 $(RM) $(BINDIR)/lpq
105 $(RM) $(BINDIR)/lpr
106 $(RM) $(BINDIR)/lprm
107 $(RM) $(SBINDIR)/lpc
108 -$(RMDIR) $(SBINDIR)
109 -$(RMDIR) $(BINDIR)
110
111
112 #
113 # lpc
114 #
115
116 lpc: lpc.o ../cups/$(LIBCUPS)
117 echo Linking $@...
118 $(CC) $(LDFLAGS) -o lpc lpc.o $(LIBS)
119
120
121 #
122 # lpq
123 #
124
125 lpq: lpq.o ../cups/$(LIBCUPS)
126 echo Linking $@...
127 $(CC) $(LDFLAGS) -o lpq lpq.o $(LIBS)
128
129
130 #
131 # lpr
132 #
133
134 lpr: lpr.o ../cups/$(LIBCUPS)
135 echo Linking $@...
136 $(CC) $(LDFLAGS) -o lpr lpr.o $(LIBS)
137
138
139 #
140 # lprm
141 #
142
143 lprm: lprm.o ../cups/$(LIBCUPS)
144 echo Linking $@...
145 $(CC) $(LDFLAGS) -o lprm lprm.o $(LIBS)
146
147
148 #
149 # Dependencies...
150 #
151
152 include Dependencies
153
154
155 #
156 # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".
157 #