]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
bd7854cb | 2 | # "$Id: Makefile 5111 2006-02-16 02:08:09Z mike $" |
ef416fc2 | 3 | # |
4 | # CGI makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
bd7854cb | 6 | # Copyright 1997-2006 by Easy Software Products. |
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 | CGIS = admin.cgi classes.cgi help.cgi jobs.cgi printers.cgi | |
bd7854cb | 28 | TARGETS = libcgi.a $(CGIS) testcgi testhi testtemplate |
ef416fc2 | 29 | LIBOBJS = help-index.o html.o ipp-var.o search.o template.o var.o |
30 | OBJS = $(LIBOBJS) admin.o classes.o help.o \ | |
bd7854cb | 31 | jobs.o printers.o testcgi.o testhi.o testtemplate.o |
ef416fc2 | 32 | |
33 | ||
34 | # | |
35 | # Make all targets... | |
36 | # | |
37 | ||
38 | all: $(TARGETS) | |
39 | ||
40 | ||
41 | # | |
42 | # Clean all object files... | |
43 | # | |
44 | ||
45 | clean: | |
46 | $(RM) $(OBJS) $(TARGETS) | |
47 | ||
48 | ||
49 | # | |
50 | # Update dependencies (without system header dependencies...) | |
51 | # | |
52 | ||
53 | depend: | |
54 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
55 | ||
56 | ||
57 | # | |
58 | # Install all targets... | |
59 | # | |
60 | ||
61 | install: all | |
bd7854cb | 62 | $(INSTALL_DIR) -m 755 $(SERVERBIN)/cgi-bin |
ef416fc2 | 63 | for file in $(CGIS); do \ |
64 | $(INSTALL_BIN) $$file $(SERVERBIN)/cgi-bin; \ | |
65 | done | |
66 | ||
67 | ||
68 | # | |
69 | # libcgi.a | |
70 | # | |
71 | ||
72 | libcgi.a: $(LIBOBJS) | |
73 | echo Archiving $@... | |
74 | $(RM) $@ | |
75 | $(AR) $(ARFLAGS) $@ $(LIBOBJS) | |
76 | $(RANLIB) $@ | |
77 | ||
78 | ||
79 | # | |
80 | # admin.cgi | |
81 | # | |
82 | ||
83 | admin.cgi: admin.o ../Makedefs ../cups/$(LIBCUPS) libcgi.a | |
84 | echo Linking $@... | |
85 | $(CC) $(LDFLAGS) -o $@ admin.o libcgi.a $(LIBS) | |
86 | ||
87 | ||
88 | # | |
89 | # classes.cgi | |
90 | # | |
91 | ||
92 | classes.cgi: classes.o ../Makedefs ../cups/$(LIBCUPS) libcgi.a | |
93 | echo Linking $@... | |
94 | $(CC) $(LDFLAGS) -o $@ classes.o libcgi.a $(LIBS) | |
95 | ||
96 | ||
97 | # | |
98 | # help.cgi | |
99 | # | |
100 | ||
101 | help.cgi: help.o ../Makedefs libcgi.a | |
102 | echo Linking $@... | |
103 | $(CC) $(LDFLAGS) -o $@ help.o libcgi.a $(LIBS) | |
104 | ||
105 | ||
106 | # | |
107 | # jobs.cgi | |
108 | # | |
109 | ||
110 | jobs.cgi: jobs.o ../Makedefs ../cups/$(LIBCUPS) libcgi.a | |
111 | echo Linking $@... | |
112 | $(CC) $(LDFLAGS) -o $@ jobs.o libcgi.a $(LIBS) | |
113 | ||
114 | ||
115 | # | |
116 | # printers.cgi | |
117 | # | |
118 | ||
119 | printers.cgi: printers.o ../Makedefs ../cups/$(LIBCUPS) libcgi.a | |
120 | echo Linking $@... | |
121 | $(CC) $(LDFLAGS) -o $@ printers.o libcgi.a $(LIBS) | |
122 | ||
123 | ||
124 | # | |
125 | # testcgi | |
126 | # | |
127 | ||
128 | testcgi: testcgi.o ../Makedefs libcgi.a | |
129 | echo Linking $@... | |
130 | $(CC) $(LDFLAGS) -o $@ testcgi.o libcgi.a $(LIBS) | |
131 | ||
132 | ||
133 | # | |
134 | # testhi | |
135 | # | |
136 | ||
137 | testhi: testhi.o ../Makedefs libcgi.a | |
138 | echo Linking $@... | |
139 | $(CC) $(LDFLAGS) -o $@ testhi.o libcgi.a $(LIBS) | |
140 | ||
141 | ||
bd7854cb | 142 | # |
143 | # testtemplate | |
144 | # | |
145 | ||
146 | testtemplate: testtemplate.o ../Makedefs libcgi.a | |
147 | echo Linking $@... | |
148 | $(CC) $(LDFLAGS) -o $@ testtemplate.o libcgi.a $(LIBS) | |
149 | ||
150 | ||
ef416fc2 | 151 | # |
152 | # Dependencies... | |
153 | # | |
154 | ||
155 | include Dependencies | |
156 | ||
157 | ||
158 | # | |
bd7854cb | 159 | # End of "$Id: Makefile 5111 2006-02-16 02:08:09Z mike $". |
ef416fc2 | 160 | # |