]>
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 | ||
27 | AM_CFLAGS = -Werror -Winline -Wall -Wpointer-arith \ | |
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 \ | |
9f4a0c62 RC |
83 | LogSingleton.cc \ |
84 | LogSingleton.h \ | |
076654e7 RC |
85 | IniDBBuilder.cc \ |
86 | IniDBBuilder.h \ | |
58ee6135 RC |
87 | inilex.cc \ |
88 | inilintmain.cc \ | |
89 | iniparse.cc \ | |
90 | iniparse.h \ | |
076654e7 RC |
91 | io_stream.h \ |
92 | io_stream.cc \ | |
2b48ecd0 RC |
93 | io_stream_file.h \ |
94 | io_stream_file.cc \ | |
19911586 | 95 | IOStreamProvider.h \ |
076654e7 | 96 | PackageTrust.h \ |
58ee6135 RC |
97 | rfc1738.cc \ |
98 | rfc1738.h \ | |
99 | String++.cc \ | |
2b48ecd0 RC |
100 | String++.h \ |
101 | $(inilint_extras) | |
58ee6135 | 102 | |
b401ef47 RC |
103 | setup_LDADD = res.o zlib/libzcygw.a bz2lib/libbz2.a \ |
104 | libgetopt++/libgetopt++.la \ | |
105 | @RSYNCLIB@ \ | |
106 | -lstdc++ -luser32 -lkernel32 \ | |
107 | -lcomctl32 -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid | |
58ee6135 | 108 | setup_LDFLAGS = -mwindows |
f6100b6f RC |
109 | setup_SOURCES = \ |
110 | archive.cc \ | |
45e01f23 | 111 | archive.h \ |
f6100b6f | 112 | archive_tar.cc \ |
45e01f23 | 113 | archive_tar.h \ |
f6100b6f RC |
114 | archive_tar_file.cc \ |
115 | autoload.c \ | |
116 | category.cc \ | |
45e01f23 | 117 | category.h \ |
f6100b6f | 118 | choose.cc \ |
45e01f23 | 119 | choose.h \ |
f6100b6f | 120 | cistring.cc \ |
45e01f23 | 121 | cistring.h \ |
f6100b6f | 122 | compress.cc \ |
45e01f23 | 123 | compress.h \ |
f6100b6f | 124 | compress_bz.cc \ |
45e01f23 | 125 | compress_bz.h \ |
f6100b6f | 126 | compress_gz.cc \ |
45e01f23 | 127 | compress_gz.h \ |
f6100b6f | 128 | concat.cc \ |
45e01f23 | 129 | concat.h \ |
f6100b6f | 130 | cygpackage.cc \ |
45e01f23 | 131 | cygpackage.h \ |
f6100b6f | 132 | desktop.cc \ |
45e01f23 | 133 | desktop.h \ |
f6100b6f | 134 | dialog.cc \ |
45e01f23 | 135 | dialog.h \ |
f6100b6f | 136 | diskfull.cc \ |
45e01f23 | 137 | diskfull.h \ |
f6100b6f | 138 | download.cc \ |
58ee6135 RC |
139 | download.h \ |
140 | Exception.cc \ | |
141 | Exception.h \ | |
f6100b6f | 142 | find.cc \ |
45e01f23 | 143 | find.h \ |
b401ef47 RC |
144 | FindVisitor.cc \ |
145 | FindVisitor.h \ | |
f6100b6f | 146 | filemanip.cc \ |
45e01f23 | 147 | filemanip.h \ |
f6100b6f | 148 | fromcwd.cc \ |
f6100b6f | 149 | geturl.cc \ |
45e01f23 | 150 | geturl.h \ |
f6100b6f | 151 | hash.cc \ |
45e01f23 | 152 | hash.h \ |
f6100b6f | 153 | ini.cc \ |
45e01f23 | 154 | ini.h \ |
076654e7 RC |
155 | IniDBBuilder.cc \ |
156 | IniDBBuilder.h \ | |
157 | IniDBBuilderPackage.cc \ | |
158 | IniDBBuilderPackage.h \ | |
f6100b6f RC |
159 | inilex.cc \ |
160 | iniparse.cc \ | |
161 | iniparse.h \ | |
b401ef47 RC |
162 | IniParseFindVisitor.cc \ |
163 | IniParseFindVisitor.h \ | |
f6100b6f RC |
164 | install.cc \ |
165 | io_stream.cc \ | |
45e01f23 | 166 | io_stream.h \ |
f6100b6f | 167 | io_stream_cygfile.cc \ |
45e01f23 | 168 | io_stream_cygfile.h \ |
f6100b6f | 169 | io_stream_file.cc \ |
45e01f23 | 170 | io_stream_file.h \ |
f6100b6f | 171 | io_stream_memory.cc \ |
45e01f23 | 172 | io_stream_memory.h \ |
19911586 | 173 | IOStreamProvider.h \ |
45e01f23 | 174 | list.h \ |
f6100b6f | 175 | localdir.cc \ |
45e01f23 | 176 | localdir.h \ |
f6100b6f | 177 | log.cc \ |
45e01f23 | 178 | log.h \ |
9f4a0c62 RC |
179 | LogFile.cc \ |
180 | LogFile.h \ | |
181 | LogSingleton.cc \ | |
182 | LogSingleton.h \ | |
f6100b6f | 183 | main.cc \ |
58ee6135 RC |
184 | md5.c \ |
185 | md5.h \ | |
186 | MD5++.cc \ | |
187 | MD5++.h \ | |
f6100b6f | 188 | mkdir.cc \ |
45e01f23 | 189 | mkdir.h \ |
f6100b6f | 190 | mklink2.cc \ |
45e01f23 | 191 | mklink2.h \ |
f6100b6f | 192 | mount.cc \ |
45e01f23 | 193 | mount.h \ |
f6100b6f | 194 | msg.cc \ |
45e01f23 | 195 | msg.h \ |
f6100b6f | 196 | net.cc \ |
45e01f23 | 197 | net.h \ |
f6100b6f | 198 | netio.cc \ |
45e01f23 | 199 | netio.h \ |
f6100b6f | 200 | nio-ie5.cc \ |
45e01f23 | 201 | nio-ie5.h \ |
f6100b6f | 202 | nio-file.cc \ |
45e01f23 | 203 | nio-file.h \ |
f6100b6f | 204 | nio-ftp.cc \ |
45e01f23 | 205 | nio-ftp.h \ |
f6100b6f | 206 | nio-http.cc \ |
45e01f23 | 207 | nio-http.h \ |
f6100b6f | 208 | package_db.cc \ |
45e01f23 | 209 | package_db.h \ |
f6100b6f | 210 | package_meta.cc \ |
45e01f23 | 211 | package_meta.h \ |
f6100b6f | 212 | package_source.cc \ |
45e01f23 | 213 | package_source.h \ |
f6100b6f | 214 | package_version.cc \ |
45e01f23 | 215 | package_version.h \ |
076654e7 | 216 | PackageTrust.h \ |
f6100b6f | 217 | PickCategoryLine.cc \ |
45e01f23 | 218 | PickCategoryLine.h \ |
f6100b6f | 219 | PickLine.cc \ |
45e01f23 | 220 | PickLine.h \ |
f6100b6f | 221 | PickPackageLine.cc \ |
45e01f23 | 222 | PickPackageLine.h \ |
f6100b6f | 223 | PickView.cc \ |
45e01f23 RC |
224 | PickView.h \ |
225 | port.h \ | |
f6100b6f RC |
226 | postinstall.cc \ |
227 | proppage.cc \ | |
45e01f23 | 228 | proppage.h \ |
f6100b6f | 229 | propsheet.cc \ |
45e01f23 | 230 | propsheet.h \ |
f6100b6f | 231 | res.rc \ |
45e01f23 | 232 | resource.h \ |
f6100b6f | 233 | rfc1738.cc \ |
45e01f23 | 234 | rfc1738.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 \ |
f6100b6f RC |
241 | setup_version.c \ |
242 | simpsock.cc \ | |
45e01f23 | 243 | simpsock.h \ |
f6100b6f | 244 | site.cc \ |
45e01f23 | 245 | site.h \ |
f6100b6f | 246 | source.cc \ |
45e01f23 | 247 | source.h \ |
f6100b6f | 248 | splash.cc \ |
45e01f23 | 249 | splash.h \ |
f6100b6f | 250 | state.cc \ |
45e01f23 | 251 | state.h \ |
f6100b6f | 252 | String++.cc \ |
45e01f23 | 253 | String++.h \ |
f6100b6f | 254 | threebar.cc \ |
45e01f23 | 255 | threebar.h \ |
f6100b6f | 256 | version.cc \ |
45e01f23 | 257 | version.h \ |
f6100b6f | 258 | win32.cc \ |
45e01f23 RC |
259 | win32.h \ |
260 | window.cc \ | |
b401ef47 RC |
261 | window.h \ |
262 | $(rsync_source) | |
f6100b6f RC |
263 | |
264 | setup_version.c : $(srcdir)/ChangeLog Makefile | |
265 | V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \ | |
266 | | sed -e 's/\$$Revision:* *//' \ | |
267 | -e 's/ *$$.*//'` ;\ | |
268 | (echo '#define VERSION_PREFIX "%%% setup-version"';\ | |
269 | echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\ | |
270 | echo 'const char *version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\ | |
271 | mv version.tmp setup_version.c | |
272 | ||
273 | %.o: %.rc | |
274 | $(WINDRES) --include-dir $(srcdir) -o $@ $< | |
275 | ||
f6100b6f | 276 | autoload.o: autoload.c |
45e01f23 RC |
277 | @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
278 | @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ | |
279 | @AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
f6100b6f RC |
280 | $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CFLAGS) -c -o $@ $< -fno-inline-functions |
281 | ||
282 | inilex.o: inilex.cc | |
45e01f23 RC |
283 | @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
284 | @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ | |
285 | @AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
f6100b6f | 286 | $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ |
58ee6135 | 287 | $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CXXFLAGS) -c -o $@ $< |
f6100b6f RC |
288 | |
289 | iniparse.cc iniparse.h : iniparse.y | |
290 | bison -d -o iniparse.cc $(srcdir)/iniparse.y | |
291 | @mv iniparse.cc.h iniparse.h 2>/dev/null || mv iniparse.hh iniparse.h | |
292 | ||
293 | inilex.cc : inilex.l iniparse.h | |
294 | flex -8 $(srcdir)/inilex.l | |
295 | mv lex.yy.c inilex.cc | |
902c8a3f RC |
296 | |
297 | # Make a distribution package and tarball | |
5090e3ce RC |
298 | release: setup$(EXEEXT) dist-all $(srcdir)/ChangeLog Makefile |
299 | $(STRIP) setup.exe && \ | |
300 | upx --best setup.exe && \ | |
301 | V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \ | |
302 | | sed -e 's/\$$Revision:* *//' \ | |
303 | -e 's/ *$$.*//'` ;\ | |
304 | mv setup-0.tar.bz2 setup-${V}.tar.bz2 && \ | |
305 | tar cjf setup-${V}-1-src.tar.bz2 setup-${V}.tar.bz2 |