]> cygwin.com Git - cygwin-apps/setup.git/blame - Makefile.am
2013-01-25 Achim Gratz <Stromeko@nexgo.de>
[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
MB
26BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \
27 -Wcast-align -Wwrite-strings
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@
1e0f90f9 34AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include
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
89fc4ceb 106setup_LDADD = \
fe434e30 107 libgetopt++/libgetopt++.la -lgcrypt -lgpg-error \
ec366f61 108 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lnetapi32 -lpsapi -luuid -llzma -lbz2 -lz
10b2d051 109setup_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
f6100b6f 110setup_SOURCES = \
f9e903a3
RC
111 AntiVirus.cc \
112 AntiVirus.h \
f6100b6f 113 archive.cc \
45e01f23 114 archive.h \
f6100b6f 115 archive_tar.cc \
45e01f23 116 archive_tar.h \
f6100b6f
RC
117 archive_tar_file.cc \
118 autoload.c \
f6100b6f 119 choose.cc \
45e01f23 120 choose.h \
f6100b6f 121 compress.cc \
45e01f23 122 compress.h \
f6100b6f 123 compress_bz.cc \
45e01f23 124 compress_bz.h \
f6100b6f 125 compress_gz.cc \
45e01f23 126 compress_gz.h \
671140f9
CW
127 compress_xz.cc \
128 compress_xz.h \
39b42ff3
RC
129 ConnectionSetting.cc \
130 ConnectionSetting.h \
ee91d9be
RC
131 ControlAdjuster.cc \
132 ControlAdjuster.h \
dbfe3c19
DK
133 crypto.cc \
134 crypto.h \
135 cyg-pubkey.h \
f6100b6f 136 cygpackage.cc \
45e01f23 137 cygpackage.h \
f6100b6f 138 desktop.cc \
45e01f23 139 desktop.h \
f6100b6f 140 dialog.cc \
45e01f23 141 dialog.h \
f6100b6f 142 diskfull.cc \
45e01f23 143 diskfull.h \
f6100b6f 144 download.cc \
58ee6135
RC
145 download.h \
146 Exception.cc \
147 Exception.h \
f6100b6f 148 find.cc \
45e01f23 149 find.h \
b401ef47
RC
150 FindVisitor.cc \
151 FindVisitor.h \
f6100b6f 152 filemanip.cc \
45e01f23 153 filemanip.h \
f6100b6f 154 fromcwd.cc \
31f0ccce 155 Generic.h \
f6100b6f 156 geturl.cc \
45e01f23 157 geturl.h \
dbfe3c19
DK
158 gpg-packet.cc \
159 gpg-packet.h \
f6100b6f 160 ini.cc \
45e01f23 161 ini.h \
076654e7
RC
162 IniDBBuilder.h \
163 IniDBBuilderPackage.cc \
164 IniDBBuilderPackage.h \
c63e8b4a 165 inilex.ll \
dacb1ebd 166 iniparse.yy \
67829ce0
RC
167 IniParseFeedback.cc \
168 IniParseFeedback.h \
b401ef47
RC
169 IniParseFindVisitor.cc \
170 IniParseFindVisitor.h \
f6100b6f
RC
171 install.cc \
172 io_stream.cc \
45e01f23 173 io_stream.h \
f6100b6f 174 io_stream_cygfile.cc \
45e01f23 175 io_stream_cygfile.h \
f6100b6f 176 io_stream_file.cc \
45e01f23 177 io_stream_file.h \
f6100b6f 178 io_stream_memory.cc \
45e01f23 179 io_stream_memory.h \
19911586 180 IOStreamProvider.h \
dbfe3c19
DK
181 KeysSetting.cc \
182 KeysSetting.h \
f6100b6f 183 localdir.cc \
45e01f23 184 localdir.h \
9f4a0c62
RC
185 LogFile.cc \
186 LogFile.h \
187 LogSingleton.cc \
188 LogSingleton.h \
f6100b6f 189 main.cc \
f6100b6f 190 mkdir.cc \
45e01f23 191 mkdir.h \
f6100b6f 192 mklink2.cc \
45e01f23 193 mklink2.h \
f6100b6f 194 mount.cc \
45e01f23 195 mount.h \
f6100b6f 196 msg.cc \
45e01f23 197 msg.h \
f6100b6f 198 net.cc \
45e01f23 199 net.h \
f6100b6f 200 netio.cc \
45e01f23 201 netio.h \
f6100b6f 202 nio-ie5.cc \
45e01f23 203 nio-ie5.h \
f6100b6f 204 nio-file.cc \
45e01f23 205 nio-file.h \
f6100b6f 206 nio-ftp.cc \
45e01f23 207 nio-ftp.h \
f6100b6f 208 nio-http.cc \
45e01f23 209 nio-http.h \
f6100b6f 210 package_db.cc \
45e01f23 211 package_db.h \
f6100b6f 212 package_meta.cc \
45e01f23 213 package_meta.h \
f6100b6f 214 package_source.cc \
45e01f23 215 package_source.h \
f6100b6f 216 package_version.cc \
45e01f23 217 package_version.h \
aa1e3b4d
RC
218 PackageSpecification.cc \
219 PackageSpecification.h \
076654e7 220 PackageTrust.h \
f6100b6f 221 PickCategoryLine.cc \
45e01f23 222 PickCategoryLine.h \
45e01f23 223 PickLine.h \
f6100b6f 224 PickPackageLine.cc \
45e01f23 225 PickPackageLine.h \
f6100b6f 226 PickView.cc \
45e01f23 227 PickView.h \
f6100b6f 228 postinstall.cc \
018b960d
JT
229 postinstallresults.cc \
230 postinstallresults.h \
82306ac2
BD
231 prereq.cc \
232 prereq.h \
ec366f61
JT
233 processlist.cc \
234 processlist.h \
f6100b6f 235 proppage.cc \
45e01f23 236 proppage.h \
f6100b6f 237 propsheet.cc \
45e01f23 238 propsheet.h \
8a264069 239 RECTWrapper.h \
f6100b6f 240 res.rc \
45e01f23 241 resource.h \
f6100b6f 242 root.cc \
45e01f23 243 root.h \
b401ef47
RC
244 ScanFindVisitor.cc \
245 ScanFindVisitor.h \
f6100b6f 246 script.cc \
45e01f23 247 script.h \
2b734ec7 248 setup_version.h \
f6100b6f
RC
249 setup_version.c \
250 simpsock.cc \
45e01f23 251 simpsock.h \
f6100b6f 252 site.cc \
45e01f23 253 site.h \
f6100b6f 254 source.cc \
45e01f23 255 source.h \
6ff96351
RC
256 SourceSetting.cc \
257 SourceSetting.h \
f6100b6f 258 splash.cc \
45e01f23 259 splash.h \
f6100b6f 260 state.cc \
45e01f23 261 state.h \
f6100b6f 262 String++.cc \
45e01f23 263 String++.h \
f6100b6f 264 threebar.cc \
45e01f23 265 threebar.h \
ead15931
RC
266 UserSettings.cc \
267 UserSettings.h \
5072c0bb 268 win32.cc \
45e01f23
RC
269 win32.h \
270 window.cc \
f4d80c3f 271 window.h \
0229b1d7
MB
272 csu_util/MD5Sum.cc \
273 csu_util/MD5Sum.h \
946198be
MB
274 csu_util/rfc1738.cc \
275 csu_util/rfc1738.h \
2b734ec7 276 csu_util/version_compare.cc \
8b57c909 277 csu_util/version_compare.h
89fc4ceb 278
10b2d051
YS
279# autoload code does not optimize properly with gcc-4.x
280autoload.o: CFLAGS += -O0
281
b941c8be
BD
282VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
283 $(srcdir)/ChangeLog)
284
f6100b6f 285setup_version.c : $(srcdir)/ChangeLog Makefile
e07b6f3d 286 $(AM_V_GEN)(echo '#define VERSION_PREFIX "%%% setup-version"';\
b941c8be 287 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
e07b6f3d 288 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp && \
f6100b6f
RC
289 mv version.tmp setup_version.c
290
92ef6cf8 291.rc.o:
e07b6f3d 292 $(AM_V_GEN)$(WINDRES) --include-dir $(srcdir) -o $@ $<
f6100b6f 293
a3cc7986
CF
294# static const char version_store[] = VERSION_PREFIX " 2.686";
295setup-src:
296 @ver=setup-$$(sed -n 's/^static const char version_store.* VERSION_PREFIX " \([^"]*\)".*$$/\1/p' setup_version.c);\
297 cd ${srcdir};\
298 rm -f $$ver;\
299 ln -sf . $$ver;\
300 cvs status -R | sed -n "s%^ *Repository revision:.*/cvs/cygwin-apps/setup/\(.*\),v%$$ver/\1%p" |\
644ca185
CF
301 sort | tar -T - -cjf ${CURDIR}/$$ver-src.tar.bz2;\
302 echo $$ver-src.tar.bz2; exec rm -f $$ver
a3cc7986 303
This page took 0.083553 seconds and 5 git commands to generate.