]> git.ipfire.org Git - thirdparty/cups.git/blob - berkeley/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / berkeley / Makefile
1 #
2 # "$Id: Makefile 4494 2005-02-18 02:18:11Z mike $"
3 #
4 # Berkeley commands makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1997-2005 by Easy Software Products, all rights reserved.
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
59 $(INSTALL_DIR) $(BINDIR)
60 $(INSTALL_BIN) lpq $(BINDIR)
61 $(INSTALL_BIN) lpr $(BINDIR)
62 $(INSTALL_BIN) lprm $(BINDIR)
63 $(INSTALL_DIR) $(SBINDIR)
64 $(INSTALL_BIN) lpc $(SBINDIR)
65
66
67 #
68 # lpc
69 #
70
71 lpc: lpc.o ../cups/$(LIBCUPS)
72 echo Linking $@...
73 $(CC) $(LDFLAGS) -o lpc lpc.o $(LIBS)
74
75
76 #
77 # lpq
78 #
79
80 lpq: lpq.o ../cups/$(LIBCUPS)
81 echo Linking $@...
82 $(CC) $(LDFLAGS) -o lpq lpq.o $(LIBS)
83
84
85 #
86 # lpr
87 #
88
89 lpr: lpr.o ../cups/$(LIBCUPS)
90 echo Linking $@...
91 $(CC) $(LDFLAGS) -o lpr lpr.o $(LIBS)
92
93
94 #
95 # lprm
96 #
97
98 lprm: lprm.o ../cups/$(LIBCUPS)
99 echo Linking $@...
100 $(CC) $(LDFLAGS) -o lprm lprm.o $(LIBS)
101
102
103 #
104 # Dependencies...
105 #
106
107 include Dependencies
108
109
110 #
111 # End of "$Id: Makefile 4494 2005-02-18 02:18:11Z mike $".
112 #