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