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