]> cygwin.com Git - cygwin-apps/setup.git/blame - Makefile.am
Merged across diffs between setup_crypto_branch_branchpoint and
[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
dbfe3c19
DK
21DIST_SUBDIRS = libgetopt++ tests libgpg-error libgcrypt
22SUBDIRS = libgetopt++ tests libgpg-error libgcrypt
f6100b6f
RC
23
24## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
25
8b726ef6
MB
26# We would like to use -Winline for C++ as well, but some STL code triggers
27# this warning. (Bug verified present in gcc-3.3)
aa62e0f3
BD
28# -Wno-uninitialized added to deal with g++ 3.4.4's spurious STL warnings
29# (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22207)
89fc4ceb
MB
30BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \
31 -Wcast-align -Wwrite-strings
32AM_CXXFLAGS = -Werror $(BASECXXFLAGS)
33AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
34 -Wstrict-prototypes -Wmissing-prototypes
dacb1ebd
BD
35AM_YFLAGS = -d
36AM_LFLAGS = -8
92ef6cf8 37WINDRES = @WINDRES@
dbfe3c19 38AM_CPPFLAGS = -I$(srcdir)/libgetopt++/include -I$(top_builddir)/libgpg-error/src -I$(top_builddir)/libgcrypt/src -I$(srcdir)/libgcrypt/src
f6100b6f 39
89fc4ceb 40noinst_PROGRAMS = setup @INILINT@
58ee6135
RC
41
42EXTRA_PROGRAMS = inilint
19911586 43## noinst_PROGRAMS +=inilint
f6100b6f 44
45e01f23 45EXTRA_DIST = \
89fc4ceb
MB
46 CHANGES \
47 CONTRIBUTORS \
48 COPYING \
49 bootstrap.sh \
50 check-na.bmp \
51 check-no.bmp \
52 check-yes.bmp \
53 choose-rtarrow.bmp \
54 choose-spin.bmp \
55 cygwin.ico \
56 doconfigure \
89fc4ceb
MB
57 libmd5-rfc/README \
58 libmd5-rfc/md5main.c \
59 setup.exe.manifest \
60 tree-minus.bmp \
61 tree-plus.bmp
45e01f23 62
dacb1ebd
BD
63# iniparse.h is generated from iniparse.yy via bison -d, so it needs to be
64# included here for proper tracking (but not iniparse.cc, since automake
65# knows about that already)
89fc4ceb
MB
66BUILT_SOURCES = \
67 setup_version.c \
dacb1ebd 68 iniparse.h
f6100b6f 69
92ef6cf8
BD
70CLEANFILES = setup_version.c
71
2b48ecd0 72if MINGWTARGET
89fc4ceb
MB
73inilint_extras = \
74 autoload.c \
75 mklink2.cc
2b48ecd0 76else
89fc4ceb 77inilint_extras =
2b48ecd0
RC
78endif
79
89fc4ceb 80inilint_LDADD = \
dacb1ebd 81 libinilex.a libgetopt++/libgetopt++.la
58ee6135 82inilint_SOURCES = \
89fc4ceb
MB
83 filemanip.cc \
84 filemanip.h \
85 find.cc \
86 find.h \
87 FindVisitor.cc \
88 FindVisitor.h \
89 LogSingleton.cc \
90 LogSingleton.h \
91 IniDBBuilder.h \
92 inilintmain.cc \
dacb1ebd 93 iniparse.yy \
89fc4ceb
MB
94 IniParseFeedback.cc \
95 IniParseFeedback.h \
96 io_stream.h \
97 io_stream.cc \
98 io_stream_file.h \
99 io_stream_file.cc \
100 IOStreamProvider.h \
101 mkdir.cc \
102 mkdir.h \
103 PackageSpecification.cc \
104 PackageSpecification.h \
105 PackageTrust.h \
106 csu_util/rfc1738.cc \
107 csu_util/rfc1738.h \
108 String++.cc \
109 String++.h \
110 $(inilint_extras)
58ee6135 111
dacb1ebd
BD
112# workaround to allow omitting -Werror on inilex.cc.
113noinst_LIBRARIES = libinilex.a
114libinilex_a_SOURCES = inilex.ll
115libinilex_a_CXXFLAGS = $(BASECXXFLAGS)
fc2ba841 116
89fc4ceb 117setup_LDADD = \
9d44d4f7 118 libinilex.a libgetopt++/libgetopt++.la res.o \
dbfe3c19
DK
119 libgcrypt/src/.libs/libgcrypt.a \
120 libgpg-error/src/.libs/libgpg-error.a \
9d44d4f7
BD
121 -lcomctl32 -lole32 -lwsock32 -lnetapi32 -luuid -lbz2 -lz
122setup_LDFLAGS = -mwindows -Wl,-static
f6100b6f 123setup_SOURCES = \
f9e903a3
RC
124 AntiVirus.cc \
125 AntiVirus.h \
f6100b6f 126 archive.cc \
45e01f23 127 archive.h \
f6100b6f 128 archive_tar.cc \
45e01f23 129 archive_tar.h \
f6100b6f
RC
130 archive_tar_file.cc \
131 autoload.c \
f6100b6f 132 choose.cc \
45e01f23 133 choose.h \
f6100b6f 134 compress.cc \
45e01f23 135 compress.h \
f6100b6f 136 compress_bz.cc \
45e01f23 137 compress_bz.h \
f6100b6f 138 compress_gz.cc \
45e01f23 139 compress_gz.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 UserSetting.cc \
273 UserSetting.h \
274 UserSettings.cc \
275 UserSettings.h \
5072c0bb 276 win32.cc \
45e01f23
RC
277 win32.h \
278 window.cc \
f4d80c3f 279 window.h \
0229b1d7
MB
280 csu_util/MD5Sum.cc \
281 csu_util/MD5Sum.h \
946198be
MB
282 csu_util/rfc1738.cc \
283 csu_util/rfc1738.h \
2b734ec7
MB
284 csu_util/version_compare.cc \
285 csu_util/version_compare.h \
f4d80c3f
MB
286 libmd5-rfc/md5.c \
287 libmd5-rfc/md5.h
89fc4ceb 288
b941c8be
BD
289VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
290 $(srcdir)/ChangeLog)
291
f6100b6f 292setup_version.c : $(srcdir)/ChangeLog Makefile
f6100b6f 293 (echo '#define VERSION_PREFIX "%%% setup-version"';\
b941c8be
BD
294 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
295 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp
f6100b6f
RC
296 mv version.tmp setup_version.c
297
92ef6cf8 298.rc.o:
b941c8be 299 $(WINDRES) --include-dir $(srcdir) -o $@ $<
f6100b6f 300
b941c8be
BD
301# this target creates:
302# setup-x.yyy.exe (UPXed stripped exe)
303# setup-debug-x.yyy.exe.gz (gzipped unstripped exe)
304# setup-x.yyy.tar.bz2 (source)
5d98166b 305release: setup.exe $(srcdir)/ChangeLog Makefile
b941c8be 306 $(MAKE) dist-bzip2 distdir=setup-${VER}
60dfa7aa
BD
307 cp -pf setup.exe setup-debug-${VER}.exe
308 gzip -f9 setup-debug-${VER}.exe
309 cp -pf setup.exe setup-${VER}.exe
5d98166b
BD
310 $(STRIP) setup-${VER}.exe
311 upx --best setup-${VER}.exe
7d702af3
RC
312
313# Create a snapshot and upload it (requires write access)
314snapshot: release
5d98166b 315 scp -C setup-${VER}.exe setup-debug-${VER}.exe.gz setup-${VER}.tar.bz2 \
09aa7d89 316 $${cygwinsite:-cygwin.com}:setup-snapshots/
This page took 0.076907 seconds and 5 git commands to generate.