]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
bc44d920 | 2 | # "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $" |
ef416fc2 | 3 | # |
4 | # Berkeley commands makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
bc44d920 | 6 | # Copyright 2007 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 | ||
16 | include ../Makedefs | |
17 | ||
18 | TARGETS = lpc lpq lpr lprm | |
19 | OBJS = lpc.o lpq.o lpr.o lprm.o | |
20 | ||
21 | ||
22 | # | |
23 | # Make all targets... | |
24 | # | |
25 | ||
26 | all: $(TARGETS) | |
27 | ||
28 | ||
29 | # | |
30 | # Clean all object files... | |
31 | # | |
32 | ||
33 | clean: | |
34 | $(RM) $(OBJS) $(TARGETS) | |
35 | ||
36 | ||
37 | # | |
38 | # Update dependencies (without system header dependencies...) | |
39 | # | |
40 | ||
41 | depend: | |
42 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
43 | ||
44 | ||
45 | # | |
46 | # Install all targets... | |
47 | # | |
48 | ||
49 | install: all | |
bd7854cb | 50 | $(INSTALL_DIR) -m 755 $(BINDIR) |
ef416fc2 | 51 | $(INSTALL_BIN) lpq $(BINDIR) |
52 | $(INSTALL_BIN) lpr $(BINDIR) | |
53 | $(INSTALL_BIN) lprm $(BINDIR) | |
bd7854cb | 54 | $(INSTALL_DIR) -m 755 $(SBINDIR) |
ef416fc2 | 55 | $(INSTALL_BIN) lpc $(SBINDIR) |
09a101d6 | 56 | if test "x$(SYMROOT)" != "x"; then \ |
57 | $(INSTALL_DIR) $(SYMROOT); \ | |
58 | for file in $(TARGETS); do \ | |
59 | cp $$file $(SYMROOT); \ | |
60 | done \ | |
61 | fi | |
ef416fc2 | 62 | |
63 | ||
757d2cad | 64 | # |
65 | # Uninstall all targets... | |
66 | # | |
67 | ||
68 | uninstall: | |
69 | $(RM) $(BINDIR)/lpq | |
70 | $(RM) $(BINDIR)/lpr | |
71 | $(RM) $(BINDIR)/lprm | |
72 | $(RM) $(SBINDIR)/lpc | |
73 | -$(RMDIR) $(SBINDIR) | |
74 | -$(RMDIR) $(BINDIR) | |
75 | ||
76 | ||
ef416fc2 | 77 | # |
78 | # lpc | |
79 | # | |
80 | ||
81 | lpc: lpc.o ../cups/$(LIBCUPS) | |
82 | echo Linking $@... | |
83 | $(CC) $(LDFLAGS) -o lpc lpc.o $(LIBS) | |
84 | ||
85 | ||
86 | # | |
87 | # lpq | |
88 | # | |
89 | ||
90 | lpq: lpq.o ../cups/$(LIBCUPS) | |
91 | echo Linking $@... | |
92 | $(CC) $(LDFLAGS) -o lpq lpq.o $(LIBS) | |
93 | ||
94 | ||
95 | # | |
96 | # lpr | |
97 | # | |
98 | ||
99 | lpr: lpr.o ../cups/$(LIBCUPS) | |
100 | echo Linking $@... | |
101 | $(CC) $(LDFLAGS) -o lpr lpr.o $(LIBS) | |
102 | ||
103 | ||
104 | # | |
105 | # lprm | |
106 | # | |
107 | ||
108 | lprm: lprm.o ../cups/$(LIBCUPS) | |
109 | echo Linking $@... | |
110 | $(CC) $(LDFLAGS) -o lprm lprm.o $(LIBS) | |
111 | ||
112 | ||
113 | # | |
114 | # Dependencies... | |
115 | # | |
116 | ||
117 | include Dependencies | |
118 | ||
119 | ||
120 | # | |
bc44d920 | 121 | # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $". |
ef416fc2 | 122 | # |