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