]> cygwin.com Git - cygwin-apps/setup.git/blame - Makefile.am
Fix compatibility with GCC 4.x.
[cygwin-apps/setup.git] / Makefile.am
CommitLineData
f6100b6f
RC
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#
f6100b6f
RC
16# Makefile for Cygwin installer
17
fe434e30 18SUBDIRS := @subdirs@ tests
f6100b6f
RC
19
20## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
21
8b726ef6
MB
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)
aa62e0f3
BD
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)
89fc4ceb
MB
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
dacb1ebd
BD
31AM_YFLAGS = -d
32AM_LFLAGS = -8
92ef6cf8 33WINDRES = @WINDRES@
1e0f90f9 34AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include
f6100b6f 35
89fc4ceb 36noinst_PROGRAMS = setup @INILINT@
58ee6135
RC
37
38EXTRA_PROGRAMS = inilint
19911586 39## noinst_PROGRAMS +=inilint
f6100b6f 40
45e01f23 41EXTRA_DIST = \
89fc4ceb
MB
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 \
89fc4ceb
MB
53 libmd5-rfc/README \
54 libmd5-rfc/md5main.c \
55 setup.exe.manifest \
56 tree-minus.bmp \
57 tree-plus.bmp
45e01f23 58
dacb1ebd
BD
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)
89fc4ceb
MB
62BUILT_SOURCES = \
63 setup_version.c \
fe434e30 64 iniparse.h
f6100b6f 65
92ef6cf8
BD
66CLEANFILES = setup_version.c
67
2b48ecd0 68if MINGWTARGET
89fc4ceb
MB
69inilint_extras = \
70 autoload.c \
71 mklink2.cc
2b48ecd0 72else
89fc4ceb 73inilint_extras =
2b48ecd0
RC
74endif
75
89fc4ceb 76inilint_LDADD = \
dacb1ebd 77 libinilex.a libgetopt++/libgetopt++.la
58ee6135 78inilint_SOURCES = \
89fc4ceb
MB
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 \
dacb1ebd 89 iniparse.yy \
89fc4ceb
MB
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)
58ee6135 107
dacb1ebd
BD
108# workaround to allow omitting -Werror on inilex.cc.
109noinst_LIBRARIES = libinilex.a
110libinilex_a_SOURCES = inilex.ll
111libinilex_a_CXXFLAGS = $(BASECXXFLAGS)
fc2ba841 112
89fc4ceb 113setup_LDADD = \
be6622c0 114 libinilex.a \
fe434e30 115 libgetopt++/libgetopt++.la -lgcrypt -lgpg-error \
671140f9 116 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lnetapi32 -luuid -llzma -lbz2 -lz
10b2d051 117setup_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
f6100b6f 118setup_SOURCES = \
f9e903a3
RC
119 AntiVirus.cc \
120 AntiVirus.h \
f6100b6f 121 archive.cc \
45e01f23 122 archive.h \
f6100b6f 123 archive_tar.cc \
45e01f23 124 archive_tar.h \
f6100b6f
RC
125 archive_tar_file.cc \
126 autoload.c \
f6100b6f 127 choose.cc \
45e01f23 128 choose.h \
f6100b6f 129 compress.cc \
45e01f23 130 compress.h \
f6100b6f 131 compress_bz.cc \
45e01f23 132 compress_bz.h \
f6100b6f 133 compress_gz.cc \
45e01f23 134 compress_gz.h \
671140f9
CW
135 compress_xz.cc \
136 compress_xz.h \
39b42ff3
RC
137 ConnectionSetting.cc \
138 ConnectionSetting.h \
ee91d9be
RC
139 ControlAdjuster.cc \
140 ControlAdjuster.h \
dbfe3c19
DK
141 crypto.cc \
142 crypto.h \
143 cyg-pubkey.h \
f6100b6f 144 cygpackage.cc \
45e01f23 145 cygpackage.h \
f6100b6f 146 desktop.cc \
45e01f23 147 desktop.h \
f6100b6f 148 dialog.cc \
45e01f23 149 dialog.h \
f6100b6f 150 diskfull.cc \
45e01f23 151 diskfull.h \
f6100b6f 152 download.cc \
58ee6135
RC
153 download.h \
154 Exception.cc \
155 Exception.h \
f6100b6f 156 find.cc \
45e01f23 157 find.h \
b401ef47
RC
158 FindVisitor.cc \
159 FindVisitor.h \
f6100b6f 160 filemanip.cc \
45e01f23 161 filemanip.h \
f6100b6f 162 fromcwd.cc \
31f0ccce 163 Generic.h \
f6100b6f 164 geturl.cc \
45e01f23 165 geturl.h \
dbfe3c19
DK
166 gpg-packet.cc \
167 gpg-packet.h \
f6100b6f 168 ini.cc \
45e01f23 169 ini.h \
076654e7
RC
170 IniDBBuilder.h \
171 IniDBBuilderPackage.cc \
172 IniDBBuilderPackage.h \
dacb1ebd 173 iniparse.yy \
67829ce0
RC
174 IniParseFeedback.cc \
175 IniParseFeedback.h \
b401ef47
RC
176 IniParseFindVisitor.cc \
177 IniParseFindVisitor.h \
f6100b6f
RC
178 install.cc \
179 io_stream.cc \
45e01f23 180 io_stream.h \
f6100b6f 181 io_stream_cygfile.cc \
45e01f23 182 io_stream_cygfile.h \
f6100b6f 183 io_stream_file.cc \
45e01f23 184 io_stream_file.h \
f6100b6f 185 io_stream_memory.cc \
45e01f23 186 io_stream_memory.h \
19911586 187 IOStreamProvider.h \
dbfe3c19
DK
188 KeysSetting.cc \
189 KeysSetting.h \
f6100b6f 190 localdir.cc \
45e01f23 191 localdir.h \
9f4a0c62
RC
192 LogFile.cc \
193 LogFile.h \
194 LogSingleton.cc \
195 LogSingleton.h \
f6100b6f 196 main.cc \
f6100b6f 197 mkdir.cc \
45e01f23 198 mkdir.h \
f6100b6f 199 mklink2.cc \
45e01f23 200 mklink2.h \
f6100b6f 201 mount.cc \
45e01f23 202 mount.h \
f6100b6f 203 msg.cc \
45e01f23 204 msg.h \
f6100b6f 205 net.cc \
45e01f23 206 net.h \
f6100b6f 207 netio.cc \
45e01f23 208 netio.h \
f6100b6f 209 nio-ie5.cc \
45e01f23 210 nio-ie5.h \
f6100b6f 211 nio-file.cc \
45e01f23 212 nio-file.h \
f6100b6f 213 nio-ftp.cc \
45e01f23 214 nio-ftp.h \
f6100b6f 215 nio-http.cc \
45e01f23 216 nio-http.h \
f6100b6f 217 package_db.cc \
45e01f23 218 package_db.h \
f6100b6f 219 package_meta.cc \
45e01f23 220 package_meta.h \
f6100b6f 221 package_source.cc \
45e01f23 222 package_source.h \
f6100b6f 223 package_version.cc \
45e01f23 224 package_version.h \
aa1e3b4d
RC
225 PackageSpecification.cc \
226 PackageSpecification.h \
076654e7 227 PackageTrust.h \
f6100b6f 228 PickCategoryLine.cc \
45e01f23 229 PickCategoryLine.h \
45e01f23 230 PickLine.h \
f6100b6f 231 PickPackageLine.cc \
45e01f23 232 PickPackageLine.h \
f6100b6f 233 PickView.cc \
45e01f23 234 PickView.h \
f6100b6f 235 postinstall.cc \
018b960d
JT
236 postinstallresults.cc \
237 postinstallresults.h \
82306ac2
BD
238 prereq.cc \
239 prereq.h \
f6100b6f 240 proppage.cc \
45e01f23 241 proppage.h \
f6100b6f 242 propsheet.cc \
45e01f23 243 propsheet.h \
8a264069 244 RECTWrapper.h \
f6100b6f 245 res.rc \
45e01f23 246 resource.h \
f6100b6f 247 root.cc \
45e01f23 248 root.h \
b401ef47
RC
249 ScanFindVisitor.cc \
250 ScanFindVisitor.h \
f6100b6f 251 script.cc \
45e01f23 252 script.h \
2b734ec7 253 setup_version.h \
f6100b6f
RC
254 setup_version.c \
255 simpsock.cc \
45e01f23 256 simpsock.h \
f6100b6f 257 site.cc \
45e01f23 258 site.h \
f6100b6f 259 source.cc \
45e01f23 260 source.h \
6ff96351
RC
261 SourceSetting.cc \
262 SourceSetting.h \
f6100b6f 263 splash.cc \
45e01f23 264 splash.h \
f6100b6f 265 state.cc \
45e01f23 266 state.h \
f6100b6f 267 String++.cc \
45e01f23 268 String++.h \
f6100b6f 269 threebar.cc \
45e01f23 270 threebar.h \
ead15931
RC
271 UserSettings.cc \
272 UserSettings.h \
5072c0bb 273 win32.cc \
45e01f23
RC
274 win32.h \
275 window.cc \
f4d80c3f 276 window.h \
0229b1d7
MB
277 csu_util/MD5Sum.cc \
278 csu_util/MD5Sum.h \
946198be
MB
279 csu_util/rfc1738.cc \
280 csu_util/rfc1738.h \
2b734ec7
MB
281 csu_util/version_compare.cc \
282 csu_util/version_compare.h \
f4d80c3f 283 libmd5-rfc/md5.c \
671140f9 284 libmd5-rfc/md5.h
89fc4ceb 285
10b2d051
YS
286# autoload code does not optimize properly with gcc-4.x
287autoload.o: CFLAGS += -O0
288
b941c8be
BD
289VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
290 $(srcdir)/ChangeLog)
291
f6100b6f 292setup_version.c : $(srcdir)/ChangeLog Makefile
f6100b6f 293 (echo '#define VERSION_PREFIX "%%% setup-version"';\
b941c8be
BD
294 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
295 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp
f6100b6f
RC
296 mv version.tmp setup_version.c
297
92ef6cf8 298.rc.o:
b941c8be 299 $(WINDRES) --include-dir $(srcdir) -o $@ $<
f6100b6f 300
a3cc7986
CF
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" |\
644ca185
CF
308 sort | tar -T - -cjf ${CURDIR}/$$ver-src.tar.bz2;\
309 echo $$ver-src.tar.bz2; exec rm -f $$ver
a3cc7986 310
This page took 0.083701 seconds and 5 git commands to generate.