]> cygwin.com Git - cygwin-apps/setup.git/blob - Makefile.am
2002-07-09 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 #
3 # $Id$
4 #
5 # Copyright (c) 2000, Red Hat, Inc.
6 # Copyright (c) 2002, Robert Collins
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # A copy of the GNU General Public License can be found at
14 # http://www.gnu.org/
15 #
16 # Written by Christopher Faylor <cgf@redhat.com>
17 # and Robert Collins <rbtcollins@hotmail.com>
18 #
19 # Makefile for Cygwin installer
20
21 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.6
22 DIST_SUBDIRS = bz2lib zlib libgetopt++
23 SUBDIRS = bz2lib zlib libgetopt++ @RSYNC@
24
25 ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
26
27 ##AM_CFLAGS = -Werror -Wall -Winline -Wpointer-arith
28 AM_CFLAGS = -Werror -Wall -Wpointer-arith \
29 -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
30 -Wmissing-declarations -Wcomments
31 AM_CXXFLAGS = $(AM_CFLAGS)
32
33 WINDRES := @WINDRES@
34
35 INCLUDES = -I$(srcdir)/bz2lib -I$(srcdir)/libgetopt++/include
36
37 noinst_PROGRAMS = \
38 setup \
39 @INILINT@
40
41 EXTRA_PROGRAMS = inilint
42 ## noinst_PROGRAMS +=inilint
43
44 # to avoid false errors that assembly generates
45 WARNONLY_CFLAGS = -Winline -Wall -Wpointer-arith -Wcast-align \
46 -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
47 -Wmissing-declarations -Wcomments $(INCLUDES)
48
49 EXTRA_DIST = \
50 check-na.bmp \
51 check-no.bmp \
52 check-yes.bmp \
53 choose-rtarrow.bmp \
54 choose-spin.bmp \
55 cygwin.ico \
56 inilex.l \
57 iniparse.y
58
59 BUILT_SOURCES = setup_version.c \
60 inilex.cc \
61 iniparse.cc
62
63 if MINGWTARGET
64 inilint_extras = \
65 autoload.c \
66 mklink2.cc
67 else
68 inilint_extras =
69 endif
70
71 if ENABLERSYNC
72 rsync_source = \
73 io_stream_rsync.cc \
74 io_stream_rsync.h
75 else
76 rsync_source =
77 endif
78
79 inilint_LDADD = libgetopt++/libgetopt++.la -lstdc++ -luser32 -lkernel32
80 inilint_SOURCES = \
81 filemanip.cc \
82 filemanip.h \
83 find.cc \
84 find.h \
85 FindVisitor.cc \
86 FindVisitor.h \
87 LogSingleton.cc \
88 LogSingleton.h \
89 IniDBBuilder.cc \
90 IniDBBuilder.h \
91 inilex.cc \
92 inilintmain.cc \
93 iniparse.cc \
94 iniparse.h \
95 IniParseFeedback.cc \
96 IniParseFeedback.h \
97 io_stream.h \
98 io_stream.cc \
99 io_stream_file.h \
100 io_stream_file.cc \
101 IOStreamProvider.h \
102 mkdir.cc \
103 mkdir.h \
104 PackageSpecification.cc \
105 PackageSpecification.h \
106 PackageTrust.h \
107 rfc1738.cc \
108 rfc1738.h \
109 String++.cc \
110 String++.h \
111 $(inilint_extras)
112
113 setup_LDADD = res.o zlib/libzcygw.a bz2lib/libbz2.a \
114 libgetopt++/libgetopt++.la \
115 @RSYNCLIB@ \
116 -lstdc++ -luser32 -lkernel32 \
117 -lcomctl32 -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid
118 setup_LDFLAGS = -mwindows
119 setup_SOURCES = \
120 archive.cc \
121 archive.h \
122 archive_tar.cc \
123 archive_tar.h \
124 archive_tar_file.cc \
125 autoload.c \
126 category.cc \
127 category.h \
128 choose.cc \
129 choose.h \
130 cistring.cc \
131 cistring.h \
132 compress.cc \
133 compress.h \
134 compress_bz.cc \
135 compress_bz.h \
136 compress_gz.cc \
137 compress_gz.h \
138 concat.cc \
139 concat.h \
140 cygpackage.cc \
141 cygpackage.h \
142 desktop.cc \
143 desktop.h \
144 dialog.cc \
145 dialog.h \
146 diskfull.cc \
147 diskfull.h \
148 download.cc \
149 download.h \
150 Exception.cc \
151 Exception.h \
152 find.cc \
153 find.h \
154 FindVisitor.cc \
155 FindVisitor.h \
156 filemanip.cc \
157 filemanip.h \
158 fromcwd.cc \
159 geturl.cc \
160 geturl.h \
161 hash.cc \
162 hash.h \
163 ini.cc \
164 ini.h \
165 IniDBBuilder.cc \
166 IniDBBuilder.h \
167 IniDBBuilderPackage.cc \
168 IniDBBuilderPackage.h \
169 inilex.cc \
170 iniparse.cc \
171 iniparse.h \
172 IniParseFeedback.cc \
173 IniParseFeedback.h \
174 IniParseFindVisitor.cc \
175 IniParseFindVisitor.h \
176 install.cc \
177 io_stream.cc \
178 io_stream.h \
179 io_stream_cygfile.cc \
180 io_stream_cygfile.h \
181 io_stream_file.cc \
182 io_stream_file.h \
183 io_stream_memory.cc \
184 io_stream_memory.h \
185 IOStreamProvider.h \
186 localdir.cc \
187 localdir.h \
188 log.cc \
189 log.h \
190 LogFile.cc \
191 LogFile.h \
192 LogSingleton.cc \
193 LogSingleton.h \
194 main.cc \
195 md5.c \
196 md5.h \
197 MD5++.cc \
198 MD5++.h \
199 mkdir.cc \
200 mkdir.h \
201 mklink2.cc \
202 mklink2.h \
203 mount.cc \
204 mount.h \
205 msg.cc \
206 msg.h \
207 net.cc \
208 net.h \
209 netio.cc \
210 netio.h \
211 nio-ie5.cc \
212 nio-ie5.h \
213 nio-file.cc \
214 nio-file.h \
215 nio-ftp.cc \
216 nio-ftp.h \
217 nio-http.cc \
218 nio-http.h \
219 package_db.cc \
220 package_db.h \
221 package_meta.cc \
222 package_meta.h \
223 package_source.cc \
224 package_source.h \
225 package_version.cc \
226 package_version.h \
227 PackageSpecification.cc \
228 PackageSpecification.h \
229 PackageTrust.h \
230 PickCategoryLine.cc \
231 PickCategoryLine.h \
232 PickLine.cc \
233 PickLine.h \
234 PickPackageLine.cc \
235 PickPackageLine.h \
236 PickView.cc \
237 PickView.h \
238 port.h \
239 postinstall.cc \
240 proppage.cc \
241 proppage.h \
242 propsheet.cc \
243 propsheet.h \
244 res.rc \
245 resource.h \
246 rfc1738.cc \
247 rfc1738.h \
248 root.cc \
249 root.h \
250 ScanFindVisitor.cc \
251 ScanFindVisitor.h \
252 script.cc \
253 script.h \
254 setup_version.c \
255 simpsock.cc \
256 simpsock.h \
257 site.cc \
258 site.h \
259 source.cc \
260 source.h \
261 splash.cc \
262 splash.h \
263 state.cc \
264 state.h \
265 String++.cc \
266 String++.h \
267 threebar.cc \
268 threebar.h \
269 version.cc \
270 version.h \
271 win32.cc \
272 win32.h \
273 window.cc \
274 window.h \
275 $(rsync_source)
276
277 setup_version.c : $(srcdir)/ChangeLog Makefile
278 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
279 | sed -e 's/\$$Revision:* *//' \
280 -e 's/ *$$.*//'` ;\
281 (echo '#define VERSION_PREFIX "%%% setup-version"';\
282 echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\
283 echo 'const char *version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\
284 mv version.tmp setup_version.c
285
286 %.o: %.rc
287 $(WINDRES) --include-dir $(srcdir) -o $@ $<
288
289 autoload.o: autoload.c
290 @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
291 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
292 @AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
293 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CFLAGS) -c -o $@ $< -fno-inline-functions
294
295 inilex.o: inilex.cc
296 @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
297 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
298 @AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
299 $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
300 $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CXXFLAGS) -c -o $@ $<
301
302 iniparse.cc iniparse.h : iniparse.y
303 bison -d -o iniparse.cc $(srcdir)/iniparse.y
304 @mv iniparse.cc.h iniparse.h 2>/dev/null || mv iniparse.hh iniparse.h
305
306 inilex.cc : inilex.l iniparse.h
307 flex -8 $(srcdir)/inilex.l
308 mv lex.yy.c inilex.cc
309
310 # Make a distribution package and tarball
311 release: setup$(EXEEXT) dist-all $(srcdir)/ChangeLog Makefile
312 $(STRIP) setup.exe && \
313 upx --best setup.exe && \
314 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
315 | sed -e 's/\$$Revision:* *//' \
316 -e 's/ *$$.*//'` ;\
317 mv setup.exe setup-$${V}.exe && \
318 mv setup-0.tar.bz2 setup-$${V}.tar.bz2 && \
319 tar cjf setup-$${V}-1-src.tar.bz2 setup-$${V}.tar.bz2
320
321 # Create a snapshot and upload it (requires write access)
322 snapshot: release
323 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
324 | sed -e 's/\$$Revision:* *//' \
325 -e 's/ *$$.*//'` ;\
326 scp -C setup-$${V}.exe setup-$${V}.tar.bz2 $${cygwinsite}:setup-snapshots/
This page took 0.053071 seconds and 6 git commands to generate.