]>
Commit | Line | Data |
---|---|---|
bd0b97ff | 1 | # |
b2e10895 | 2 | # "$Id$" |
bd0b97ff | 3 | # |
4 | # Berkeley commands makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
cdc11487 | 6 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. |
bd0b97ff | 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 | |
8784b6a6 | 17 | # 44141 Airport View Drive, Suite 204 |
c9d3f842 | 18 | # Hollywood, Maryland 20636 USA |
bd0b97ff | 19 | # |
c4dcf3cc | 20 | # Voice: (301) 373-9600 |
bd0b97ff | 21 | # EMail: cups-info@cups.org |
22 | # WWW: http://www.cups.org | |
23 | # | |
24 | ||
25 | include ../Makedefs | |
26 | ||
f8ab8b97 | 27 | TARGETS = lpc lpq lpr lprm |
28 | OBJS = lpc.o lpq.o lpr.o lprm.o | |
bd0b97ff | 29 | |
a3e17a89 | 30 | |
bd0b97ff | 31 | # |
32 | # Make all targets... | |
33 | # | |
34 | ||
35 | all: $(TARGETS) | |
36 | ||
a3e17a89 | 37 | |
bd0b97ff | 38 | # |
39 | # Clean all object files... | |
40 | # | |
41 | ||
42 | clean: | |
8a2c2126 | 43 | $(RM) $(OBJS) $(TARGETS) |
bd0b97ff | 44 | |
a3e17a89 | 45 | |
f915b00f | 46 | # |
47 | # Update dependencies (without system header dependencies...) | |
48 | # | |
49 | ||
50 | depend: | |
51 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
52 | ||
53 | ||
bd0b97ff | 54 | # |
55 | # Install all targets... | |
56 | # | |
57 | ||
f915b00f | 58 | install: all |
cdc11487 | 59 | $(INSTALL_DIR) -m 755 $(BINDIR) |
753453e4 | 60 | $(INSTALL_BIN) lpq $(BINDIR) |
61 | $(INSTALL_BIN) lpr $(BINDIR) | |
62 | $(INSTALL_BIN) lprm $(BINDIR) | |
cdc11487 | 63 | $(INSTALL_DIR) -m 755 $(SBINDIR) |
a3e17a89 | 64 | $(INSTALL_BIN) lpc $(SBINDIR) |
b9daaaa3 | 65 | if test "x$(SYMROOT)" != "x"; then \ |
66 | $(INSTALL_DIR) $(SYMROOT); \ | |
67 | for file in $(TARGETS); do \ | |
68 | cp $$file $(SYMROOT); \ | |
69 | done \ | |
70 | fi | |
a3e17a89 | 71 | |
bd0b97ff | 72 | |
ad0f4a13 | 73 | # |
74 | # Uninstall all targets... | |
75 | # | |
76 | ||
77 | uninstall: | |
78 | $(RM) $(BINDIR)/lpq | |
79 | $(RM) $(BINDIR)/lpr | |
80 | $(RM) $(BINDIR)/lprm | |
81 | $(RM) $(SBINDIR)/lpc | |
82 | -$(RMDIR) $(SBINDIR) | |
83 | -$(RMDIR) $(BINDIR) | |
84 | ||
85 | ||
bd0b97ff | 86 | # |
87 | # lpc | |
88 | # | |
89 | ||
ab679c8f | 90 | lpc: lpc.o ../cups/$(LIBCUPS) |
8391453b | 91 | echo Linking $@... |
bd0b97ff | 92 | $(CC) $(LDFLAGS) -o lpc lpc.o $(LIBS) |
93 | ||
a3e17a89 | 94 | |
f8ab8b97 | 95 | # |
96 | # lpq | |
97 | # | |
98 | ||
ab679c8f | 99 | lpq: lpq.o ../cups/$(LIBCUPS) |
8391453b | 100 | echo Linking $@... |
f8ab8b97 | 101 | $(CC) $(LDFLAGS) -o lpq lpq.o $(LIBS) |
102 | ||
a3e17a89 | 103 | |
bd0b97ff | 104 | # |
105 | # lpr | |
106 | # | |
107 | ||
ab679c8f | 108 | lpr: lpr.o ../cups/$(LIBCUPS) |
8391453b | 109 | echo Linking $@... |
bd0b97ff | 110 | $(CC) $(LDFLAGS) -o lpr lpr.o $(LIBS) |
111 | ||
a3e17a89 | 112 | |
bd0b97ff | 113 | # |
114 | # lprm | |
115 | # | |
116 | ||
ab679c8f | 117 | lprm: lprm.o ../cups/$(LIBCUPS) |
8391453b | 118 | echo Linking $@... |
bd0b97ff | 119 | $(CC) $(LDFLAGS) -o lprm lprm.o $(LIBS) |
120 | ||
bd0b97ff | 121 | |
f915b00f | 122 | # |
123 | # Dependencies... | |
124 | # | |
b2e10895 | 125 | |
f915b00f | 126 | include Dependencies |
a3e17a89 | 127 | |
b2e10895 | 128 | |
bd0b97ff | 129 | # |
b2e10895 | 130 | # End of "$Id$". |
bd0b97ff | 131 | # |