]> cygwin.com Git - cygwin-apps/setup.git/blame - Makefile.am
* Makefile.am (res.o): Add rule to force rebuild upon change
[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
fe434e30 18SUBDIRS := @subdirs@ tests
f6100b6f
RC
19
20## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
21
8b726ef6
MB
22# We would like to use -Winline for C++ as well, but some STL code triggers
23# this warning. (Bug verified present in gcc-3.3)
aa62e0f3
BD
24# -Wno-uninitialized added to deal with g++ 3.4.4's spurious STL warnings
25# (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22207)
89fc4ceb 26BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \
01d90158 27 -Wcast-align -Wwrite-strings -fno-builtin-sscanf
89fc4ceb
MB
28AM_CXXFLAGS = -Werror $(BASECXXFLAGS)
29AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
30 -Wstrict-prototypes -Wmissing-prototypes
dacb1ebd
BD
31AM_YFLAGS = -d
32AM_LFLAGS = -8
92ef6cf8 33WINDRES = @WINDRES@
01d90158 34AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include -I${srcdir}/regex
f6100b6f 35
89fc4ceb 36noinst_PROGRAMS = setup @INILINT@
58ee6135
RC
37
38EXTRA_PROGRAMS = inilint
19911586 39## noinst_PROGRAMS +=inilint
f6100b6f 40
45e01f23 41EXTRA_DIST = \
89fc4ceb
MB
42 CHANGES \
43 CONTRIBUTORS \
44 COPYING \
45 bootstrap.sh \
46 check-na.bmp \
47 check-no.bmp \
48 check-yes.bmp \
49 choose-rtarrow.bmp \
50 choose-spin.bmp \
51 cygwin.ico \
89fc4ceb
MB
52 setup.exe.manifest \
53 tree-minus.bmp \
54 tree-plus.bmp
45e01f23 55
443b9db6 56# iniparse.hh is generated from iniparse.yy via bison -d, so it needs to be
dacb1ebd
BD
57# included here for proper tracking (but not iniparse.cc, since automake
58# knows about that already)
89fc4ceb
MB
59BUILT_SOURCES = \
60 setup_version.c \
443b9db6 61 iniparse.hh
f6100b6f 62
92ef6cf8
BD
63CLEANFILES = setup_version.c
64
2b48ecd0 65if MINGWTARGET
89fc4ceb
MB
66inilint_extras = \
67 autoload.c \
68 mklink2.cc
2b48ecd0 69else
89fc4ceb 70inilint_extras =
2b48ecd0
RC
71endif
72
89fc4ceb 73inilint_LDADD = \
c63e8b4a 74 libgetopt++/libgetopt++.la
58ee6135 75inilint_SOURCES = \
89fc4ceb
MB
76 filemanip.cc \
77 filemanip.h \
78 find.cc \
79 find.h \
80 FindVisitor.cc \
81 FindVisitor.h \
82 LogSingleton.cc \
83 LogSingleton.h \
84 IniDBBuilder.h \
85 inilintmain.cc \
c63e8b4a 86 inilex.ll \
dacb1ebd 87 iniparse.yy \
89fc4ceb
MB
88 IniParseFeedback.cc \
89 IniParseFeedback.h \
90 io_stream.h \
91 io_stream.cc \
92 io_stream_file.h \
93 io_stream_file.cc \
94 IOStreamProvider.h \
95 mkdir.cc \
96 mkdir.h \
97 PackageSpecification.cc \
98 PackageSpecification.h \
99 PackageTrust.h \
100 csu_util/rfc1738.cc \
101 csu_util/rfc1738.h \
102 String++.cc \
103 String++.h \
104 $(inilint_extras)
58ee6135 105
01d90158 106regex_SOURCES = regex/regex.c
89fc4ceb 107setup_LDADD = \
fe434e30 108 libgetopt++/libgetopt++.la -lgcrypt -lgpg-error \
ec366f61 109 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lnetapi32 -lpsapi -luuid -llzma -lbz2 -lz
10b2d051 110setup_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
f6100b6f 111setup_SOURCES = \
f9e903a3
RC
112 AntiVirus.cc \
113 AntiVirus.h \
f6100b6f 114 archive.cc \
45e01f23 115 archive.h \
f6100b6f 116 archive_tar.cc \
45e01f23 117 archive_tar.h \
f6100b6f
RC
118 archive_tar_file.cc \
119 autoload.c \
f6100b6f 120 choose.cc \
45e01f23 121 choose.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 \
671140f9
CW
128 compress_xz.cc \
129 compress_xz.h \
39b42ff3
RC
130 ConnectionSetting.cc \
131 ConnectionSetting.h \
ee91d9be
RC
132 ControlAdjuster.cc \
133 ControlAdjuster.h \
dbfe3c19
DK
134 crypto.cc \
135 crypto.h \
136 cyg-pubkey.h \
f6100b6f 137 cygpackage.cc \
45e01f23 138 cygpackage.h \
f6100b6f 139 desktop.cc \
45e01f23 140 desktop.h \
f6100b6f 141 dialog.cc \
45e01f23 142 dialog.h \
f6100b6f 143 diskfull.cc \
45e01f23 144 diskfull.h \
f6100b6f 145 download.cc \
58ee6135
RC
146 download.h \
147 Exception.cc \
148 Exception.h \
f6100b6f 149 find.cc \
45e01f23 150 find.h \
b401ef47
RC
151 FindVisitor.cc \
152 FindVisitor.h \
f6100b6f 153 filemanip.cc \
45e01f23 154 filemanip.h \
f6100b6f 155 fromcwd.cc \
31f0ccce 156 Generic.h \
f6100b6f 157 geturl.cc \
45e01f23 158 geturl.h \
dbfe3c19
DK
159 gpg-packet.cc \
160 gpg-packet.h \
f6100b6f 161 ini.cc \
45e01f23 162 ini.h \
076654e7
RC
163 IniDBBuilder.h \
164 IniDBBuilderPackage.cc \
165 IniDBBuilderPackage.h \
c63e8b4a 166 inilex.ll \
dacb1ebd 167 iniparse.yy \
67829ce0
RC
168 IniParseFeedback.cc \
169 IniParseFeedback.h \
b401ef47
RC
170 IniParseFindVisitor.cc \
171 IniParseFindVisitor.h \
f6100b6f
RC
172 install.cc \
173 io_stream.cc \
45e01f23 174 io_stream.h \
f6100b6f 175 io_stream_cygfile.cc \
45e01f23 176 io_stream_cygfile.h \
f6100b6f 177 io_stream_file.cc \
45e01f23 178 io_stream_file.h \
f6100b6f 179 io_stream_memory.cc \
45e01f23 180 io_stream_memory.h \
19911586 181 IOStreamProvider.h \
dbfe3c19
DK
182 KeysSetting.cc \
183 KeysSetting.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 \
018b960d
JT
230 postinstallresults.cc \
231 postinstallresults.h \
82306ac2
BD
232 prereq.cc \
233 prereq.h \
ec366f61
JT
234 processlist.cc \
235 processlist.h \
f6100b6f 236 proppage.cc \
45e01f23 237 proppage.h \
f6100b6f 238 propsheet.cc \
45e01f23 239 propsheet.h \
8a264069 240 RECTWrapper.h \
01d90158 241 ${regex_SOURCES} \
f6100b6f 242 res.rc \
45e01f23 243 resource.h \
f6100b6f 244 root.cc \
45e01f23 245 root.h \
b401ef47
RC
246 ScanFindVisitor.cc \
247 ScanFindVisitor.h \
f6100b6f 248 script.cc \
45e01f23 249 script.h \
2b734ec7 250 setup_version.h \
f6100b6f
RC
251 setup_version.c \
252 simpsock.cc \
45e01f23 253 simpsock.h \
f6100b6f 254 site.cc \
45e01f23 255 site.h \
f6100b6f 256 source.cc \
45e01f23 257 source.h \
6ff96351
RC
258 SourceSetting.cc \
259 SourceSetting.h \
f6100b6f 260 splash.cc \
45e01f23 261 splash.h \
f6100b6f 262 state.cc \
45e01f23 263 state.h \
f6100b6f 264 String++.cc \
45e01f23 265 String++.h \
f6100b6f 266 threebar.cc \
45e01f23 267 threebar.h \
ead15931
RC
268 UserSettings.cc \
269 UserSettings.h \
5072c0bb 270 win32.cc \
45e01f23
RC
271 win32.h \
272 window.cc \
f4d80c3f 273 window.h \
0229b1d7
MB
274 csu_util/MD5Sum.cc \
275 csu_util/MD5Sum.h \
946198be
MB
276 csu_util/rfc1738.cc \
277 csu_util/rfc1738.h \
2b734ec7 278 csu_util/version_compare.cc \
8b57c909 279 csu_util/version_compare.h
89fc4ceb 280
10b2d051
YS
281# autoload code does not optimize properly with gcc-4.x
282autoload.o: CFLAGS += -O0
283
b941c8be
BD
284VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
285 $(srcdir)/ChangeLog)
286
f6100b6f 287setup_version.c : $(srcdir)/ChangeLog Makefile
e07b6f3d 288 $(AM_V_GEN)(echo '#define VERSION_PREFIX "%%% setup-version"';\
b941c8be 289 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
e07b6f3d 290 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp && \
f6100b6f
RC
291 mv version.tmp setup_version.c
292
2ae3cf4e
YS
293# setup.exe.manifest is included in res.rc
294res.o: setup.exe.manifest
295
92ef6cf8 296.rc.o:
e07b6f3d 297 $(AM_V_GEN)$(WINDRES) --include-dir $(srcdir) -o $@ $<
f6100b6f 298
a3cc7986
CF
299# static const char version_store[] = VERSION_PREFIX " 2.686";
300setup-src:
301 @ver=setup-$$(sed -n 's/^static const char version_store.* VERSION_PREFIX " \([^"]*\)".*$$/\1/p' setup_version.c);\
302 cd ${srcdir};\
303 rm -f $$ver;\
304 ln -sf . $$ver;\
305 cvs status -R | sed -n "s%^ *Repository revision:.*/cvs/cygwin-apps/setup/\(.*\),v%$$ver/\1%p" |\
644ca185
CF
306 sort | tar -T - -cjf ${CURDIR}/$$ver-src.tar.bz2;\
307 echo $$ver-src.tar.bz2; exec rm -f $$ver
a3cc7986 308
This page took 0.082765 seconds and 5 git commands to generate.