]> cygwin.com Git - cygwin-apps/setup.git/blame - Makefile.am
Oops, update ChangeLog with details of additional changes accidentally
[cygwin-apps/setup.git] / Makefile.am
CommitLineData
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
48c7d667 21AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.6 foreign
e76de0f5
MB
22DIST_SUBDIRS = libgetopt++ tests
23SUBDIRS = libgetopt++ tests
f6100b6f
RC
24
25## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
26
8b726ef6
MB
27# We would like to use -Winline for C++ as well, but some STL code triggers
28# this warning. (Bug verified present in gcc-3.3)
aa62e0f3
BD
29# -Wno-uninitialized added to deal with g++ 3.4.4's spurious STL warnings
30# (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22207)
31BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \
32 -Wcast-align -Wwrite-strings
fc2ba841 33AM_CXXFLAGS = -Werror $(BASECXXFLAGS)
d3c2a043
MB
34AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
35 -Wstrict-prototypes -Wmissing-prototypes
f6100b6f
RC
36
37WINDRES := @WINDRES@
38
e76de0f5 39INCLUDES = -I$(srcdir)/libgetopt++/include -I/usr/include/mingw
f6100b6f 40
58ee6135 41noinst_PROGRAMS = \
19911586
RC
42 setup \
43 @INILINT@
58ee6135
RC
44
45EXTRA_PROGRAMS = inilint
19911586 46## noinst_PROGRAMS +=inilint
f6100b6f 47
45e01f23 48EXTRA_DIST = \
042d83f9
MB
49 CHANGES \
50 CONTRIBUTORS \
ba2559db 51 COPYING \
042d83f9 52 bootstrap.sh \
45e01f23
RC
53 check-na.bmp \
54 check-no.bmp \
55 check-yes.bmp \
56 choose-rtarrow.bmp \
57 choose-spin.bmp \
58 cygwin.ico \
be8736e4 59 doconfigure \
45e01f23 60 inilex.l \
042d83f9
MB
61 iniparse.y \
62 libmd5-rfc/README \
63 libmd5-rfc/md5main.c \
8e91c2fb
MB
64 setup.exe.manifest \
65 tree-minus.bmp \
66 tree-plus.bmp
45e01f23 67
f6100b6f
RC
68BUILT_SOURCES = setup_version.c \
69 inilex.cc \
70 iniparse.cc
71
2b48ecd0
RC
72if MINGWTARGET
73 inilint_extras = \
74 autoload.c \
2b48ecd0
RC
75 mklink2.cc
76else
77 inilint_extras =
78endif
79
86e53214 80inilint_LDADD = warnonly-inilex.o libgetopt++/libgetopt++.la -luser32 -lkernel32
58ee6135 81inilint_SOURCES = \
b92028a4
RC
82 filemanip.cc \
83 filemanip.h \
aa1e3b4d
RC
84 find.cc \
85 find.h \
86 FindVisitor.cc \
87 FindVisitor.h \
9f4a0c62
RC
88 LogSingleton.cc \
89 LogSingleton.h \
076654e7 90 IniDBBuilder.h \
58ee6135
RC
91 inilintmain.cc \
92 iniparse.cc \
93 iniparse.h \
aa1e3b4d
RC
94 IniParseFeedback.cc \
95 IniParseFeedback.h \
076654e7
RC
96 io_stream.h \
97 io_stream.cc \
2b48ecd0
RC
98 io_stream_file.h \
99 io_stream_file.cc \
19911586 100 IOStreamProvider.h \
aa1e3b4d
RC
101 mkdir.cc \
102 mkdir.h \
84c4f5d1
RC
103 PackageSpecification.cc \
104 PackageSpecification.h \
076654e7 105 PackageTrust.h \
042d83f9
MB
106 csu_util/rfc1738.cc \
107 csu_util/rfc1738.h \
58ee6135 108 String++.cc \
2b48ecd0
RC
109 String++.h \
110 $(inilint_extras)
58ee6135 111
fc2ba841
MB
112# Obviously we are not really building a program called warnonly
113# However, this dance was the most non-invasive way I could find
114# of varying CFLAGS for a single file
115EXTRA_PROGRAMS += warnonly
116warnonly_CXXFLAGS = $(BASECXXFLAGS)
117warnonly_SOURCES = inilex.cc
118EXTRA_setup_SOURCES = $(warnonly_SOURCES)
86e53214 119EXTRA_inilint_SOURCES = $(warnonly_SOURCES)
fc2ba841
MB
120
121setup_LDADD = warnonly-inilex.o res.o \
e76de0f5
MB
122 libgetopt++/libgetopt++.la \
123 /usr/lib/mingw/libbz2.a \
124 /usr/lib/mingw/libz.a \
4361306f 125 -luser32 -lkernel32 \
b401ef47 126 -lcomctl32 -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid
58ee6135 127setup_LDFLAGS = -mwindows
f6100b6f 128setup_SOURCES = \
f9e903a3
RC
129 AntiVirus.cc \
130 AntiVirus.h \
f6100b6f 131 archive.cc \
45e01f23 132 archive.h \
f6100b6f 133 archive_tar.cc \
45e01f23 134 archive_tar.h \
f6100b6f
RC
135 archive_tar_file.cc \
136 autoload.c \
f6100b6f 137 choose.cc \
45e01f23 138 choose.h \
f6100b6f 139 compress.cc \
45e01f23 140 compress.h \
f6100b6f 141 compress_bz.cc \
45e01f23 142 compress_bz.h \
f6100b6f 143 compress_gz.cc \
45e01f23 144 compress_gz.h \
39b42ff3
RC
145 ConnectionSetting.cc \
146 ConnectionSetting.h \
ee91d9be
RC
147 ControlAdjuster.cc \
148 ControlAdjuster.h \
f6100b6f 149 cygpackage.cc \
45e01f23 150 cygpackage.h \
f6100b6f 151 desktop.cc \
45e01f23 152 desktop.h \
f6100b6f 153 dialog.cc \
45e01f23 154 dialog.h \
f6100b6f 155 diskfull.cc \
45e01f23 156 diskfull.h \
f6100b6f 157 download.cc \
58ee6135
RC
158 download.h \
159 Exception.cc \
160 Exception.h \
f6100b6f 161 find.cc \
45e01f23 162 find.h \
b401ef47
RC
163 FindVisitor.cc \
164 FindVisitor.h \
f6100b6f 165 filemanip.cc \
45e01f23 166 filemanip.h \
f6100b6f 167 fromcwd.cc \
31f0ccce 168 Generic.h \
f6100b6f 169 geturl.cc \
45e01f23 170 geturl.h \
f6100b6f 171 ini.cc \
45e01f23 172 ini.h \
076654e7
RC
173 IniDBBuilder.h \
174 IniDBBuilderPackage.cc \
175 IniDBBuilderPackage.h \
f6100b6f
RC
176 iniparse.cc \
177 iniparse.h \
67829ce0
RC
178 IniParseFeedback.cc \
179 IniParseFeedback.h \
b401ef47
RC
180 IniParseFindVisitor.cc \
181 IniParseFindVisitor.h \
f6100b6f
RC
182 install.cc \
183 io_stream.cc \
45e01f23 184 io_stream.h \
f6100b6f 185 io_stream_cygfile.cc \
45e01f23 186 io_stream_cygfile.h \
f6100b6f 187 io_stream_file.cc \
45e01f23 188 io_stream_file.h \
f6100b6f 189 io_stream_memory.cc \
45e01f23 190 io_stream_memory.h \
19911586 191 IOStreamProvider.h \
f6100b6f 192 localdir.cc \
45e01f23 193 localdir.h \
9f4a0c62
RC
194 LogFile.cc \
195 LogFile.h \
196 LogSingleton.cc \
197 LogSingleton.h \
f6100b6f 198 main.cc \
f6100b6f 199 mkdir.cc \
45e01f23 200 mkdir.h \
f6100b6f 201 mklink2.cc \
45e01f23 202 mklink2.h \
f6100b6f 203 mount.cc \
45e01f23 204 mount.h \
f6100b6f 205 msg.cc \
45e01f23 206 msg.h \
f6100b6f 207 net.cc \
45e01f23 208 net.h \
f6100b6f 209 netio.cc \
45e01f23 210 netio.h \
f6100b6f 211 nio-ie5.cc \
45e01f23 212 nio-ie5.h \
f6100b6f 213 nio-file.cc \
45e01f23 214 nio-file.h \
f6100b6f 215 nio-ftp.cc \
45e01f23 216 nio-ftp.h \
f6100b6f 217 nio-http.cc \
45e01f23 218 nio-http.h \
f6100b6f 219 package_db.cc \
45e01f23 220 package_db.h \
f6100b6f 221 package_meta.cc \
45e01f23 222 package_meta.h \
f6100b6f 223 package_source.cc \
45e01f23 224 package_source.h \
f6100b6f 225 package_version.cc \
45e01f23 226 package_version.h \
aa1e3b4d
RC
227 PackageSpecification.cc \
228 PackageSpecification.h \
076654e7 229 PackageTrust.h \
f6100b6f 230 PickCategoryLine.cc \
45e01f23 231 PickCategoryLine.h \
45e01f23 232 PickLine.h \
f6100b6f 233 PickPackageLine.cc \
45e01f23 234 PickPackageLine.h \
f6100b6f 235 PickView.cc \
45e01f23 236 PickView.h \
f6100b6f 237 postinstall.cc \
82306ac2
BD
238 prereq.cc \
239 prereq.h \
f6100b6f 240 proppage.cc \
45e01f23 241 proppage.h \
f6100b6f 242 propsheet.cc \
45e01f23 243 propsheet.h \
8a264069 244 RECTWrapper.h \
f6100b6f 245 res.rc \
45e01f23 246 resource.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 \
2b734ec7 253 setup_version.h \
f6100b6f
RC
254 setup_version.c \
255 simpsock.cc \
45e01f23 256 simpsock.h \
f6100b6f 257 site.cc \
45e01f23 258 site.h \
f6100b6f 259 source.cc \
45e01f23 260 source.h \
6ff96351
RC
261 SourceSetting.cc \
262 SourceSetting.h \
f6100b6f 263 splash.cc \
45e01f23 264 splash.h \
f6100b6f 265 state.cc \
45e01f23 266 state.h \
f6100b6f 267 String++.cc \
45e01f23 268 String++.h \
f6100b6f 269 threebar.cc \
45e01f23 270 threebar.h \
ead15931
RC
271 UserSetting.cc \
272 UserSetting.h \
273 UserSettings.cc \
274 UserSettings.h \
5072c0bb 275 win32.cc \
45e01f23
RC
276 win32.h \
277 window.cc \
f4d80c3f 278 window.h \
0229b1d7
MB
279 csu_util/MD5Sum.cc \
280 csu_util/MD5Sum.h \
946198be
MB
281 csu_util/rfc1738.cc \
282 csu_util/rfc1738.h \
2b734ec7
MB
283 csu_util/version_compare.cc \
284 csu_util/version_compare.h \
f4d80c3f
MB
285 libmd5-rfc/md5.c \
286 libmd5-rfc/md5.h
f6100b6f
RC
287
288setup_version.c : $(srcdir)/ChangeLog Makefile
84b9cc5e 289 V=`sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
012374fe 290 $(srcdir)/ChangeLog` ;\
f6100b6f
RC
291 (echo '#define VERSION_PREFIX "%%% setup-version"';\
292 echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\
2b734ec7 293 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\
f6100b6f
RC
294 mv version.tmp setup_version.c
295
296%.o: %.rc
4361306f 297 $(WINDRES) --preprocessor "$(CC) -E -xc-header -DRC_INVOKED" --include-dir $(srcdir) -o $@ $<
f6100b6f 298
f6100b6f
RC
299iniparse.cc iniparse.h : iniparse.y
300 bison -d -o iniparse.cc $(srcdir)/iniparse.y
301 @mv iniparse.cc.h iniparse.h 2>/dev/null || mv iniparse.hh iniparse.h
302
303inilex.cc : inilex.l iniparse.h
304 flex -8 $(srcdir)/inilex.l
305 mv lex.yy.c inilex.cc
902c8a3f
RC
306
307# Make a distribution package and tarball
5090e3ce
RC
308release: setup$(EXEEXT) dist-all $(srcdir)/ChangeLog Makefile
309 $(STRIP) setup.exe && \
310 upx --best setup.exe && \
84b9cc5e 311 V=`sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
012374fe 312 $(srcdir)/ChangeLog` ;\
4849e2fc 313 mv setup.exe setup-$${V}.exe && \
7cb35117
RC
314 mv setup-0.tar.bz2 setup-$${V}.tar.bz2 && \
315 tar cjf setup-$${V}-1-src.tar.bz2 setup-$${V}.tar.bz2
7d702af3
RC
316
317# Create a snapshot and upload it (requires write access)
318snapshot: release
84b9cc5e 319 V=`sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
012374fe 320 $(srcdir)/ChangeLog` ;\
7d702af3 321 scp -C setup-$${V}.exe setup-$${V}.tar.bz2 $${cygwinsite}:setup-snapshots/
This page took 0.073498 seconds and 5 git commands to generate.