]> cygwin.com Git - cygwin-apps/setup.git/blame - Makefile.am
2004-08-30 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
2bbf91cf 22DIST_SUBDIRS = bz2lib zlib libgetopt++ tests
24649384 23SUBDIRS = bz2lib zlib 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)
29AM_CXXFLAGS = -Werror -Wall -Wpointer-arith -Wcomments \
d3c2a043
MB
30 -Wcast-align -Wwrite-strings
31AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
32 -Wstrict-prototypes -Wmissing-prototypes
f6100b6f
RC
33
34WINDRES := @WINDRES@
35
6908b7d7 36INCLUDES = -I$(srcdir)/bz2lib -I$(srcdir)/libgetopt++/include
f6100b6f 37
58ee6135 38noinst_PROGRAMS = \
19911586
RC
39 setup \
40 @INILINT@
58ee6135
RC
41
42EXTRA_PROGRAMS = inilint
19911586 43## noinst_PROGRAMS +=inilint
f6100b6f
RC
44
45# to avoid false errors that assembly generates
46WARNONLY_CFLAGS = -Winline -Wall -Wpointer-arith -Wcast-align \
47 -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
58ee6135 48 -Wmissing-declarations -Wcomments $(INCLUDES)
f6100b6f 49
45e01f23 50EXTRA_DIST = \
3baca7c9 51 GUIDELINES \
45e01f23
RC
52 check-na.bmp \
53 check-no.bmp \
54 check-yes.bmp \
55 choose-rtarrow.bmp \
56 choose-spin.bmp \
57 cygwin.ico \
58 inilex.l \
3baca7c9 59 iniparse.y
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 \
58ee6135
RC
101 rfc1738.cc \
102 rfc1738.h \
103 String++.cc \
2b48ecd0
RC
104 String++.h \
105 $(inilint_extras)
58ee6135 106
b401ef47
RC
107setup_LDADD = res.o zlib/libzcygw.a bz2lib/libbz2.a \
108 libgetopt++/libgetopt++.la \
4361306f 109 -luser32 -lkernel32 \
b401ef47 110 -lcomctl32 -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid
58ee6135 111setup_LDFLAGS = -mwindows
f6100b6f 112setup_SOURCES = \
f9e903a3
RC
113 AntiVirus.cc \
114 AntiVirus.h \
f6100b6f 115 archive.cc \
45e01f23 116 archive.h \
f6100b6f 117 archive_tar.cc \
45e01f23 118 archive_tar.h \
f6100b6f
RC
119 archive_tar_file.cc \
120 autoload.c \
121 category.cc \
45e01f23 122 category.h \
f6100b6f 123 choose.cc \
45e01f23 124 choose.h \
f6100b6f 125 cistring.cc \
45e01f23 126 cistring.h \
f6100b6f 127 compress.cc \
45e01f23 128 compress.h \
f6100b6f 129 compress_bz.cc \
45e01f23 130 compress_bz.h \
f6100b6f 131 compress_gz.cc \
45e01f23 132 compress_gz.h \
39b42ff3
RC
133 ConnectionSetting.cc \
134 ConnectionSetting.h \
ee91d9be
RC
135 ControlAdjuster.cc \
136 ControlAdjuster.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 \
864a5ec1
MB
153 FilterVisitor.cc \
154 FilterVisitor.h \
f6100b6f 155 filemanip.cc \
45e01f23 156 filemanip.h \
f6100b6f 157 fromcwd.cc \
31f0ccce 158 Generic.h \
f6100b6f 159 geturl.cc \
45e01f23 160 geturl.h \
f6100b6f 161 hash.cc \
45e01f23 162 hash.h \
f6100b6f 163 ini.cc \
45e01f23 164 ini.h \
076654e7
RC
165 IniDBBuilder.cc \
166 IniDBBuilder.h \
167 IniDBBuilderPackage.cc \
168 IniDBBuilderPackage.h \
f6100b6f
RC
169 inilex.cc \
170 iniparse.cc \
171 iniparse.h \
67829ce0
RC
172 IniParseFeedback.cc \
173 IniParseFeedback.h \
b401ef47
RC
174 IniParseFindVisitor.cc \
175 IniParseFindVisitor.h \
f6100b6f
RC
176 install.cc \
177 io_stream.cc \
45e01f23 178 io_stream.h \
f6100b6f 179 io_stream_cygfile.cc \
45e01f23 180 io_stream_cygfile.h \
f6100b6f 181 io_stream_file.cc \
45e01f23 182 io_stream_file.h \
f6100b6f 183 io_stream_memory.cc \
45e01f23 184 io_stream_memory.h \
19911586 185 IOStreamProvider.h \
f6100b6f 186 localdir.cc \
45e01f23 187 localdir.h \
f6100b6f 188 log.cc \
45e01f23 189 log.h \
9f4a0c62
RC
190 LogFile.cc \
191 LogFile.h \
192 LogSingleton.cc \
193 LogSingleton.h \
f6100b6f 194 main.cc \
58ee6135
RC
195 md5.c \
196 md5.h \
197 MD5++.cc \
198 MD5++.h \
f6100b6f 199 mkdir.cc \
45e01f23 200 mkdir.h \
f6100b6f 201 mklink2.cc \
45e01f23 202 mklink2.h \
f6100b6f 203 mount.cc \
45e01f23 204 mount.h \
f6100b6f 205 msg.cc \
45e01f23 206 msg.h \
f6100b6f 207 net.cc \
45e01f23 208 net.h \
f6100b6f 209 netio.cc \
45e01f23 210 netio.h \
f6100b6f 211 nio-ie5.cc \
45e01f23 212 nio-ie5.h \
f6100b6f 213 nio-file.cc \
45e01f23 214 nio-file.h \
f6100b6f 215 nio-ftp.cc \
45e01f23 216 nio-ftp.h \
f6100b6f 217 nio-http.cc \
45e01f23 218 nio-http.h \
f6100b6f 219 package_db.cc \
45e01f23 220 package_db.h \
f6100b6f 221 package_meta.cc \
45e01f23 222 package_meta.h \
f6100b6f 223 package_source.cc \
45e01f23 224 package_source.h \
f6100b6f 225 package_version.cc \
45e01f23 226 package_version.h \
aa1e3b4d
RC
227 PackageSpecification.cc \
228 PackageSpecification.h \
076654e7 229 PackageTrust.h \
f6100b6f 230 PickCategoryLine.cc \
45e01f23 231 PickCategoryLine.h \
f6100b6f 232 PickLine.cc \
45e01f23 233 PickLine.h \
f6100b6f 234 PickPackageLine.cc \
45e01f23 235 PickPackageLine.h \
f6100b6f 236 PickView.cc \
45e01f23
RC
237 PickView.h \
238 port.h \
f6100b6f
RC
239 postinstall.cc \
240 proppage.cc \
45e01f23 241 proppage.h \
f6100b6f 242 propsheet.cc \
45e01f23 243 propsheet.h \
f6100b6f 244 res.rc \
45e01f23 245 resource.h \
f6100b6f 246 rfc1738.cc \
45e01f23 247 rfc1738.h \
f6100b6f 248 root.cc \
45e01f23 249 root.h \
b401ef47
RC
250 ScanFindVisitor.cc \
251 ScanFindVisitor.h \
f6100b6f 252 script.cc \
45e01f23 253 script.h \
f6100b6f
RC
254 setup_version.c \
255 simpsock.cc \
45e01f23 256 simpsock.h \
f6100b6f 257 site.cc \
45e01f23 258 site.h \
f6100b6f 259 source.cc \
45e01f23 260 source.h \
6ff96351
RC
261 SourceSetting.cc \
262 SourceSetting.h \
f6100b6f 263 splash.cc \
45e01f23 264 splash.h \
f6100b6f 265 state.cc \
45e01f23 266 state.h \
f6100b6f 267 String++.cc \
45e01f23 268 String++.h \
f6100b6f 269 threebar.cc \
45e01f23 270 threebar.h \
ead15931
RC
271 UserSetting.cc \
272 UserSetting.h \
273 UserSettings.cc \
274 UserSettings.h \
f6100b6f 275 version.cc \
45e01f23 276 version.h \
f6100b6f 277 win32.cc \
45e01f23
RC
278 win32.h \
279 window.cc \
24649384 280 window.h
f6100b6f
RC
281
282setup_version.c : $(srcdir)/ChangeLog Makefile
283 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
284 | sed -e 's/\$$Revision:* *//' \
285 -e 's/ *$$.*//'` ;\
286 (echo '#define VERSION_PREFIX "%%% setup-version"';\
287 echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\
288 echo 'const char *version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\
289 mv version.tmp setup_version.c
290
291%.o: %.rc
4361306f 292 $(WINDRES) --preprocessor "$(CC) -E -xc-header -DRC_INVOKED" --include-dir $(srcdir) -o $@ $<
f6100b6f 293
f6100b6f 294autoload.o: autoload.c
45e01f23
RC
295@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
296@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
297@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
f6100b6f
RC
298 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CFLAGS) -c -o $@ $< -fno-inline-functions
299
300inilex.o: inilex.cc
45e01f23
RC
301@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
302@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
303@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
f6100b6f 304 $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
58ee6135 305 $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CXXFLAGS) -c -o $@ $<
f6100b6f
RC
306
307iniparse.cc iniparse.h : iniparse.y
308 bison -d -o iniparse.cc $(srcdir)/iniparse.y
309 @mv iniparse.cc.h iniparse.h 2>/dev/null || mv iniparse.hh iniparse.h
310
311inilex.cc : inilex.l iniparse.h
312 flex -8 $(srcdir)/inilex.l
313 mv lex.yy.c inilex.cc
902c8a3f
RC
314
315# Make a distribution package and tarball
5090e3ce
RC
316release: setup$(EXEEXT) dist-all $(srcdir)/ChangeLog Makefile
317 $(STRIP) setup.exe && \
318 upx --best setup.exe && \
319 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
320 | sed -e 's/\$$Revision:* *//' \
321 -e 's/ *$$.*//'` ;\
4849e2fc 322 mv setup.exe setup-$${V}.exe && \
7cb35117
RC
323 mv setup-0.tar.bz2 setup-$${V}.tar.bz2 && \
324 tar cjf setup-$${V}-1-src.tar.bz2 setup-$${V}.tar.bz2
7d702af3
RC
325
326# Create a snapshot and upload it (requires write access)
327snapshot: release
328 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
329 | sed -e 's/\$$Revision:* *//' \
330 -e 's/ *$$.*//'` ;\
331 scp -C setup-$${V}.exe setup-$${V}.tar.bz2 $${cygwinsite}:setup-snapshots/
This page took 0.069388 seconds and 5 git commands to generate.