]> cygwin.com Git - cygwin-apps/setup.git/blob - Makefile.am
2003-10-16 Frank Richter <frichter@gmx.li>
[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 foreign
22 DIST_SUBDIRS = bz2lib zlib libgetopt++ tests
23 SUBDIRS = bz2lib zlib libgetopt++ @RSYNC@ tests
24
25 ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
26
27 # We would like to use -Winline for C++ as well, but some STL code triggers
28 # this warning. (Bug verified present in gcc-3.3)
29 AM_CXXFLAGS = -Werror -Wall -Wpointer-arith -Wcomments \
30 -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
31 AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline
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 GUIDELINES \
51 check-na.bmp \
52 check-no.bmp \
53 check-yes.bmp \
54 choose-rtarrow.bmp \
55 choose-spin.bmp \
56 cygwin.ico \
57 inilex.l \
58 iniparse.y
59
60 BUILT_SOURCES = setup_version.c \
61 inilex.cc \
62 iniparse.cc
63
64 if MINGWTARGET
65 inilint_extras = \
66 autoload.c \
67 mklink2.cc
68 else
69 inilint_extras =
70 endif
71
72 if ENABLERSYNC
73 rsync_source = \
74 io_stream_rsync.cc \
75 io_stream_rsync.h
76 else
77 rsync_source =
78 endif
79
80 inilint_LDADD = libgetopt++/libgetopt++.la -luser32 -lkernel32
81 inilint_SOURCES = \
82 filemanip.cc \
83 filemanip.h \
84 find.cc \
85 find.h \
86 FindVisitor.cc \
87 FindVisitor.h \
88 LogSingleton.cc \
89 LogSingleton.h \
90 IniDBBuilder.cc \
91 IniDBBuilder.h \
92 inilex.cc \
93 inilintmain.cc \
94 iniparse.cc \
95 iniparse.h \
96 IniParseFeedback.cc \
97 IniParseFeedback.h \
98 io_stream.h \
99 io_stream.cc \
100 io_stream_file.h \
101 io_stream_file.cc \
102 IOStreamProvider.h \
103 mkdir.cc \
104 mkdir.h \
105 PackageSpecification.cc \
106 PackageSpecification.h \
107 PackageTrust.h \
108 rfc1738.cc \
109 rfc1738.h \
110 String++.cc \
111 String++.h \
112 $(inilint_extras)
113
114 setup_LDADD = res.o zlib/libzcygw.a bz2lib/libbz2.a \
115 libgetopt++/libgetopt++.la \
116 @RSYNCLIB@ \
117 -luser32 -lkernel32 \
118 -lcomctl32 -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid
119 setup_LDFLAGS = -mwindows
120 setup_SOURCES = \
121 AntiVirus.cc \
122 AntiVirus.h \
123 archive.cc \
124 archive.h \
125 archive_tar.cc \
126 archive_tar.h \
127 archive_tar_file.cc \
128 autoload.c \
129 category.cc \
130 category.h \
131 choose.cc \
132 choose.h \
133 cistring.cc \
134 cistring.h \
135 compress.cc \
136 compress.h \
137 compress_bz.cc \
138 compress_bz.h \
139 compress_gz.cc \
140 compress_gz.h \
141 ConnectionSetting.cc \
142 ConnectionSetting.h \
143 ControlAdjuster.cc \
144 ControlAdjuster.h \
145 cygpackage.cc \
146 cygpackage.h \
147 desktop.cc \
148 desktop.h \
149 dialog.cc \
150 dialog.h \
151 diskfull.cc \
152 diskfull.h \
153 download.cc \
154 download.h \
155 Exception.cc \
156 Exception.h \
157 find.cc \
158 find.h \
159 FindVisitor.cc \
160 FindVisitor.h \
161 FilterVisitor.cc \
162 FilterVisitor.h \
163 filemanip.cc \
164 filemanip.h \
165 fromcwd.cc \
166 Generic.h \
167 geturl.cc \
168 geturl.h \
169 hash.cc \
170 hash.h \
171 ini.cc \
172 ini.h \
173 IniDBBuilder.cc \
174 IniDBBuilder.h \
175 IniDBBuilderPackage.cc \
176 IniDBBuilderPackage.h \
177 inilex.cc \
178 iniparse.cc \
179 iniparse.h \
180 IniParseFeedback.cc \
181 IniParseFeedback.h \
182 IniParseFindVisitor.cc \
183 IniParseFindVisitor.h \
184 install.cc \
185 io_stream.cc \
186 io_stream.h \
187 io_stream_cygfile.cc \
188 io_stream_cygfile.h \
189 io_stream_file.cc \
190 io_stream_file.h \
191 io_stream_memory.cc \
192 io_stream_memory.h \
193 IOStreamProvider.h \
194 localdir.cc \
195 localdir.h \
196 log.cc \
197 log.h \
198 LogFile.cc \
199 LogFile.h \
200 LogSingleton.cc \
201 LogSingleton.h \
202 main.cc \
203 md5.c \
204 md5.h \
205 MD5++.cc \
206 MD5++.h \
207 mkdir.cc \
208 mkdir.h \
209 mklink2.cc \
210 mklink2.h \
211 mount.cc \
212 mount.h \
213 msg.cc \
214 msg.h \
215 net.cc \
216 net.h \
217 netio.cc \
218 netio.h \
219 nio-ie5.cc \
220 nio-ie5.h \
221 nio-file.cc \
222 nio-file.h \
223 nio-ftp.cc \
224 nio-ftp.h \
225 nio-http.cc \
226 nio-http.h \
227 package_db.cc \
228 package_db.h \
229 package_meta.cc \
230 package_meta.h \
231 package_source.cc \
232 package_source.h \
233 package_version.cc \
234 package_version.h \
235 PackageSpecification.cc \
236 PackageSpecification.h \
237 PackageTrust.h \
238 PickCategoryLine.cc \
239 PickCategoryLine.h \
240 PickLine.cc \
241 PickLine.h \
242 PickPackageLine.cc \
243 PickPackageLine.h \
244 PickView.cc \
245 PickView.h \
246 port.h \
247 postinstall.cc \
248 proppage.cc \
249 proppage.h \
250 propsheet.cc \
251 propsheet.h \
252 res.rc \
253 resource.h \
254 rfc1738.cc \
255 rfc1738.h \
256 root.cc \
257 root.h \
258 ScanFindVisitor.cc \
259 ScanFindVisitor.h \
260 script.cc \
261 script.h \
262 setup_version.c \
263 simpsock.cc \
264 simpsock.h \
265 site.cc \
266 site.h \
267 source.cc \
268 source.h \
269 SourceSetting.cc \
270 SourceSetting.h \
271 splash.cc \
272 splash.h \
273 state.cc \
274 state.h \
275 String++.cc \
276 String++.h \
277 threebar.cc \
278 threebar.h \
279 UserSetting.cc \
280 UserSetting.h \
281 UserSettings.cc \
282 UserSettings.h \
283 version.cc \
284 version.h \
285 win32.cc \
286 win32.h \
287 window.cc \
288 window.h \
289 $(rsync_source)
290
291 setup_version.c : $(srcdir)/ChangeLog Makefile
292 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
293 | sed -e 's/\$$Revision:* *//' \
294 -e 's/ *$$.*//'` ;\
295 (echo '#define VERSION_PREFIX "%%% setup-version"';\
296 echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\
297 echo 'const char *version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\
298 mv version.tmp setup_version.c
299
300 %.o: %.rc
301 $(WINDRES) --preprocessor "$(CC) -E -xc-header -DRC_INVOKED" --include-dir $(srcdir) -o $@ $<
302
303 autoload.o: autoload.c
304 @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
306 @AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CFLAGS) -c -o $@ $< -fno-inline-functions
308
309 inilex.o: inilex.cc
310 @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
311 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
312 @AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313 $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
314 $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CXXFLAGS) -c -o $@ $<
315
316 iniparse.cc iniparse.h : iniparse.y
317 bison -d -o iniparse.cc $(srcdir)/iniparse.y
318 @mv iniparse.cc.h iniparse.h 2>/dev/null || mv iniparse.hh iniparse.h
319
320 inilex.cc : inilex.l iniparse.h
321 flex -8 $(srcdir)/inilex.l
322 mv lex.yy.c inilex.cc
323
324 # Make a distribution package and tarball
325 release: setup$(EXEEXT) dist-all $(srcdir)/ChangeLog Makefile
326 $(STRIP) setup.exe && \
327 upx --best setup.exe && \
328 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
329 | sed -e 's/\$$Revision:* *//' \
330 -e 's/ *$$.*//'` ;\
331 mv setup.exe setup-$${V}.exe && \
332 mv setup-0.tar.bz2 setup-$${V}.tar.bz2 && \
333 tar cjf setup-$${V}-1-src.tar.bz2 setup-$${V}.tar.bz2
334
335 # Create a snapshot and upload it (requires write access)
336 snapshot: release
337 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
338 | sed -e 's/\$$Revision:* *//' \
339 -e 's/ *$$.*//'` ;\
340 scp -C setup-$${V}.exe setup-$${V}.tar.bz2 $${cygwinsite}:setup-snapshots/
This page took 0.049488 seconds and 5 git commands to generate.