]> cygwin.com Git - cygwin-apps/setup.git/blame - Makefile.am
* ini.h (SETUP_BZ2_FILENAME): Reflect new architecture layout in ftp.
[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
e49fef4d 36noinst_PROGRAMS = @SETUP@$(EXEEXT) @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 52 setup.exe.manifest \
2258d2a1 53 setup64.exe.manifest \
89fc4ceb
MB
54 tree-minus.bmp \
55 tree-plus.bmp
45e01f23 56
443b9db6 57# iniparse.hh is generated from iniparse.yy via bison -d, so it needs to be
dacb1ebd
BD
58# included here for proper tracking (but not iniparse.cc, since automake
59# knows about that already)
89fc4ceb
MB
60BUILT_SOURCES = \
61 setup_version.c \
443b9db6 62 iniparse.hh
f6100b6f 63
92ef6cf8
BD
64CLEANFILES = setup_version.c
65
89fc4ceb 66inilint_LDADD = \
c63e8b4a 67 libgetopt++/libgetopt++.la
58ee6135 68inilint_SOURCES = \
89fc4ceb
MB
69 filemanip.cc \
70 filemanip.h \
71 find.cc \
72 find.h \
73 FindVisitor.cc \
74 FindVisitor.h \
75 LogSingleton.cc \
76 LogSingleton.h \
77 IniDBBuilder.h \
78 inilintmain.cc \
c63e8b4a 79 inilex.ll \
dacb1ebd 80 iniparse.yy \
89fc4ceb
MB
81 IniParseFeedback.cc \
82 IniParseFeedback.h \
83 io_stream.h \
84 io_stream.cc \
85 io_stream_file.h \
86 io_stream_file.cc \
87 IOStreamProvider.h \
88 mkdir.cc \
89 mkdir.h \
e49fef4d 90 mklink2.cc \
89fc4ceb
MB
91 PackageSpecification.cc \
92 PackageSpecification.h \
93 PackageTrust.h \
94 csu_util/rfc1738.cc \
95 csu_util/rfc1738.h \
96 String++.cc \
e49fef4d 97 String++.h
58ee6135 98
e49fef4d 99@SETUP@_LDADD = \
e581419c 100 libgetopt++/libgetopt++.la -lgcrypt -lgpg-error -llzma -lbz2 -lz \
e49fef4d
YS
101 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lpsapi -luuid -lntdll -lwininet -lmingw32
102@SETUP@_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
103@SETUP@_SOURCES = \
f9e903a3
RC
104 AntiVirus.cc \
105 AntiVirus.h \
f6100b6f 106 archive.cc \
45e01f23 107 archive.h \
f6100b6f 108 archive_tar.cc \
45e01f23 109 archive_tar.h \
f6100b6f 110 archive_tar_file.cc \
f6100b6f 111 choose.cc \
45e01f23 112 choose.h \
f6100b6f 113 compress.cc \
45e01f23 114 compress.h \
f6100b6f 115 compress_bz.cc \
45e01f23 116 compress_bz.h \
f6100b6f 117 compress_gz.cc \
45e01f23 118 compress_gz.h \
671140f9
CW
119 compress_xz.cc \
120 compress_xz.h \
39b42ff3
RC
121 ConnectionSetting.cc \
122 ConnectionSetting.h \
ee91d9be
RC
123 ControlAdjuster.cc \
124 ControlAdjuster.h \
dbfe3c19
DK
125 crypto.cc \
126 crypto.h \
127 cyg-pubkey.h \
f6100b6f 128 cygpackage.cc \
45e01f23 129 cygpackage.h \
f6100b6f 130 desktop.cc \
45e01f23 131 desktop.h \
f6100b6f 132 dialog.cc \
45e01f23 133 dialog.h \
f6100b6f 134 diskfull.cc \
45e01f23 135 diskfull.h \
f6100b6f 136 download.cc \
58ee6135
RC
137 download.h \
138 Exception.cc \
139 Exception.h \
f6100b6f 140 find.cc \
45e01f23 141 find.h \
b401ef47
RC
142 FindVisitor.cc \
143 FindVisitor.h \
f6100b6f 144 filemanip.cc \
45e01f23 145 filemanip.h \
f6100b6f 146 fromcwd.cc \
31f0ccce 147 Generic.h \
f6100b6f 148 geturl.cc \
45e01f23 149 geturl.h \
dbfe3c19
DK
150 gpg-packet.cc \
151 gpg-packet.h \
f6100b6f 152 ini.cc \
45e01f23 153 ini.h \
076654e7
RC
154 IniDBBuilder.h \
155 IniDBBuilderPackage.cc \
156 IniDBBuilderPackage.h \
c63e8b4a 157 inilex.ll \
dacb1ebd 158 iniparse.yy \
67829ce0
RC
159 IniParseFeedback.cc \
160 IniParseFeedback.h \
b401ef47
RC
161 IniParseFindVisitor.cc \
162 IniParseFindVisitor.h \
f6100b6f
RC
163 install.cc \
164 io_stream.cc \
45e01f23 165 io_stream.h \
f6100b6f 166 io_stream_cygfile.cc \
45e01f23 167 io_stream_cygfile.h \
f6100b6f 168 io_stream_file.cc \
45e01f23 169 io_stream_file.h \
f6100b6f 170 io_stream_memory.cc \
45e01f23 171 io_stream_memory.h \
19911586 172 IOStreamProvider.h \
dbfe3c19
DK
173 KeysSetting.cc \
174 KeysSetting.h \
f6100b6f 175 localdir.cc \
45e01f23 176 localdir.h \
9f4a0c62
RC
177 LogFile.cc \
178 LogFile.h \
179 LogSingleton.cc \
180 LogSingleton.h \
f6100b6f 181 main.cc \
f6100b6f 182 mkdir.cc \
45e01f23 183 mkdir.h \
f6100b6f 184 mklink2.cc \
45e01f23 185 mklink2.h \
f6100b6f 186 mount.cc \
45e01f23 187 mount.h \
f6100b6f 188 msg.cc \
45e01f23 189 msg.h \
f6100b6f 190 net.cc \
45e01f23 191 net.h \
f6100b6f 192 netio.cc \
45e01f23 193 netio.h \
f6100b6f 194 nio-ie5.cc \
45e01f23 195 nio-ie5.h \
f6100b6f 196 nio-file.cc \
45e01f23 197 nio-file.h \
f6100b6f 198 nio-ftp.cc \
45e01f23 199 nio-ftp.h \
f6100b6f 200 nio-http.cc \
45e01f23 201 nio-http.h \
f6100b6f 202 package_db.cc \
45e01f23 203 package_db.h \
f6100b6f 204 package_meta.cc \
45e01f23 205 package_meta.h \
f6100b6f 206 package_source.cc \
45e01f23 207 package_source.h \
f6100b6f 208 package_version.cc \
45e01f23 209 package_version.h \
aa1e3b4d
RC
210 PackageSpecification.cc \
211 PackageSpecification.h \
076654e7 212 PackageTrust.h \
f6100b6f 213 PickCategoryLine.cc \
45e01f23 214 PickCategoryLine.h \
45e01f23 215 PickLine.h \
f6100b6f 216 PickPackageLine.cc \
45e01f23 217 PickPackageLine.h \
f6100b6f 218 PickView.cc \
45e01f23 219 PickView.h \
f6100b6f 220 postinstall.cc \
018b960d
JT
221 postinstallresults.cc \
222 postinstallresults.h \
82306ac2
BD
223 prereq.cc \
224 prereq.h \
ec366f61
JT
225 processlist.cc \
226 processlist.h \
f6100b6f 227 proppage.cc \
45e01f23 228 proppage.h \
f6100b6f 229 propsheet.cc \
45e01f23 230 propsheet.h \
8a264069 231 RECTWrapper.h \
f6100b6f 232 res.rc \
45e01f23 233 resource.h \
f6100b6f 234 root.cc \
45e01f23 235 root.h \
b401ef47
RC
236 ScanFindVisitor.cc \
237 ScanFindVisitor.h \
f6100b6f 238 script.cc \
45e01f23 239 script.h \
2b734ec7 240 setup_version.h \
f6100b6f
RC
241 setup_version.c \
242 simpsock.cc \
45e01f23 243 simpsock.h \
f6100b6f 244 site.cc \
45e01f23 245 site.h \
f6100b6f 246 source.cc \
45e01f23 247 source.h \
6ff96351
RC
248 SourceSetting.cc \
249 SourceSetting.h \
f6100b6f 250 splash.cc \
45e01f23 251 splash.h \
f6100b6f 252 state.cc \
45e01f23 253 state.h \
f6100b6f 254 String++.cc \
45e01f23 255 String++.h \
f6100b6f 256 threebar.cc \
45e01f23 257 threebar.h \
ead15931
RC
258 UserSettings.cc \
259 UserSettings.h \
5072c0bb 260 win32.cc \
45e01f23
RC
261 win32.h \
262 window.cc \
f4d80c3f 263 window.h \
0229b1d7
MB
264 csu_util/MD5Sum.cc \
265 csu_util/MD5Sum.h \
946198be
MB
266 csu_util/rfc1738.cc \
267 csu_util/rfc1738.h \
2b734ec7 268 csu_util/version_compare.cc \
e49fef4d
YS
269 csu_util/version_compare.h \
270 regex/regex.c
89fc4ceb 271
b941c8be
BD
272VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
273 $(srcdir)/ChangeLog)
274
f6100b6f 275setup_version.c : $(srcdir)/ChangeLog Makefile
e07b6f3d 276 $(AM_V_GEN)(echo '#define VERSION_PREFIX "%%% setup-version"';\
b941c8be 277 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
e07b6f3d 278 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp && \
f6100b6f
RC
279 mv version.tmp setup_version.c
280
2ae3cf4e 281# setup.exe.manifest is included in res.rc
2258d2a1 282res.o: @SETUP@.exe.manifest
2ae3cf4e 283
92ef6cf8 284.rc.o:
e07b6f3d 285 $(AM_V_GEN)$(WINDRES) --include-dir $(srcdir) -o $@ $<
f6100b6f 286
a3cc7986
CF
287# static const char version_store[] = VERSION_PREFIX " 2.686";
288setup-src:
289 @ver=setup-$$(sed -n 's/^static const char version_store.* VERSION_PREFIX " \([^"]*\)".*$$/\1/p' setup_version.c);\
290 cd ${srcdir};\
291 rm -f $$ver;\
292 ln -sf . $$ver;\
293 cvs status -R | sed -n "s%^ *Repository revision:.*/cvs/cygwin-apps/setup/\(.*\),v%$$ver/\1%p" |\
644ca185
CF
294 sort | tar -T - -cjf ${CURDIR}/$$ver-src.tar.bz2;\
295 echo $$ver-src.tar.bz2; exec rm -f $$ver
a3cc7986 296
This page took 0.085248 seconds and 5 git commands to generate.