]> cygwin.com Git - cygwin-apps/setup.git/blame_incremental - Makefile.am
Fix compatibility with GCC 4.x.
[cygwin-apps/setup.git] / Makefile.am
... / ...
CommitLineData
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# Makefile for Cygwin installer
17
18SUBDIRS := @subdirs@ tests
19
20## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
21
22# We would like to use -Winline for C++ as well, but some STL code triggers
23# this warning. (Bug verified present in gcc-3.3)
24# -Wno-uninitialized added to deal with g++ 3.4.4's spurious STL warnings
25# (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22207)
26BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \
27 -Wcast-align -Wwrite-strings
28AM_CXXFLAGS = -Werror $(BASECXXFLAGS)
29AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
30 -Wstrict-prototypes -Wmissing-prototypes
31AM_YFLAGS = -d
32AM_LFLAGS = -8
33WINDRES = @WINDRES@
34AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include
35
36noinst_PROGRAMS = setup @INILINT@
37
38EXTRA_PROGRAMS = inilint
39## noinst_PROGRAMS +=inilint
40
41EXTRA_DIST = \
42 CHANGES \
43 CONTRIBUTORS \
44 COPYING \
45 bootstrap.sh \
46 check-na.bmp \
47 check-no.bmp \
48 check-yes.bmp \
49 choose-rtarrow.bmp \
50 choose-spin.bmp \
51 cygwin.ico \
52 doconfigure \
53 libmd5-rfc/README \
54 libmd5-rfc/md5main.c \
55 setup.exe.manifest \
56 tree-minus.bmp \
57 tree-plus.bmp
58
59# iniparse.h is generated from iniparse.yy via bison -d, so it needs to be
60# included here for proper tracking (but not iniparse.cc, since automake
61# knows about that already)
62BUILT_SOURCES = \
63 setup_version.c \
64 iniparse.h
65
66CLEANFILES = setup_version.c
67
68if MINGWTARGET
69inilint_extras = \
70 autoload.c \
71 mklink2.cc
72else
73inilint_extras =
74endif
75
76inilint_LDADD = \
77 libinilex.a libgetopt++/libgetopt++.la
78inilint_SOURCES = \
79 filemanip.cc \
80 filemanip.h \
81 find.cc \
82 find.h \
83 FindVisitor.cc \
84 FindVisitor.h \
85 LogSingleton.cc \
86 LogSingleton.h \
87 IniDBBuilder.h \
88 inilintmain.cc \
89 iniparse.yy \
90 IniParseFeedback.cc \
91 IniParseFeedback.h \
92 io_stream.h \
93 io_stream.cc \
94 io_stream_file.h \
95 io_stream_file.cc \
96 IOStreamProvider.h \
97 mkdir.cc \
98 mkdir.h \
99 PackageSpecification.cc \
100 PackageSpecification.h \
101 PackageTrust.h \
102 csu_util/rfc1738.cc \
103 csu_util/rfc1738.h \
104 String++.cc \
105 String++.h \
106 $(inilint_extras)
107
108# workaround to allow omitting -Werror on inilex.cc.
109noinst_LIBRARIES = libinilex.a
110libinilex_a_SOURCES = inilex.ll
111libinilex_a_CXXFLAGS = $(BASECXXFLAGS)
112
113setup_LDADD = \
114 libinilex.a \
115 libgetopt++/libgetopt++.la -lgcrypt -lgpg-error \
116 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lnetapi32 -luuid -llzma -lbz2 -lz
117setup_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
118setup_SOURCES = \
119 AntiVirus.cc \
120 AntiVirus.h \
121 archive.cc \
122 archive.h \
123 archive_tar.cc \
124 archive_tar.h \
125 archive_tar_file.cc \
126 autoload.c \
127 choose.cc \
128 choose.h \
129 compress.cc \
130 compress.h \
131 compress_bz.cc \
132 compress_bz.h \
133 compress_gz.cc \
134 compress_gz.h \
135 compress_xz.cc \
136 compress_xz.h \
137 ConnectionSetting.cc \
138 ConnectionSetting.h \
139 ControlAdjuster.cc \
140 ControlAdjuster.h \
141 crypto.cc \
142 crypto.h \
143 cyg-pubkey.h \
144 cygpackage.cc \
145 cygpackage.h \
146 desktop.cc \
147 desktop.h \
148 dialog.cc \
149 dialog.h \
150 diskfull.cc \
151 diskfull.h \
152 download.cc \
153 download.h \
154 Exception.cc \
155 Exception.h \
156 find.cc \
157 find.h \
158 FindVisitor.cc \
159 FindVisitor.h \
160 filemanip.cc \
161 filemanip.h \
162 fromcwd.cc \
163 Generic.h \
164 geturl.cc \
165 geturl.h \
166 gpg-packet.cc \
167 gpg-packet.h \
168 ini.cc \
169 ini.h \
170 IniDBBuilder.h \
171 IniDBBuilderPackage.cc \
172 IniDBBuilderPackage.h \
173 iniparse.yy \
174 IniParseFeedback.cc \
175 IniParseFeedback.h \
176 IniParseFindVisitor.cc \
177 IniParseFindVisitor.h \
178 install.cc \
179 io_stream.cc \
180 io_stream.h \
181 io_stream_cygfile.cc \
182 io_stream_cygfile.h \
183 io_stream_file.cc \
184 io_stream_file.h \
185 io_stream_memory.cc \
186 io_stream_memory.h \
187 IOStreamProvider.h \
188 KeysSetting.cc \
189 KeysSetting.h \
190 localdir.cc \
191 localdir.h \
192 LogFile.cc \
193 LogFile.h \
194 LogSingleton.cc \
195 LogSingleton.h \
196 main.cc \
197 mkdir.cc \
198 mkdir.h \
199 mklink2.cc \
200 mklink2.h \
201 mount.cc \
202 mount.h \
203 msg.cc \
204 msg.h \
205 net.cc \
206 net.h \
207 netio.cc \
208 netio.h \
209 nio-ie5.cc \
210 nio-ie5.h \
211 nio-file.cc \
212 nio-file.h \
213 nio-ftp.cc \
214 nio-ftp.h \
215 nio-http.cc \
216 nio-http.h \
217 package_db.cc \
218 package_db.h \
219 package_meta.cc \
220 package_meta.h \
221 package_source.cc \
222 package_source.h \
223 package_version.cc \
224 package_version.h \
225 PackageSpecification.cc \
226 PackageSpecification.h \
227 PackageTrust.h \
228 PickCategoryLine.cc \
229 PickCategoryLine.h \
230 PickLine.h \
231 PickPackageLine.cc \
232 PickPackageLine.h \
233 PickView.cc \
234 PickView.h \
235 postinstall.cc \
236 postinstallresults.cc \
237 postinstallresults.h \
238 prereq.cc \
239 prereq.h \
240 proppage.cc \
241 proppage.h \
242 propsheet.cc \
243 propsheet.h \
244 RECTWrapper.h \
245 res.rc \
246 resource.h \
247 root.cc \
248 root.h \
249 ScanFindVisitor.cc \
250 ScanFindVisitor.h \
251 script.cc \
252 script.h \
253 setup_version.h \
254 setup_version.c \
255 simpsock.cc \
256 simpsock.h \
257 site.cc \
258 site.h \
259 source.cc \
260 source.h \
261 SourceSetting.cc \
262 SourceSetting.h \
263 splash.cc \
264 splash.h \
265 state.cc \
266 state.h \
267 String++.cc \
268 String++.h \
269 threebar.cc \
270 threebar.h \
271 UserSettings.cc \
272 UserSettings.h \
273 win32.cc \
274 win32.h \
275 window.cc \
276 window.h \
277 csu_util/MD5Sum.cc \
278 csu_util/MD5Sum.h \
279 csu_util/rfc1738.cc \
280 csu_util/rfc1738.h \
281 csu_util/version_compare.cc \
282 csu_util/version_compare.h \
283 libmd5-rfc/md5.c \
284 libmd5-rfc/md5.h
285
286# autoload code does not optimize properly with gcc-4.x
287autoload.o: CFLAGS += -O0
288
289VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
290 $(srcdir)/ChangeLog)
291
292setup_version.c : $(srcdir)/ChangeLog Makefile
293 (echo '#define VERSION_PREFIX "%%% setup-version"';\
294 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
295 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp
296 mv version.tmp setup_version.c
297
298.rc.o:
299 $(WINDRES) --include-dir $(srcdir) -o $@ $<
300
301# static const char version_store[] = VERSION_PREFIX " 2.686";
302setup-src:
303 @ver=setup-$$(sed -n 's/^static const char version_store.* VERSION_PREFIX " \([^"]*\)".*$$/\1/p' setup_version.c);\
304 cd ${srcdir};\
305 rm -f $$ver;\
306 ln -sf . $$ver;\
307 cvs status -R | sed -n "s%^ *Repository revision:.*/cvs/cygwin-apps/setup/\(.*\),v%$$ver/\1%p" |\
308 sort | tar -T - -cjf ${CURDIR}/$$ver-src.tar.bz2;\
309 echo $$ver-src.tar.bz2; exec rm -f $$ver
310
This page took 0.024473 seconds and 5 git commands to generate.