]>
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 | # | |
16 | # Written by Christopher Faylor <cgf@redhat.com> | |
17 | # and Robert Collins <rbtcollins@hotmail.com> | |
18 | # | |
19 | # Makefile for Cygwin installer | |
20 | ||
21 | AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.6 | |
b401ef47 RC |
22 | DIST_SUBDIRS = bz2lib zlib libgetopt++ |
23 | SUBDIRS = bz2lib zlib libgetopt++ @RSYNC@ | |
f6100b6f RC |
24 | |
25 | ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]* | |
26 | ||
3c196821 | 27 | AM_CFLAGS = -Werror -Wall -Winline -Wpointer-arith \ |
f6100b6f | 28 | -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ |
58ee6135 RC |
29 | -Wmissing-declarations -Wcomments |
30 | AM_CXXFLAGS = $(AM_CFLAGS) | |
f6100b6f RC |
31 | |
32 | WINDRES := @WINDRES@ | |
33 | ||
6908b7d7 | 34 | INCLUDES = -I$(srcdir)/bz2lib -I$(srcdir)/libgetopt++/include |
f6100b6f | 35 | |
58ee6135 | 36 | noinst_PROGRAMS = \ |
19911586 RC |
37 | setup \ |
38 | @INILINT@ | |
58ee6135 RC |
39 | |
40 | EXTRA_PROGRAMS = inilint | |
19911586 | 41 | ## noinst_PROGRAMS +=inilint |
f6100b6f RC |
42 | |
43 | # to avoid false errors that assembly generates | |
44 | WARNONLY_CFLAGS = -Winline -Wall -Wpointer-arith -Wcast-align \ | |
45 | -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ | |
58ee6135 | 46 | -Wmissing-declarations -Wcomments $(INCLUDES) |
f6100b6f | 47 | |
45e01f23 RC |
48 | EXTRA_DIST = \ |
49 | check-na.bmp \ | |
50 | check-no.bmp \ | |
51 | check-yes.bmp \ | |
52 | choose-rtarrow.bmp \ | |
53 | choose-spin.bmp \ | |
54 | cygwin.ico \ | |
55 | inilex.l \ | |
b92028a4 | 56 | iniparse.y |
45e01f23 | 57 | |
f6100b6f RC |
58 | BUILT_SOURCES = setup_version.c \ |
59 | inilex.cc \ | |
60 | iniparse.cc | |
61 | ||
2b48ecd0 RC |
62 | if MINGWTARGET |
63 | inilint_extras = \ | |
64 | autoload.c \ | |
65 | mklink2.cc\ | |
66 | mklink2.cc | |
67 | else | |
68 | inilint_extras = | |
69 | endif | |
70 | ||
b401ef47 RC |
71 | if ENABLERSYNC |
72 | rsync_source = \ | |
73 | io_stream_rsync.cc \ | |
74 | io_stream_rsync.h | |
75 | else | |
76 | rsync_source = | |
77 | endif | |
78 | ||
58ee6135 RC |
79 | inilint_LDADD = libgetopt++/libgetopt++.la -lstdc++ -luser32 -lkernel32 |
80 | inilint_SOURCES = \ | |
b92028a4 RC |
81 | filemanip.cc \ |
82 | filemanip.h \ | |
aa1e3b4d RC |
83 | find.cc \ |
84 | find.h \ | |
85 | FindVisitor.cc \ | |
86 | FindVisitor.h \ | |
9f4a0c62 RC |
87 | LogSingleton.cc \ |
88 | LogSingleton.h \ | |
076654e7 RC |
89 | IniDBBuilder.cc \ |
90 | IniDBBuilder.h \ | |
58ee6135 RC |
91 | inilex.cc \ |
92 | inilintmain.cc \ | |
93 | iniparse.cc \ | |
94 | iniparse.h \ | |
aa1e3b4d RC |
95 | IniParseFeedback.cc \ |
96 | IniParseFeedback.h \ | |
076654e7 RC |
97 | io_stream.h \ |
98 | io_stream.cc \ | |
2b48ecd0 RC |
99 | io_stream_file.h \ |
100 | io_stream_file.cc \ | |
19911586 | 101 | IOStreamProvider.h \ |
aa1e3b4d RC |
102 | mkdir.cc \ |
103 | mkdir.h \ | |
076654e7 | 104 | PackageTrust.h \ |
58ee6135 RC |
105 | rfc1738.cc \ |
106 | rfc1738.h \ | |
107 | String++.cc \ | |
2b48ecd0 RC |
108 | String++.h \ |
109 | $(inilint_extras) | |
58ee6135 | 110 | |
b401ef47 RC |
111 | setup_LDADD = res.o zlib/libzcygw.a bz2lib/libbz2.a \ |
112 | libgetopt++/libgetopt++.la \ | |
113 | @RSYNCLIB@ \ | |
114 | -lstdc++ -luser32 -lkernel32 \ | |
115 | -lcomctl32 -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid | |
58ee6135 | 116 | setup_LDFLAGS = -mwindows |
f6100b6f RC |
117 | setup_SOURCES = \ |
118 | archive.cc \ | |
45e01f23 | 119 | archive.h \ |
f6100b6f | 120 | archive_tar.cc \ |
45e01f23 | 121 | archive_tar.h \ |
f6100b6f RC |
122 | archive_tar_file.cc \ |
123 | autoload.c \ | |
124 | category.cc \ | |
45e01f23 | 125 | category.h \ |
f6100b6f | 126 | choose.cc \ |
45e01f23 | 127 | choose.h \ |
f6100b6f | 128 | cistring.cc \ |
45e01f23 | 129 | cistring.h \ |
f6100b6f | 130 | compress.cc \ |
45e01f23 | 131 | compress.h \ |
f6100b6f | 132 | compress_bz.cc \ |
45e01f23 | 133 | compress_bz.h \ |
f6100b6f | 134 | compress_gz.cc \ |
45e01f23 | 135 | compress_gz.h \ |
f6100b6f | 136 | concat.cc \ |
45e01f23 | 137 | concat.h \ |
f6100b6f | 138 | cygpackage.cc \ |
45e01f23 | 139 | cygpackage.h \ |
f6100b6f | 140 | desktop.cc \ |
45e01f23 | 141 | desktop.h \ |
f6100b6f | 142 | dialog.cc \ |
45e01f23 | 143 | dialog.h \ |
f6100b6f | 144 | diskfull.cc \ |
45e01f23 | 145 | diskfull.h \ |
f6100b6f | 146 | download.cc \ |
58ee6135 RC |
147 | download.h \ |
148 | Exception.cc \ | |
149 | Exception.h \ | |
f6100b6f | 150 | find.cc \ |
45e01f23 | 151 | find.h \ |
b401ef47 RC |
152 | FindVisitor.cc \ |
153 | FindVisitor.h \ | |
f6100b6f | 154 | filemanip.cc \ |
45e01f23 | 155 | filemanip.h \ |
f6100b6f | 156 | fromcwd.cc \ |
f6100b6f | 157 | geturl.cc \ |
45e01f23 | 158 | geturl.h \ |
f6100b6f | 159 | hash.cc \ |
45e01f23 | 160 | hash.h \ |
f6100b6f | 161 | ini.cc \ |
45e01f23 | 162 | ini.h \ |
076654e7 RC |
163 | IniDBBuilder.cc \ |
164 | IniDBBuilder.h \ | |
165 | IniDBBuilderPackage.cc \ | |
166 | IniDBBuilderPackage.h \ | |
f6100b6f RC |
167 | inilex.cc \ |
168 | iniparse.cc \ | |
169 | iniparse.h \ | |
67829ce0 RC |
170 | IniParseFeedback.cc \ |
171 | IniParseFeedback.h \ | |
b401ef47 RC |
172 | IniParseFindVisitor.cc \ |
173 | IniParseFindVisitor.h \ | |
f6100b6f RC |
174 | install.cc \ |
175 | io_stream.cc \ | |
45e01f23 | 176 | io_stream.h \ |
f6100b6f | 177 | io_stream_cygfile.cc \ |
45e01f23 | 178 | io_stream_cygfile.h \ |
f6100b6f | 179 | io_stream_file.cc \ |
45e01f23 | 180 | io_stream_file.h \ |
f6100b6f | 181 | io_stream_memory.cc \ |
45e01f23 | 182 | io_stream_memory.h \ |
19911586 | 183 | IOStreamProvider.h \ |
45e01f23 | 184 | list.h \ |
f6100b6f | 185 | localdir.cc \ |
45e01f23 | 186 | localdir.h \ |
f6100b6f | 187 | log.cc \ |
45e01f23 | 188 | log.h \ |
9f4a0c62 RC |
189 | LogFile.cc \ |
190 | LogFile.h \ | |
191 | LogSingleton.cc \ | |
192 | LogSingleton.h \ | |
f6100b6f | 193 | main.cc \ |
58ee6135 RC |
194 | md5.c \ |
195 | md5.h \ | |
196 | MD5++.cc \ | |
197 | MD5++.h \ | |
f6100b6f | 198 | mkdir.cc \ |
45e01f23 | 199 | mkdir.h \ |
f6100b6f | 200 | mklink2.cc \ |
45e01f23 | 201 | mklink2.h \ |
f6100b6f | 202 | mount.cc \ |
45e01f23 | 203 | mount.h \ |
f6100b6f | 204 | msg.cc \ |
45e01f23 | 205 | msg.h \ |
f6100b6f | 206 | net.cc \ |
45e01f23 | 207 | net.h \ |
f6100b6f | 208 | netio.cc \ |
45e01f23 | 209 | netio.h \ |
f6100b6f | 210 | nio-ie5.cc \ |
45e01f23 | 211 | nio-ie5.h \ |
f6100b6f | 212 | nio-file.cc \ |
45e01f23 | 213 | nio-file.h \ |
f6100b6f | 214 | nio-ftp.cc \ |
45e01f23 | 215 | nio-ftp.h \ |
f6100b6f | 216 | nio-http.cc \ |
45e01f23 | 217 | nio-http.h \ |
f6100b6f | 218 | package_db.cc \ |
45e01f23 | 219 | package_db.h \ |
f6100b6f | 220 | package_meta.cc \ |
45e01f23 | 221 | package_meta.h \ |
f6100b6f | 222 | package_source.cc \ |
45e01f23 | 223 | package_source.h \ |
f6100b6f | 224 | package_version.cc \ |
45e01f23 | 225 | package_version.h \ |
aa1e3b4d RC |
226 | PackageSpecification.cc \ |
227 | PackageSpecification.h \ | |
076654e7 | 228 | PackageTrust.h \ |
f6100b6f | 229 | PickCategoryLine.cc \ |
45e01f23 | 230 | PickCategoryLine.h \ |
f6100b6f | 231 | PickLine.cc \ |
45e01f23 | 232 | PickLine.h \ |
f6100b6f | 233 | PickPackageLine.cc \ |
45e01f23 | 234 | PickPackageLine.h \ |
f6100b6f | 235 | PickView.cc \ |
45e01f23 RC |
236 | PickView.h \ |
237 | port.h \ | |
f6100b6f RC |
238 | postinstall.cc \ |
239 | proppage.cc \ | |
45e01f23 | 240 | proppage.h \ |
f6100b6f | 241 | propsheet.cc \ |
45e01f23 | 242 | propsheet.h \ |
f6100b6f | 243 | res.rc \ |
45e01f23 | 244 | resource.h \ |
f6100b6f | 245 | rfc1738.cc \ |
45e01f23 | 246 | rfc1738.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 \ |
f6100b6f RC |
253 | setup_version.c \ |
254 | simpsock.cc \ | |
45e01f23 | 255 | simpsock.h \ |
f6100b6f | 256 | site.cc \ |
45e01f23 | 257 | site.h \ |
f6100b6f | 258 | source.cc \ |
45e01f23 | 259 | source.h \ |
f6100b6f | 260 | splash.cc \ |
45e01f23 | 261 | splash.h \ |
f6100b6f | 262 | state.cc \ |
45e01f23 | 263 | state.h \ |
f6100b6f | 264 | String++.cc \ |
45e01f23 | 265 | String++.h \ |
f6100b6f | 266 | threebar.cc \ |
45e01f23 | 267 | threebar.h \ |
f6100b6f | 268 | version.cc \ |
45e01f23 | 269 | version.h \ |
f6100b6f | 270 | win32.cc \ |
45e01f23 RC |
271 | win32.h \ |
272 | window.cc \ | |
b401ef47 RC |
273 | window.h \ |
274 | $(rsync_source) | |
f6100b6f RC |
275 | |
276 | setup_version.c : $(srcdir)/ChangeLog Makefile | |
277 | V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \ | |
278 | | sed -e 's/\$$Revision:* *//' \ | |
279 | -e 's/ *$$.*//'` ;\ | |
280 | (echo '#define VERSION_PREFIX "%%% setup-version"';\ | |
281 | echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\ | |
282 | echo 'const char *version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\ | |
283 | mv version.tmp setup_version.c | |
284 | ||
285 | %.o: %.rc | |
286 | $(WINDRES) --include-dir $(srcdir) -o $@ $< | |
287 | ||
f6100b6f | 288 | autoload.o: autoload.c |
45e01f23 RC |
289 | @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
290 | @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ | |
291 | @AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
f6100b6f RC |
292 | $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CFLAGS) -c -o $@ $< -fno-inline-functions |
293 | ||
294 | inilex.o: inilex.cc | |
45e01f23 RC |
295 | @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
296 | @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ | |
297 | @AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
f6100b6f | 298 | $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ |
58ee6135 | 299 | $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CXXFLAGS) -c -o $@ $< |
f6100b6f RC |
300 | |
301 | iniparse.cc iniparse.h : iniparse.y | |
302 | bison -d -o iniparse.cc $(srcdir)/iniparse.y | |
303 | @mv iniparse.cc.h iniparse.h 2>/dev/null || mv iniparse.hh iniparse.h | |
304 | ||
305 | inilex.cc : inilex.l iniparse.h | |
306 | flex -8 $(srcdir)/inilex.l | |
307 | mv lex.yy.c inilex.cc | |
902c8a3f RC |
308 | |
309 | # Make a distribution package and tarball | |
5090e3ce RC |
310 | release: setup$(EXEEXT) dist-all $(srcdir)/ChangeLog Makefile |
311 | $(STRIP) setup.exe && \ | |
312 | upx --best setup.exe && \ | |
313 | V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \ | |
314 | | sed -e 's/\$$Revision:* *//' \ | |
315 | -e 's/ *$$.*//'` ;\ | |
4849e2fc | 316 | mv setup.exe setup-$${V}.exe && \ |
7cb35117 RC |
317 | mv setup-0.tar.bz2 setup-$${V}.tar.bz2 && \ |
318 | tar cjf setup-$${V}-1-src.tar.bz2 setup-$${V}.tar.bz2 | |
7d702af3 RC |
319 | |
320 | # Create a snapshot and upload it (requires write access) | |
321 | snapshot: release | |
322 | V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \ | |
323 | | sed -e 's/\$$Revision:* *//' \ | |
324 | -e 's/ *$$.*//'` ;\ | |
325 | scp -C setup-$${V}.exe setup-$${V}.tar.bz2 $${cygwinsite}:setup-snapshots/ |