]> cygwin.com Git - cygwin-apps/setup.git/blame - Makefile.am
2002-07-02 Robert Collins <rbtcollins@hotmail.com>
[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
21AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.6
b401ef47
RC
22DIST_SUBDIRS = bz2lib zlib libgetopt++
23SUBDIRS = bz2lib zlib libgetopt++ @RSYNC@
f6100b6f
RC
24
25## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
26
8368a29f
RC
27##AM_CFLAGS = -Werror -Wall -Winline -Wpointer-arith
28AM_CFLAGS = -Werror -Wall -Wpointer-arith \
f6100b6f 29 -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
58ee6135
RC
30 -Wmissing-declarations -Wcomments
31AM_CXXFLAGS = $(AM_CFLAGS)
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
RC
49EXTRA_DIST = \
50 check-na.bmp \
51 check-no.bmp \
52 check-yes.bmp \
53 choose-rtarrow.bmp \
54 choose-spin.bmp \
55 cygwin.ico \
56 inilex.l \
b92028a4 57 iniparse.y
45e01f23 58
f6100b6f
RC
59BUILT_SOURCES = setup_version.c \
60 inilex.cc \
61 iniparse.cc
62
2b48ecd0
RC
63if MINGWTARGET
64 inilint_extras = \
65 autoload.c \
66 mklink2.cc\
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
58ee6135
RC
80inilint_LDADD = libgetopt++/libgetopt++.la -lstdc++ -luser32 -lkernel32
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 \
076654e7 105 PackageTrust.h \
58ee6135
RC
106 rfc1738.cc \
107 rfc1738.h \
108 String++.cc \
2b48ecd0
RC
109 String++.h \
110 $(inilint_extras)
58ee6135 111
b401ef47
RC
112setup_LDADD = res.o zlib/libzcygw.a bz2lib/libbz2.a \
113 libgetopt++/libgetopt++.la \
114 @RSYNCLIB@ \
115 -lstdc++ -luser32 -lkernel32 \
116 -lcomctl32 -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid
58ee6135 117setup_LDFLAGS = -mwindows
f6100b6f
RC
118setup_SOURCES = \
119 archive.cc \
45e01f23 120 archive.h \
f6100b6f 121 archive_tar.cc \
45e01f23 122 archive_tar.h \
f6100b6f
RC
123 archive_tar_file.cc \
124 autoload.c \
125 category.cc \
45e01f23 126 category.h \
f6100b6f 127 choose.cc \
45e01f23 128 choose.h \
f6100b6f 129 cistring.cc \
45e01f23 130 cistring.h \
f6100b6f 131 compress.cc \
45e01f23 132 compress.h \
f6100b6f 133 compress_bz.cc \
45e01f23 134 compress_bz.h \
f6100b6f 135 compress_gz.cc \
45e01f23 136 compress_gz.h \
f6100b6f 137 concat.cc \
45e01f23 138 concat.h \
f6100b6f 139 cygpackage.cc \
45e01f23 140 cygpackage.h \
f6100b6f 141 desktop.cc \
45e01f23 142 desktop.h \
f6100b6f 143 dialog.cc \
45e01f23 144 dialog.h \
f6100b6f 145 diskfull.cc \
45e01f23 146 diskfull.h \
f6100b6f 147 download.cc \
58ee6135
RC
148 download.h \
149 Exception.cc \
150 Exception.h \
f6100b6f 151 find.cc \
45e01f23 152 find.h \
b401ef47
RC
153 FindVisitor.cc \
154 FindVisitor.h \
f6100b6f 155 filemanip.cc \
45e01f23 156 filemanip.h \
f6100b6f 157 fromcwd.cc \
f6100b6f 158 geturl.cc \
45e01f23 159 geturl.h \
f6100b6f 160 hash.cc \
45e01f23 161 hash.h \
f6100b6f 162 ini.cc \
45e01f23 163 ini.h \
076654e7
RC
164 IniDBBuilder.cc \
165 IniDBBuilder.h \
166 IniDBBuilderPackage.cc \
167 IniDBBuilderPackage.h \
f6100b6f
RC
168 inilex.cc \
169 iniparse.cc \
170 iniparse.h \
67829ce0
RC
171 IniParseFeedback.cc \
172 IniParseFeedback.h \
b401ef47
RC
173 IniParseFindVisitor.cc \
174 IniParseFindVisitor.h \
f6100b6f
RC
175 install.cc \
176 io_stream.cc \
45e01f23 177 io_stream.h \
f6100b6f 178 io_stream_cygfile.cc \
45e01f23 179 io_stream_cygfile.h \
f6100b6f 180 io_stream_file.cc \
45e01f23 181 io_stream_file.h \
f6100b6f 182 io_stream_memory.cc \
45e01f23 183 io_stream_memory.h \
19911586 184 IOStreamProvider.h \
45e01f23 185 list.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 \
f6100b6f 261 splash.cc \
45e01f23 262 splash.h \
f6100b6f 263 state.cc \
45e01f23 264 state.h \
f6100b6f 265 String++.cc \
45e01f23 266 String++.h \
f6100b6f 267 threebar.cc \
45e01f23 268 threebar.h \
f6100b6f 269 version.cc \
45e01f23 270 version.h \
f6100b6f 271 win32.cc \
45e01f23
RC
272 win32.h \
273 window.cc \
b401ef47
RC
274 window.h \
275 $(rsync_source)
f6100b6f
RC
276
277setup_version.c : $(srcdir)/ChangeLog Makefile
278 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
279 | sed -e 's/\$$Revision:* *//' \
280 -e 's/ *$$.*//'` ;\
281 (echo '#define VERSION_PREFIX "%%% setup-version"';\
282 echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\
283 echo 'const char *version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\
284 mv version.tmp setup_version.c
285
286%.o: %.rc
287 $(WINDRES) --include-dir $(srcdir) -o $@ $<
288
f6100b6f 289autoload.o: autoload.c
45e01f23
RC
290@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
291@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
292@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
f6100b6f
RC
293 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CFLAGS) -c -o $@ $< -fno-inline-functions
294
295inilex.o: inilex.cc
45e01f23
RC
296@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
297@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
298@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
f6100b6f 299 $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
58ee6135 300 $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CXXFLAGS) -c -o $@ $<
f6100b6f
RC
301
302iniparse.cc iniparse.h : iniparse.y
303 bison -d -o iniparse.cc $(srcdir)/iniparse.y
304 @mv iniparse.cc.h iniparse.h 2>/dev/null || mv iniparse.hh iniparse.h
305
306inilex.cc : inilex.l iniparse.h
307 flex -8 $(srcdir)/inilex.l
308 mv lex.yy.c inilex.cc
902c8a3f
RC
309
310# Make a distribution package and tarball
5090e3ce
RC
311release: setup$(EXEEXT) dist-all $(srcdir)/ChangeLog Makefile
312 $(STRIP) setup.exe && \
313 upx --best setup.exe && \
314 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
315 | sed -e 's/\$$Revision:* *//' \
316 -e 's/ *$$.*//'` ;\
4849e2fc 317 mv setup.exe setup-$${V}.exe && \
7cb35117
RC
318 mv setup-0.tar.bz2 setup-$${V}.tar.bz2 && \
319 tar cjf setup-$${V}-1-src.tar.bz2 setup-$${V}.tar.bz2
7d702af3
RC
320
321# Create a snapshot and upload it (requires write access)
322snapshot: release
323 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
324 | sed -e 's/\$$Revision:* *//' \
325 -e 's/ *$$.*//'` ;\
326 scp -C setup-$${V}.exe setup-$${V}.tar.bz2 $${cygwinsite}:setup-snapshots/
This page took 0.062213 seconds and 5 git commands to generate.