]> git.ipfire.org Git - thirdparty/cups.git/blame - berkeley/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / berkeley / Makefile
CommitLineData
ef416fc2 1#
f7faf1f5 2# "$Id: Makefile 5229 2006-03-05 16:48:12Z mike $"
ef416fc2 3#
4# Berkeley commands makefile for the Common UNIX Printing System (CUPS).
5#
bd7854cb 6# Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 7#
8# These coded instructions, statements, and computer programs are the
9# property of Easy Software Products and are protected by Federal
10# copyright law. Distribution and use rights are outlined in the file
11# "LICENSE.txt" which should have been included with this file. If this
12# file is missing or damaged please contact Easy Software Products
13# at:
14#
15# Attn: CUPS Licensing Information
16# Easy Software Products
17# 44141 Airport View Drive, Suite 204
18# Hollywood, Maryland 20636 USA
19#
20# Voice: (301) 373-9600
21# EMail: cups-info@cups.org
22# WWW: http://www.cups.org
23#
24
25include ../Makedefs
26
27TARGETS = lpc lpq lpr lprm
28OBJS = lpc.o lpq.o lpr.o lprm.o
29
30
31#
32# Make all targets...
33#
34
35all: $(TARGETS)
36
37
38#
39# Clean all object files...
40#
41
42clean:
43 $(RM) $(OBJS) $(TARGETS)
44
45
46#
47# Update dependencies (without system header dependencies...)
48#
49
50depend:
51 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
52
53
54#
55# Install all targets...
56#
57
58install: all
bd7854cb 59 $(INSTALL_DIR) -m 755 $(BINDIR)
ef416fc2 60 $(INSTALL_BIN) lpq $(BINDIR)
61 $(INSTALL_BIN) lpr $(BINDIR)
62 $(INSTALL_BIN) lprm $(BINDIR)
bd7854cb 63 $(INSTALL_DIR) -m 755 $(SBINDIR)
ef416fc2 64 $(INSTALL_BIN) lpc $(SBINDIR)
65
66
757d2cad 67#
68# Uninstall all targets...
69#
70
71uninstall:
72 $(RM) $(BINDIR)/lpq
73 $(RM) $(BINDIR)/lpr
74 $(RM) $(BINDIR)/lprm
75 $(RM) $(SBINDIR)/lpc
76 -$(RMDIR) $(SBINDIR)
77 -$(RMDIR) $(BINDIR)
78
79
ef416fc2 80#
81# lpc
82#
83
84lpc: lpc.o ../cups/$(LIBCUPS)
85 echo Linking $@...
86 $(CC) $(LDFLAGS) -o lpc lpc.o $(LIBS)
87
88
89#
90# lpq
91#
92
93lpq: lpq.o ../cups/$(LIBCUPS)
94 echo Linking $@...
95 $(CC) $(LDFLAGS) -o lpq lpq.o $(LIBS)
96
97
98#
99# lpr
100#
101
102lpr: lpr.o ../cups/$(LIBCUPS)
103 echo Linking $@...
104 $(CC) $(LDFLAGS) -o lpr lpr.o $(LIBS)
105
106
107#
108# lprm
109#
110
111lprm: lprm.o ../cups/$(LIBCUPS)
112 echo Linking $@...
113 $(CC) $(LDFLAGS) -o lprm lprm.o $(LIBS)
114
115
116#
117# Dependencies...
118#
119
120include Dependencies
121
122
123#
f7faf1f5 124# End of "$Id: Makefile 5229 2006-03-05 16:48:12Z mike $".
ef416fc2 125#