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