]> cygwin.com Git - cygwin-apps/setup.git/blame - Makefile.am
* CHANGES: Update.
[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
e76de0f5 21DIST_SUBDIRS = libgetopt++ tests
89fc4ceb 22SUBDIRS = libgetopt++ tests
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
89fc4ceb 37WINDRES := @WINDRES@
dacb1ebd 38INCLUDES = -I$(srcdir)/libgetopt++/include
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
2b48ecd0 70if MINGWTARGET
89fc4ceb
MB
71inilint_extras = \
72 autoload.c \
73 mklink2.cc
2b48ecd0 74else
89fc4ceb 75inilint_extras =
2b48ecd0
RC
76endif
77
89fc4ceb 78inilint_LDADD = \
dacb1ebd 79 libinilex.a libgetopt++/libgetopt++.la
58ee6135 80inilint_SOURCES = \
89fc4ceb
MB
81 filemanip.cc \
82 filemanip.h \
83 find.cc \
84 find.h \
85 FindVisitor.cc \
86 FindVisitor.h \
87 LogSingleton.cc \
88 LogSingleton.h \
89 IniDBBuilder.h \
90 inilintmain.cc \
dacb1ebd 91 iniparse.yy \
89fc4ceb
MB
92 IniParseFeedback.cc \
93 IniParseFeedback.h \
94 io_stream.h \
95 io_stream.cc \
96 io_stream_file.h \
97 io_stream_file.cc \
98 IOStreamProvider.h \
99 mkdir.cc \
100 mkdir.h \
101 PackageSpecification.cc \
102 PackageSpecification.h \
103 PackageTrust.h \
104 csu_util/rfc1738.cc \
105 csu_util/rfc1738.h \
106 String++.cc \
107 String++.h \
108 $(inilint_extras)
58ee6135 109
dacb1ebd
BD
110# workaround to allow omitting -Werror on inilex.cc.
111noinst_LIBRARIES = libinilex.a
112libinilex_a_SOURCES = inilex.ll
113libinilex_a_CXXFLAGS = $(BASECXXFLAGS)
fc2ba841 114
89fc4ceb 115setup_LDADD = \
dacb1ebd 116 libinilex.a libgetopt++/libgetopt++.la \
89fc4ceb
MB
117 res.o \
118 /usr/lib/mingw/libbz2.a /usr/lib/mingw/libz.a \
dacb1ebd 119 -lcomctl32 -lole32 -lwsock32 -lnetapi32 -luuid
58ee6135 120setup_LDFLAGS = -mwindows
f6100b6f 121setup_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 \
39b42ff3
RC
138 ConnectionSetting.cc \
139 ConnectionSetting.h \
ee91d9be
RC
140 ControlAdjuster.cc \
141 ControlAdjuster.h \
f6100b6f 142 cygpackage.cc \
45e01f23 143 cygpackage.h \
f6100b6f 144 desktop.cc \
45e01f23 145 desktop.h \
f6100b6f 146 dialog.cc \
45e01f23 147 dialog.h \
f6100b6f 148 diskfull.cc \
45e01f23 149 diskfull.h \
f6100b6f 150 download.cc \
58ee6135
RC
151 download.h \
152 Exception.cc \
153 Exception.h \
f6100b6f 154 find.cc \
45e01f23 155 find.h \
b401ef47
RC
156 FindVisitor.cc \
157 FindVisitor.h \
f6100b6f 158 filemanip.cc \
45e01f23 159 filemanip.h \
f6100b6f 160 fromcwd.cc \
31f0ccce 161 Generic.h \
f6100b6f 162 geturl.cc \
45e01f23 163 geturl.h \
f6100b6f 164 ini.cc \
45e01f23 165 ini.h \
076654e7
RC
166 IniDBBuilder.h \
167 IniDBBuilderPackage.cc \
168 IniDBBuilderPackage.h \
dacb1ebd 169 iniparse.yy \
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 \
f6100b6f 184 localdir.cc \
45e01f23 185 localdir.h \
9f4a0c62
RC
186 LogFile.cc \
187 LogFile.h \
188 LogSingleton.cc \
189 LogSingleton.h \
f6100b6f 190 main.cc \
f6100b6f 191 mkdir.cc \
45e01f23 192 mkdir.h \
f6100b6f 193 mklink2.cc \
45e01f23 194 mklink2.h \
f6100b6f 195 mount.cc \
45e01f23 196 mount.h \
f6100b6f 197 msg.cc \
45e01f23 198 msg.h \
f6100b6f 199 net.cc \
45e01f23 200 net.h \
f6100b6f 201 netio.cc \
45e01f23 202 netio.h \
f6100b6f 203 nio-ie5.cc \
45e01f23 204 nio-ie5.h \
f6100b6f 205 nio-file.cc \
45e01f23 206 nio-file.h \
f6100b6f 207 nio-ftp.cc \
45e01f23 208 nio-ftp.h \
f6100b6f 209 nio-http.cc \
45e01f23 210 nio-http.h \
f6100b6f 211 package_db.cc \
45e01f23 212 package_db.h \
f6100b6f 213 package_meta.cc \
45e01f23 214 package_meta.h \
f6100b6f 215 package_source.cc \
45e01f23 216 package_source.h \
f6100b6f 217 package_version.cc \
45e01f23 218 package_version.h \
aa1e3b4d
RC
219 PackageSpecification.cc \
220 PackageSpecification.h \
076654e7 221 PackageTrust.h \
f6100b6f 222 PickCategoryLine.cc \
45e01f23 223 PickCategoryLine.h \
45e01f23 224 PickLine.h \
f6100b6f 225 PickPackageLine.cc \
45e01f23 226 PickPackageLine.h \
f6100b6f 227 PickView.cc \
45e01f23 228 PickView.h \
f6100b6f 229 postinstall.cc \
82306ac2
BD
230 prereq.cc \
231 prereq.h \
f6100b6f 232 proppage.cc \
45e01f23 233 proppage.h \
f6100b6f 234 propsheet.cc \
45e01f23 235 propsheet.h \
8a264069 236 RECTWrapper.h \
f6100b6f 237 res.rc \
45e01f23 238 resource.h \
f6100b6f 239 root.cc \
45e01f23 240 root.h \
b401ef47
RC
241 ScanFindVisitor.cc \
242 ScanFindVisitor.h \
f6100b6f 243 script.cc \
45e01f23 244 script.h \
2b734ec7 245 setup_version.h \
f6100b6f
RC
246 setup_version.c \
247 simpsock.cc \
45e01f23 248 simpsock.h \
f6100b6f 249 site.cc \
45e01f23 250 site.h \
f6100b6f 251 source.cc \
45e01f23 252 source.h \
6ff96351
RC
253 SourceSetting.cc \
254 SourceSetting.h \
f6100b6f 255 splash.cc \
45e01f23 256 splash.h \
f6100b6f 257 state.cc \
45e01f23 258 state.h \
f6100b6f 259 String++.cc \
45e01f23 260 String++.h \
f6100b6f 261 threebar.cc \
45e01f23 262 threebar.h \
ead15931
RC
263 UserSetting.cc \
264 UserSetting.h \
265 UserSettings.cc \
266 UserSettings.h \
5072c0bb 267 win32.cc \
45e01f23
RC
268 win32.h \
269 window.cc \
f4d80c3f 270 window.h \
0229b1d7
MB
271 csu_util/MD5Sum.cc \
272 csu_util/MD5Sum.h \
946198be
MB
273 csu_util/rfc1738.cc \
274 csu_util/rfc1738.h \
2b734ec7
MB
275 csu_util/version_compare.cc \
276 csu_util/version_compare.h \
f4d80c3f
MB
277 libmd5-rfc/md5.c \
278 libmd5-rfc/md5.h
89fc4ceb 279
b941c8be
BD
280VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
281 $(srcdir)/ChangeLog)
282
f6100b6f 283setup_version.c : $(srcdir)/ChangeLog Makefile
f6100b6f 284 (echo '#define VERSION_PREFIX "%%% setup-version"';\
b941c8be
BD
285 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
286 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp
f6100b6f
RC
287 mv version.tmp setup_version.c
288
289%.o: %.rc
b941c8be 290 $(WINDRES) --include-dir $(srcdir) -o $@ $<
f6100b6f 291
b941c8be
BD
292# this target creates:
293# setup-x.yyy.exe (UPXed stripped exe)
294# setup-debug-x.yyy.exe.gz (gzipped unstripped exe)
295# setup-x.yyy.tar.bz2 (source)
5d98166b 296release: setup.exe $(srcdir)/ChangeLog Makefile
b941c8be 297 $(MAKE) dist-bzip2 distdir=setup-${VER}
5d98166b
BD
298 cp -p setup.exe setup-debug-${VER}.exe
299 gzip -9 setup-debug-${VER}.exe
300 cp -p setup.exe setup-${VER}.exe
301 $(STRIP) setup-${VER}.exe
302 upx --best setup-${VER}.exe
7d702af3
RC
303
304# Create a snapshot and upload it (requires write access)
305snapshot: release
5d98166b 306 scp -C setup-${VER}.exe setup-debug-${VER}.exe.gz setup-${VER}.tar.bz2 \
b941c8be 307 $${cygwinsite}:setup-snapshots/
This page took 0.076836 seconds and 5 git commands to generate.