]> git.ipfire.org Git - thirdparty/cups.git/blame - berkeley/Makefile
Fix source file header text duplication text duplication.
[thirdparty/cups.git] / berkeley / Makefile
CommitLineData
ef416fc2 1#
503b54c9 2# Berkeley commands makefile for CUPS.
ef416fc2 3#
503b54c9
MS
4# Copyright 2007-2012 by Apple Inc.
5# Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 6#
503b54c9
MS
7# These coded instructions, statements, and computer programs are the
8# property of Apple Inc. and are protected by Federal copyright
9# law. Distribution and use rights are outlined in the file "LICENSE.txt"
10# which should have been included with this file. If this file is
57b7b66b 11# missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 12#
13
14include ../Makedefs
15
5f64df29 16
ef416fc2 17TARGETS = lpc lpq lpr lprm
18OBJS = lpc.o lpq.o lpr.o lprm.o
19
20
21#
22# Make all targets...
23#
24
25all: $(TARGETS)
26
27
c9fc04c6
MS
28#
29# Make library targets...
30#
31
32libs:
33
34
5f64df29
MS
35#
36# Make unit tests...
37#
38
39unittests:
40
41
ef416fc2 42#
43# Clean all object files...
44#
45
46clean:
47 $(RM) $(OBJS) $(TARGETS)
48
49
50#
51# Update dependencies (without system header dependencies...)
52#
53
54depend:
12f89d24 55 $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
ef416fc2 56
57
58#
59# Install all targets...
60#
61
50fe7201
MS
62install: all install-data install-headers install-libs install-exec
63
64
65#
66# Install data files...
67#
68
69install-data:
70
71
72#
73# Install programs...
74#
75
76install-exec:
e07d4801 77 echo Installing Berkeley user printing commands in $(BINDIR)...
bd7854cb 78 $(INSTALL_DIR) -m 755 $(BINDIR)
ef416fc2 79 $(INSTALL_BIN) lpq $(BINDIR)
80 $(INSTALL_BIN) lpr $(BINDIR)
81 $(INSTALL_BIN) lprm $(BINDIR)
e07d4801 82 echo Installing Berkeley admin printing commands in $(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); \
c1420c87 89 dsymutil $(SYMROOT)/$$file; \
09a101d6 90 done \
91 fi
ef416fc2 92
93
50fe7201
MS
94#
95# Install headers...
96#
97
98install-headers:
99
100
101#
102# Install libraries...
103#
104
105install-libs:
106
107
757d2cad 108#
109# Uninstall all targets...
110#
111
112uninstall:
113 $(RM) $(BINDIR)/lpq
114 $(RM) $(BINDIR)/lpr
115 $(RM) $(BINDIR)/lprm
116 $(RM) $(SBINDIR)/lpc
117 -$(RMDIR) $(SBINDIR)
118 -$(RMDIR) $(BINDIR)
119
120
ef416fc2 121#
122# lpc
123#
124
125lpc: lpc.o ../cups/$(LIBCUPS)
126 echo Linking $@...
127 $(CC) $(LDFLAGS) -o lpc lpc.o $(LIBS)
128
129
130#
131# lpq
132#
133
134lpq: lpq.o ../cups/$(LIBCUPS)
135 echo Linking $@...
136 $(CC) $(LDFLAGS) -o lpq lpq.o $(LIBS)
137
138
139#
140# lpr
141#
142
143lpr: lpr.o ../cups/$(LIBCUPS)
144 echo Linking $@...
145 $(CC) $(LDFLAGS) -o lpr lpr.o $(LIBS)
146
147
148#
149# lprm
150#
151
152lprm: lprm.o ../cups/$(LIBCUPS)
153 echo Linking $@...
154 $(CC) $(LDFLAGS) -o lprm lprm.o $(LIBS)
155
156
157#
158# Dependencies...
159#
160
161include Dependencies