]>
Commit | Line | Data |
---|---|---|
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 | 18 | SUBDIRS := @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 | 26 | BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \ |
99f33a3b CV |
27 | -Wcast-align -Wwrite-strings -fno-builtin-sscanf \ |
28 | -Wno-attributes | |
6a03d5cd | 29 | AM_CXXFLAGS = -Werror $(BASECXXFLAGS) ${$(*F)_CXXFLAGS} |
89fc4ceb | 30 | AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \ |
43fe4376 | 31 | -Wstrict-prototypes -Wmissing-prototypes |
dacb1ebd BD |
32 | AM_YFLAGS = -d |
33 | AM_LFLAGS = -8 | |
92ef6cf8 | 34 | WINDRES = @WINDRES@ |
d88dca4a | 35 | AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include |
f6100b6f | 36 | |
6a03d5cd CV |
37 | inilex_CXXFLAGS:=-Wno-sign-compare |
38 | ||
e49fef4d | 39 | noinst_PROGRAMS = @SETUP@$(EXEEXT) @INILINT@ |
58ee6135 RC |
40 | |
41 | EXTRA_PROGRAMS = inilint | |
19911586 | 42 | ## noinst_PROGRAMS +=inilint |
f6100b6f | 43 | |
45e01f23 | 44 | EXTRA_DIST = \ |
89fc4ceb MB |
45 | CHANGES \ |
46 | CONTRIBUTORS \ | |
47 | COPYING \ | |
48 | bootstrap.sh \ | |
49 | check-na.bmp \ | |
50 | check-no.bmp \ | |
51 | check-yes.bmp \ | |
52 | choose-rtarrow.bmp \ | |
53 | choose-spin.bmp \ | |
54 | cygwin.ico \ | |
c0342e37 CV |
55 | cygwin-setup.ico \ |
56 | cygwin-terminal.ico \ | |
89fc4ceb | 57 | setup.exe.manifest \ |
2258d2a1 | 58 | setup64.exe.manifest \ |
89fc4ceb MB |
59 | tree-minus.bmp \ |
60 | tree-plus.bmp | |
45e01f23 | 61 | |
443b9db6 | 62 | # iniparse.hh is generated from iniparse.yy via bison -d, so it needs to be |
dacb1ebd BD |
63 | # included here for proper tracking (but not iniparse.cc, since automake |
64 | # knows about that already) | |
89fc4ceb MB |
65 | BUILT_SOURCES = \ |
66 | setup_version.c \ | |
443b9db6 | 67 | iniparse.hh |
f6100b6f | 68 | |
92ef6cf8 BD |
69 | CLEANFILES = setup_version.c |
70 | ||
89fc4ceb | 71 | inilint_LDADD = \ |
c63e8b4a | 72 | libgetopt++/libgetopt++.la |
58ee6135 | 73 | inilint_SOURCES = \ |
89fc4ceb MB |
74 | filemanip.cc \ |
75 | filemanip.h \ | |
76 | find.cc \ | |
77 | find.h \ | |
78 | FindVisitor.cc \ | |
79 | FindVisitor.h \ | |
80 | LogSingleton.cc \ | |
81 | LogSingleton.h \ | |
82 | IniDBBuilder.h \ | |
83 | inilintmain.cc \ | |
c63e8b4a | 84 | inilex.ll \ |
dacb1ebd | 85 | iniparse.yy \ |
89fc4ceb MB |
86 | IniParseFeedback.cc \ |
87 | IniParseFeedback.h \ | |
88 | io_stream.h \ | |
89 | io_stream.cc \ | |
90 | io_stream_file.h \ | |
91 | io_stream_file.cc \ | |
92 | IOStreamProvider.h \ | |
93 | mkdir.cc \ | |
94 | mkdir.h \ | |
e49fef4d | 95 | mklink2.cc \ |
89fc4ceb MB |
96 | PackageSpecification.cc \ |
97 | PackageSpecification.h \ | |
98 | PackageTrust.h \ | |
99 | csu_util/rfc1738.cc \ | |
100 | csu_util/rfc1738.h \ | |
101 | String++.cc \ | |
e49fef4d | 102 | String++.h |
58ee6135 | 103 | |
e49fef4d | 104 | @SETUP@_LDADD = \ |
e581419c | 105 | libgetopt++/libgetopt++.la -lgcrypt -lgpg-error -llzma -lbz2 -lz \ |
22819fa1 | 106 | -lshlwapi -lcomctl32 -lole32 -lws2_32 -lpsapi -luuid -lntdll -lwininet -lmingw32 |
e49fef4d YS |
107 | @SETUP@_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs |
108 | @SETUP@_SOURCES = \ | |
f9e903a3 RC |
109 | AntiVirus.cc \ |
110 | AntiVirus.h \ | |
f6100b6f | 111 | archive.cc \ |
45e01f23 | 112 | archive.h \ |
f6100b6f | 113 | archive_tar.cc \ |
45e01f23 | 114 | archive_tar.h \ |
f6100b6f | 115 | archive_tar_file.cc \ |
f6100b6f | 116 | choose.cc \ |
45e01f23 | 117 | choose.h \ |
f6100b6f | 118 | compress.cc \ |
45e01f23 | 119 | compress.h \ |
f6100b6f | 120 | compress_bz.cc \ |
45e01f23 | 121 | compress_bz.h \ |
f6100b6f | 122 | compress_gz.cc \ |
45e01f23 | 123 | compress_gz.h \ |
671140f9 CW |
124 | compress_xz.cc \ |
125 | compress_xz.h \ | |
39b42ff3 RC |
126 | ConnectionSetting.cc \ |
127 | ConnectionSetting.h \ | |
ee91d9be RC |
128 | ControlAdjuster.cc \ |
129 | ControlAdjuster.h \ | |
dbfe3c19 DK |
130 | crypto.cc \ |
131 | crypto.h \ | |
132 | cyg-pubkey.h \ | |
f6100b6f | 133 | cygpackage.cc \ |
45e01f23 | 134 | cygpackage.h \ |
f6100b6f | 135 | desktop.cc \ |
45e01f23 | 136 | desktop.h \ |
f6100b6f | 137 | dialog.cc \ |
45e01f23 | 138 | dialog.h \ |
f6100b6f | 139 | diskfull.cc \ |
45e01f23 | 140 | diskfull.h \ |
f6100b6f | 141 | download.cc \ |
58ee6135 RC |
142 | download.h \ |
143 | Exception.cc \ | |
144 | Exception.h \ | |
f6100b6f | 145 | find.cc \ |
45e01f23 | 146 | find.h \ |
b401ef47 RC |
147 | FindVisitor.cc \ |
148 | FindVisitor.h \ | |
f6100b6f | 149 | filemanip.cc \ |
45e01f23 | 150 | filemanip.h \ |
f6100b6f | 151 | fromcwd.cc \ |
31f0ccce | 152 | Generic.h \ |
f6100b6f | 153 | geturl.cc \ |
45e01f23 | 154 | geturl.h \ |
dbfe3c19 DK |
155 | gpg-packet.cc \ |
156 | gpg-packet.h \ | |
f6100b6f | 157 | ini.cc \ |
45e01f23 | 158 | ini.h \ |
076654e7 RC |
159 | IniDBBuilder.h \ |
160 | IniDBBuilderPackage.cc \ | |
161 | IniDBBuilderPackage.h \ | |
c63e8b4a | 162 | inilex.ll \ |
dacb1ebd | 163 | iniparse.yy \ |
67829ce0 RC |
164 | IniParseFeedback.cc \ |
165 | IniParseFeedback.h \ | |
f6100b6f RC |
166 | install.cc \ |
167 | io_stream.cc \ | |
45e01f23 | 168 | io_stream.h \ |
f6100b6f | 169 | io_stream_cygfile.cc \ |
45e01f23 | 170 | io_stream_cygfile.h \ |
f6100b6f | 171 | io_stream_file.cc \ |
45e01f23 | 172 | io_stream_file.h \ |
f6100b6f | 173 | io_stream_memory.cc \ |
45e01f23 | 174 | io_stream_memory.h \ |
19911586 | 175 | IOStreamProvider.h \ |
dbfe3c19 DK |
176 | KeysSetting.cc \ |
177 | KeysSetting.h \ | |
f6100b6f | 178 | localdir.cc \ |
45e01f23 | 179 | localdir.h \ |
9f4a0c62 RC |
180 | LogFile.cc \ |
181 | LogFile.h \ | |
182 | LogSingleton.cc \ | |
183 | LogSingleton.h \ | |
f6100b6f | 184 | main.cc \ |
f6100b6f | 185 | mkdir.cc \ |
45e01f23 | 186 | mkdir.h \ |
f6100b6f | 187 | mklink2.cc \ |
45e01f23 | 188 | mklink2.h \ |
f6100b6f | 189 | mount.cc \ |
45e01f23 | 190 | mount.h \ |
f6100b6f | 191 | msg.cc \ |
45e01f23 | 192 | msg.h \ |
f6100b6f | 193 | net.cc \ |
45e01f23 | 194 | net.h \ |
f6100b6f | 195 | netio.cc \ |
45e01f23 | 196 | netio.h \ |
f6100b6f | 197 | nio-ie5.cc \ |
45e01f23 | 198 | nio-ie5.h \ |
f6100b6f | 199 | nio-file.cc \ |
45e01f23 | 200 | nio-file.h \ |
f6100b6f | 201 | nio-ftp.cc \ |
45e01f23 | 202 | nio-ftp.h \ |
f6100b6f | 203 | nio-http.cc \ |
45e01f23 | 204 | nio-http.h \ |
f6100b6f | 205 | package_db.cc \ |
45e01f23 | 206 | package_db.h \ |
f6100b6f | 207 | package_meta.cc \ |
45e01f23 | 208 | package_meta.h \ |
f6100b6f | 209 | package_source.cc \ |
45e01f23 | 210 | package_source.h \ |
f6100b6f | 211 | package_version.cc \ |
45e01f23 | 212 | package_version.h \ |
aa1e3b4d RC |
213 | PackageSpecification.cc \ |
214 | PackageSpecification.h \ | |
076654e7 | 215 | PackageTrust.h \ |
f6100b6f | 216 | PickCategoryLine.cc \ |
45e01f23 | 217 | PickCategoryLine.h \ |
45e01f23 | 218 | PickLine.h \ |
f6100b6f | 219 | PickPackageLine.cc \ |
45e01f23 | 220 | PickPackageLine.h \ |
f6100b6f | 221 | PickView.cc \ |
45e01f23 | 222 | PickView.h \ |
f6100b6f | 223 | postinstall.cc \ |
018b960d JT |
224 | postinstallresults.cc \ |
225 | postinstallresults.h \ | |
82306ac2 BD |
226 | prereq.cc \ |
227 | prereq.h \ | |
ec366f61 JT |
228 | processlist.cc \ |
229 | processlist.h \ | |
f6100b6f | 230 | proppage.cc \ |
45e01f23 | 231 | proppage.h \ |
f6100b6f | 232 | propsheet.cc \ |
45e01f23 | 233 | propsheet.h \ |
8a264069 | 234 | RECTWrapper.h \ |
f6100b6f | 235 | res.rc \ |
45e01f23 | 236 | resource.h \ |
f6100b6f | 237 | root.cc \ |
45e01f23 | 238 | root.h \ |
b401ef47 RC |
239 | ScanFindVisitor.cc \ |
240 | ScanFindVisitor.h \ | |
f6100b6f | 241 | script.cc \ |
45e01f23 | 242 | script.h \ |
2b734ec7 | 243 | setup_version.h \ |
f6100b6f | 244 | setup_version.c \ |
be13ef43 CV |
245 | sha2.h \ |
246 | sha2.c \ | |
f6100b6f | 247 | simpsock.cc \ |
45e01f23 | 248 | simpsock.h \ |
f6100b6f | 249 | site.cc \ |
45e01f23 | 250 | site.h \ |
f6100b6f | 251 | source.cc \ |
45e01f23 | 252 | source.h \ |
6ff96351 RC |
253 | SourceSetting.cc \ |
254 | SourceSetting.h \ | |
f6100b6f | 255 | splash.cc \ |
45e01f23 | 256 | splash.h \ |
f6100b6f | 257 | state.cc \ |
45e01f23 | 258 | state.h \ |
f6100b6f | 259 | String++.cc \ |
45e01f23 | 260 | String++.h \ |
f6100b6f | 261 | threebar.cc \ |
45e01f23 | 262 | threebar.h \ |
ead15931 RC |
263 | UserSettings.cc \ |
264 | UserSettings.h \ | |
5072c0bb | 265 | win32.cc \ |
45e01f23 RC |
266 | win32.h \ |
267 | window.cc \ | |
f4d80c3f | 268 | window.h \ |
0229b1d7 MB |
269 | csu_util/MD5Sum.cc \ |
270 | csu_util/MD5Sum.h \ | |
946198be MB |
271 | csu_util/rfc1738.cc \ |
272 | csu_util/rfc1738.h \ | |
2b734ec7 | 273 | csu_util/version_compare.cc \ |
d88dca4a | 274 | csu_util/version_compare.h |
89fc4ceb | 275 | |
679f6a2e | 276 | GITVER := $(shell cd $(srcdir) && git describe --match release_\* --abbrev=6 --dirty || "N/A") |
ba3279e3 | 277 | VER := $(subst release_,,$(GITVER)) |
b941c8be | 278 | |
f6100b6f | 279 | setup_version.c : $(srcdir)/ChangeLog Makefile |
ba3279e3 | 280 | @echo "Setup version: " $(VER) |
e07b6f3d | 281 | $(AM_V_GEN)(echo '#define VERSION_PREFIX "%%% setup-version"';\ |
ba3279e3 | 282 | echo 'static const char version_store[] = VERSION_PREFIX " '$(VER)'";';\ |
e07b6f3d | 283 | echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp && \ |
f6100b6f RC |
284 | mv version.tmp setup_version.c |
285 | ||
2ae3cf4e | 286 | # setup.exe.manifest is included in res.rc |
2258d2a1 | 287 | res.o: @SETUP@.exe.manifest |
2ae3cf4e | 288 | |
92ef6cf8 | 289 | .rc.o: |
e07b6f3d | 290 | $(AM_V_GEN)$(WINDRES) --include-dir $(srcdir) -o $@ $< |
f6100b6f | 291 | |
a3cc7986 | 292 | setup-src: |
06eb6617 AG |
293 | @ver=setup-$(VER);\ |
294 | cd ${srcdir}; rm -f $$ver; ln -sf . $$ver;\ | |
295 | git ls-files | tar -T - -cJf ${CURDIR}/$$ver-src.tar.xz;\ | |
296 | echo $$ver-src.tar.xz; exec rm -f $$ver | |
a3cc7986 | 297 | |
07f1b4a8 CV |
298 | # optional: strip and compress executable |
299 | .PHONY: strip upx | |
300 | ||
301 | strip: all | |
302 | $(STRIP) -s setup$(EXEEXT) | |
303 | upx: strip | |
304 | @if [ -e `which upx` ]; then\ | |
305 | upx --best --lzma setup$(EXEEXT) ;\ | |
306 | else \ | |
307 | echo "UPX doesn't seem to be installed, cannot compress setup$(EXEEXT)." ;\ | |
308 | fi |