]> cygwin.com Git - cygwin-apps/setup.git/blame - Makefile.am
* prereq.cc (PrereqChecker::getUnmetString): Improve dependency list
[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#
f6100b6f
RC
16# Makefile for Cygwin installer
17
be6622c0
CF
18INST_SUBDIRS:=@subdirs@
19DIST_SUBDIRS:=${INST_SUBDIRS} tests
20SUBDIRS:=tests
f6100b6f
RC
21
22## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
23
8b726ef6
MB
24# We would like to use -Winline for C++ as well, but some STL code triggers
25# this warning. (Bug verified present in gcc-3.3)
aa62e0f3
BD
26# -Wno-uninitialized added to deal with g++ 3.4.4's spurious STL warnings
27# (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22207)
89fc4ceb
MB
28BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \
29 -Wcast-align -Wwrite-strings
30AM_CXXFLAGS = -Werror $(BASECXXFLAGS)
31AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
32 -Wstrict-prototypes -Wmissing-prototypes
dacb1ebd
BD
33AM_YFLAGS = -d
34AM_LFLAGS = -8
92ef6cf8 35WINDRES = @WINDRES@
1e0f90f9 36AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include
f6100b6f 37
89fc4ceb 38noinst_PROGRAMS = setup @INILINT@
58ee6135
RC
39
40EXTRA_PROGRAMS = inilint
19911586 41## noinst_PROGRAMS +=inilint
f6100b6f 42
45e01f23 43EXTRA_DIST = \
89fc4ceb
MB
44 CHANGES \
45 CONTRIBUTORS \
46 COPYING \
47 bootstrap.sh \
48 check-na.bmp \
49 check-no.bmp \
50 check-yes.bmp \
51 choose-rtarrow.bmp \
52 choose-spin.bmp \
53 cygwin.ico \
54 doconfigure \
89fc4ceb
MB
55 libmd5-rfc/README \
56 libmd5-rfc/md5main.c \
57 setup.exe.manifest \
58 tree-minus.bmp \
59 tree-plus.bmp
45e01f23 60
dacb1ebd
BD
61# iniparse.h is generated from iniparse.yy via bison -d, so it needs to be
62# included here for proper tracking (but not iniparse.cc, since automake
63# knows about that already)
89fc4ceb
MB
64BUILT_SOURCES = \
65 setup_version.c \
be6622c0
CF
66 iniparse.h \
67 ${INST_SUBDIRS}
f6100b6f 68
92ef6cf8
BD
69CLEANFILES = setup_version.c
70
2b48ecd0 71if MINGWTARGET
89fc4ceb
MB
72inilint_extras = \
73 autoload.c \
74 mklink2.cc
2b48ecd0 75else
89fc4ceb 76inilint_extras =
2b48ecd0
RC
77endif
78
89fc4ceb 79inilint_LDADD = \
dacb1ebd 80 libinilex.a libgetopt++/libgetopt++.la
58ee6135 81inilint_SOURCES = \
89fc4ceb
MB
82 filemanip.cc \
83 filemanip.h \
84 find.cc \
85 find.h \
86 FindVisitor.cc \
87 FindVisitor.h \
88 LogSingleton.cc \
89 LogSingleton.h \
90 IniDBBuilder.h \
91 inilintmain.cc \
dacb1ebd 92 iniparse.yy \
89fc4ceb
MB
93 IniParseFeedback.cc \
94 IniParseFeedback.h \
95 io_stream.h \
96 io_stream.cc \
97 io_stream_file.h \
98 io_stream_file.cc \
99 IOStreamProvider.h \
100 mkdir.cc \
101 mkdir.h \
102 PackageSpecification.cc \
103 PackageSpecification.h \
104 PackageTrust.h \
105 csu_util/rfc1738.cc \
106 csu_util/rfc1738.h \
107 String++.cc \
108 String++.h \
109 $(inilint_extras)
58ee6135 110
dacb1ebd
BD
111# workaround to allow omitting -Werror on inilex.cc.
112noinst_LIBRARIES = libinilex.a
113libinilex_a_SOURCES = inilex.ll
114libinilex_a_CXXFLAGS = $(BASECXXFLAGS)
fc2ba841 115
89fc4ceb 116setup_LDADD = \
be6622c0
CF
117 libinilex.a \
118 -Linst/lib -lgetopt++ -lgcrypt -lgpg-error \
671140f9
CW
119 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lnetapi32 -luuid -llzma -lbz2 -lz
120setup_LDFLAGS = -mwindows -Wl,-static -static-libtool-libs
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 \
671140f9
CW
138 compress_xz.cc \
139 compress_xz.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 \
018b960d
JT
239 postinstallresults.cc \
240 postinstallresults.h \
82306ac2
BD
241 prereq.cc \
242 prereq.h \
f6100b6f 243 proppage.cc \
45e01f23 244 proppage.h \
f6100b6f 245 propsheet.cc \
45e01f23 246 propsheet.h \
8a264069 247 RECTWrapper.h \
f6100b6f 248 res.rc \
45e01f23 249 resource.h \
f6100b6f 250 root.cc \
45e01f23 251 root.h \
b401ef47
RC
252 ScanFindVisitor.cc \
253 ScanFindVisitor.h \
f6100b6f 254 script.cc \
45e01f23 255 script.h \
2b734ec7 256 setup_version.h \
f6100b6f
RC
257 setup_version.c \
258 simpsock.cc \
45e01f23 259 simpsock.h \
f6100b6f 260 site.cc \
45e01f23 261 site.h \
f6100b6f 262 source.cc \
45e01f23 263 source.h \
6ff96351
RC
264 SourceSetting.cc \
265 SourceSetting.h \
f6100b6f 266 splash.cc \
45e01f23 267 splash.h \
f6100b6f 268 state.cc \
45e01f23 269 state.h \
f6100b6f 270 String++.cc \
45e01f23 271 String++.h \
f6100b6f 272 threebar.cc \
45e01f23 273 threebar.h \
ead15931
RC
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 286 libmd5-rfc/md5.c \
671140f9 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
a3cc7986
CF
301# static const char version_store[] = VERSION_PREFIX " 2.686";
302setup-src:
303 @ver=setup-$$(sed -n 's/^static const char version_store.* VERSION_PREFIX " \([^"]*\)".*$$/\1/p' setup_version.c);\
304 cd ${srcdir};\
305 rm -f $$ver;\
306 ln -sf . $$ver;\
307 cvs status -R | sed -n "s%^ *Repository revision:.*/cvs/cygwin-apps/setup/\(.*\),v%$$ver/\1%p" |\
644ca185
CF
308 sort | tar -T - -cjf ${CURDIR}/$$ver-src.tar.bz2;\
309 echo $$ver-src.tar.bz2; exec rm -f $$ver
a3cc7986 310
be6622c0
CF
311.PHONY: ${INST_SUBDIRS}
312${INST_SUBDIRS}:
313 ${MAKE} -C $@ install
This page took 0.080758 seconds and 5 git commands to generate.