]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
09a101d6 | 2 | # "$Id: Makefile 6563 2007-06-18 22:18:46Z 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 | ||
25 | include ../Makedefs | |
26 | ||
27 | TARGETS = lpc lpq lpr lprm | |
28 | OBJS = lpc.o lpq.o lpr.o lprm.o | |
29 | ||
30 | ||
31 | # | |
32 | # Make all targets... | |
33 | # | |
34 | ||
35 | all: $(TARGETS) | |
36 | ||
37 | ||
38 | # | |
39 | # Clean all object files... | |
40 | # | |
41 | ||
42 | clean: | |
43 | $(RM) $(OBJS) $(TARGETS) | |
44 | ||
45 | ||
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 | ||
54 | # | |
55 | # Install all targets... | |
56 | # | |
57 | ||
58 | install: 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) |
09a101d6 | 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 | |
ef416fc2 | 71 | |
72 | ||
757d2cad | 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 | ||
ef416fc2 | 86 | # |
87 | # lpc | |
88 | # | |
89 | ||
90 | lpc: lpc.o ../cups/$(LIBCUPS) | |
91 | echo Linking $@... | |
92 | $(CC) $(LDFLAGS) -o lpc lpc.o $(LIBS) | |
93 | ||
94 | ||
95 | # | |
96 | # lpq | |
97 | # | |
98 | ||
99 | lpq: lpq.o ../cups/$(LIBCUPS) | |
100 | echo Linking $@... | |
101 | $(CC) $(LDFLAGS) -o lpq lpq.o $(LIBS) | |
102 | ||
103 | ||
104 | # | |
105 | # lpr | |
106 | # | |
107 | ||
108 | lpr: lpr.o ../cups/$(LIBCUPS) | |
109 | echo Linking $@... | |
110 | $(CC) $(LDFLAGS) -o lpr lpr.o $(LIBS) | |
111 | ||
112 | ||
113 | # | |
114 | # lprm | |
115 | # | |
116 | ||
117 | lprm: lprm.o ../cups/$(LIBCUPS) | |
118 | echo Linking $@... | |
119 | $(CC) $(LDFLAGS) -o lprm lprm.o $(LIBS) | |
120 | ||
121 | ||
122 | # | |
123 | # Dependencies... | |
124 | # | |
125 | ||
126 | include Dependencies | |
127 | ||
128 | ||
129 | # | |
09a101d6 | 130 | # End of "$Id: Makefile 6563 2007-06-18 22:18:46Z mike $". |
ef416fc2 | 131 | # |