]> cygwin.com Git - cygwin-apps/setup.git/blame - Makefile.am
2005-05-14 Max Bowsher <maxb@ukf.net>
[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
48c7d667 21AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.6 foreign
e76de0f5
MB
22DIST_SUBDIRS = libgetopt++ tests
23SUBDIRS = libgetopt++ tests
f6100b6f
RC
24
25## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
26
8b726ef6
MB
27# We would like to use -Winline for C++ as well, but some STL code triggers
28# this warning. (Bug verified present in gcc-3.3)
fc2ba841
MB
29BASECXXFLAGS = -Wall -Wpointer-arith -Wcomments -Wcast-align -Wwrite-strings
30AM_CXXFLAGS = -Werror $(BASECXXFLAGS)
d3c2a043
MB
31AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
32 -Wstrict-prototypes -Wmissing-prototypes
f6100b6f
RC
33
34WINDRES := @WINDRES@
35
e76de0f5 36INCLUDES = -I$(srcdir)/libgetopt++/include -I/usr/include/mingw
f6100b6f 37
58ee6135 38noinst_PROGRAMS = \
19911586
RC
39 setup \
40 @INILINT@
58ee6135
RC
41
42EXTRA_PROGRAMS = inilint
19911586 43## noinst_PROGRAMS +=inilint
f6100b6f 44
45e01f23 45EXTRA_DIST = \
042d83f9
MB
46 CHANGES \
47 CONTRIBUTORS \
48 bootstrap.sh \
45e01f23
RC
49 check-na.bmp \
50 check-no.bmp \
51 check-yes.bmp \
52 choose-rtarrow.bmp \
53 choose-spin.bmp \
54 cygwin.ico \
55 inilex.l \
042d83f9
MB
56 iniparse.y \
57 libmd5-rfc/README \
58 libmd5-rfc/md5main.c \
59 setup.exe.manifest
45e01f23 60
f6100b6f
RC
61BUILT_SOURCES = setup_version.c \
62 inilex.cc \
63 iniparse.cc
64
2b48ecd0
RC
65if MINGWTARGET
66 inilint_extras = \
67 autoload.c \
2b48ecd0
RC
68 mklink2.cc
69else
70 inilint_extras =
71endif
72
4361306f 73inilint_LDADD = libgetopt++/libgetopt++.la -luser32 -lkernel32
58ee6135 74inilint_SOURCES = \
b92028a4
RC
75 filemanip.cc \
76 filemanip.h \
aa1e3b4d
RC
77 find.cc \
78 find.h \
79 FindVisitor.cc \
80 FindVisitor.h \
9f4a0c62
RC
81 LogSingleton.cc \
82 LogSingleton.h \
076654e7
RC
83 IniDBBuilder.cc \
84 IniDBBuilder.h \
58ee6135
RC
85 inilex.cc \
86 inilintmain.cc \
87 iniparse.cc \
88 iniparse.h \
aa1e3b4d
RC
89 IniParseFeedback.cc \
90 IniParseFeedback.h \
076654e7
RC
91 io_stream.h \
92 io_stream.cc \
2b48ecd0
RC
93 io_stream_file.h \
94 io_stream_file.cc \
19911586 95 IOStreamProvider.h \
aa1e3b4d
RC
96 mkdir.cc \
97 mkdir.h \
84c4f5d1
RC
98 PackageSpecification.cc \
99 PackageSpecification.h \
076654e7 100 PackageTrust.h \
042d83f9
MB
101 csu_util/rfc1738.cc \
102 csu_util/rfc1738.h \
58ee6135 103 String++.cc \
2b48ecd0
RC
104 String++.h \
105 $(inilint_extras)
58ee6135 106
fc2ba841
MB
107# Obviously we are not really building a program called warnonly
108# However, this dance was the most non-invasive way I could find
109# of varying CFLAGS for a single file
110EXTRA_PROGRAMS += warnonly
111warnonly_CXXFLAGS = $(BASECXXFLAGS)
112warnonly_SOURCES = inilex.cc
113EXTRA_setup_SOURCES = $(warnonly_SOURCES)
114
115setup_LDADD = warnonly-inilex.o res.o \
e76de0f5
MB
116 libgetopt++/libgetopt++.la \
117 /usr/lib/mingw/libbz2.a \
118 /usr/lib/mingw/libz.a \
4361306f 119 -luser32 -lkernel32 \
b401ef47 120 -lcomctl32 -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid
58ee6135 121setup_LDFLAGS = -mwindows
f6100b6f 122setup_SOURCES = \
f9e903a3
RC
123 AntiVirus.cc \
124 AntiVirus.h \
f6100b6f 125 archive.cc \
45e01f23 126 archive.h \
f6100b6f 127 archive_tar.cc \
45e01f23 128 archive_tar.h \
f6100b6f
RC
129 archive_tar_file.cc \
130 autoload.c \
131 category.cc \
45e01f23 132 category.h \
f6100b6f 133 choose.cc \
45e01f23 134 choose.h \
f6100b6f 135 compress.cc \
45e01f23 136 compress.h \
f6100b6f 137 compress_bz.cc \
45e01f23 138 compress_bz.h \
f6100b6f 139 compress_gz.cc \
45e01f23 140 compress_gz.h \
39b42ff3
RC
141 ConnectionSetting.cc \
142 ConnectionSetting.h \
ee91d9be
RC
143 ControlAdjuster.cc \
144 ControlAdjuster.h \
f6100b6f 145 cygpackage.cc \
45e01f23 146 cygpackage.h \
f6100b6f 147 desktop.cc \
45e01f23 148 desktop.h \
f6100b6f 149 dialog.cc \
45e01f23 150 dialog.h \
f6100b6f 151 diskfull.cc \
45e01f23 152 diskfull.h \
f6100b6f 153 download.cc \
58ee6135
RC
154 download.h \
155 Exception.cc \
156 Exception.h \
f6100b6f 157 find.cc \
45e01f23 158 find.h \
b401ef47
RC
159 FindVisitor.cc \
160 FindVisitor.h \
f6100b6f 161 filemanip.cc \
45e01f23 162 filemanip.h \
f6100b6f 163 fromcwd.cc \
31f0ccce 164 Generic.h \
f6100b6f 165 geturl.cc \
45e01f23 166 geturl.h \
f6100b6f 167 ini.cc \
45e01f23 168 ini.h \
076654e7
RC
169 IniDBBuilder.cc \
170 IniDBBuilder.h \
171 IniDBBuilderPackage.cc \
172 IniDBBuilderPackage.h \
f6100b6f
RC
173 iniparse.cc \
174 iniparse.h \
67829ce0
RC
175 IniParseFeedback.cc \
176 IniParseFeedback.h \
b401ef47
RC
177 IniParseFindVisitor.cc \
178 IniParseFindVisitor.h \
f6100b6f
RC
179 install.cc \
180 io_stream.cc \
45e01f23 181 io_stream.h \
f6100b6f 182 io_stream_cygfile.cc \
45e01f23 183 io_stream_cygfile.h \
f6100b6f 184 io_stream_file.cc \
45e01f23 185 io_stream_file.h \
f6100b6f 186 io_stream_memory.cc \
45e01f23 187 io_stream_memory.h \
19911586 188 IOStreamProvider.h \
f6100b6f 189 localdir.cc \
45e01f23 190 localdir.h \
9f4a0c62
RC
191 LogFile.cc \
192 LogFile.h \
193 LogSingleton.cc \
194 LogSingleton.h \
f6100b6f 195 main.cc \
f6100b6f 196 mkdir.cc \
45e01f23 197 mkdir.h \
f6100b6f 198 mklink2.cc \
45e01f23 199 mklink2.h \
f6100b6f 200 mount.cc \
45e01f23 201 mount.h \
f6100b6f 202 msg.cc \
45e01f23 203 msg.h \
f6100b6f 204 net.cc \
45e01f23 205 net.h \
f6100b6f 206 netio.cc \
45e01f23 207 netio.h \
f6100b6f 208 nio-ie5.cc \
45e01f23 209 nio-ie5.h \
f6100b6f 210 nio-file.cc \
45e01f23 211 nio-file.h \
f6100b6f 212 nio-ftp.cc \
45e01f23 213 nio-ftp.h \
f6100b6f 214 nio-http.cc \
45e01f23 215 nio-http.h \
f6100b6f 216 package_db.cc \
45e01f23 217 package_db.h \
f6100b6f 218 package_meta.cc \
45e01f23 219 package_meta.h \
f6100b6f 220 package_source.cc \
45e01f23 221 package_source.h \
f6100b6f 222 package_version.cc \
45e01f23 223 package_version.h \
aa1e3b4d
RC
224 PackageSpecification.cc \
225 PackageSpecification.h \
076654e7 226 PackageTrust.h \
f6100b6f 227 PickCategoryLine.cc \
45e01f23 228 PickCategoryLine.h \
45e01f23 229 PickLine.h \
f6100b6f 230 PickPackageLine.cc \
45e01f23 231 PickPackageLine.h \
f6100b6f 232 PickView.cc \
45e01f23 233 PickView.h \
f6100b6f
RC
234 postinstall.cc \
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 UserSetting.cc \
267 UserSetting.h \
268 UserSettings.cc \
269 UserSettings.h \
45e01f23
RC
270 win32.h \
271 window.cc \
f4d80c3f 272 window.h \
0229b1d7
MB
273 csu_util/MD5Sum.cc \
274 csu_util/MD5Sum.h \
946198be
MB
275 csu_util/rfc1738.cc \
276 csu_util/rfc1738.h \
2b734ec7
MB
277 csu_util/version_compare.cc \
278 csu_util/version_compare.h \
f4d80c3f
MB
279 libmd5-rfc/md5.c \
280 libmd5-rfc/md5.h
f6100b6f
RC
281
282setup_version.c : $(srcdir)/ChangeLog Makefile
84b9cc5e 283 V=`sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
012374fe 284 $(srcdir)/ChangeLog` ;\
f6100b6f
RC
285 (echo '#define VERSION_PREFIX "%%% setup-version"';\
286 echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\
2b734ec7 287 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\
f6100b6f
RC
288 mv version.tmp setup_version.c
289
290%.o: %.rc
4361306f 291 $(WINDRES) --preprocessor "$(CC) -E -xc-header -DRC_INVOKED" --include-dir $(srcdir) -o $@ $<
f6100b6f 292
f6100b6f
RC
293iniparse.cc iniparse.h : iniparse.y
294 bison -d -o iniparse.cc $(srcdir)/iniparse.y
295 @mv iniparse.cc.h iniparse.h 2>/dev/null || mv iniparse.hh iniparse.h
296
297inilex.cc : inilex.l iniparse.h
298 flex -8 $(srcdir)/inilex.l
299 mv lex.yy.c inilex.cc
902c8a3f
RC
300
301# Make a distribution package and tarball
5090e3ce
RC
302release: setup$(EXEEXT) dist-all $(srcdir)/ChangeLog Makefile
303 $(STRIP) setup.exe && \
304 upx --best setup.exe && \
84b9cc5e 305 V=`sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
012374fe 306 $(srcdir)/ChangeLog` ;\
4849e2fc 307 mv setup.exe setup-$${V}.exe && \
7cb35117
RC
308 mv setup-0.tar.bz2 setup-$${V}.tar.bz2 && \
309 tar cjf setup-$${V}-1-src.tar.bz2 setup-$${V}.tar.bz2
7d702af3
RC
310
311# Create a snapshot and upload it (requires write access)
312snapshot: release
84b9cc5e 313 V=`sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
012374fe 314 $(srcdir)/ChangeLog` ;\
7d702af3 315 scp -C setup-$${V}.exe setup-$${V}.tar.bz2 $${cygwinsite}:setup-snapshots/
This page took 0.075116 seconds and 5 git commands to generate.