1 ## Process this file with automake to produce Makefile.in
5 # Copyright (c) 2000, Red Hat, Inc.
6 # Copyright (c) 2002, Robert Collins
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.
13 # A copy of the GNU General Public License can be found at
16 # Written by Christopher Faylor <cgf@redhat.com>
17 # and Robert Collins <rbtcollins@hotmail.com>
19 # Makefile for Cygwin installer
21 DIST_SUBDIRS = libgetopt++ tests
22 SUBDIRS = libgetopt++ tests
24 ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
26 # We would like to use -Winline for C++ as well, but some STL code triggers
27 # this warning. (Bug verified present in gcc-3.3)
28 # -Wno-uninitialized added to deal with g++ 3.4.4's spurious STL warnings
29 # (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22207)
30 BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \
31 -Wcast-align -Wwrite-strings
32 AM_CXXFLAGS = -Werror $(BASECXXFLAGS)
33 AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
34 -Wstrict-prototypes -Wmissing-prototypes
38 INCLUDES = -I$(srcdir)/libgetopt++/include
40 noinst_PROGRAMS = setup @INILINT@
42 EXTRA_PROGRAMS = inilint
43 ## noinst_PROGRAMS +=inilint
58 libmd5-rfc/md5main.c \
63 # iniparse.h is generated from iniparse.yy via bison -d, so it needs to be
64 # included here for proper tracking (but not iniparse.cc, since automake
65 # knows about that already)
79 libinilex.a libgetopt++/libgetopt++.la
101 PackageSpecification.cc \
102 PackageSpecification.h \
104 csu_util/rfc1738.cc \
110 # workaround to allow omitting -Werror on inilex.cc.
111 noinst_LIBRARIES = libinilex.a
112 libinilex_a_SOURCES = inilex.ll
113 libinilex_a_CXXFLAGS = $(BASECXXFLAGS)
116 libinilex.a libgetopt++/libgetopt++.la \
118 /usr/lib/mingw/libbz2.a /usr/lib/mingw/libz.a \
119 -lcomctl32 -lole32 -lwsock32 -lnetapi32 -luuid
120 setup_LDFLAGS = -mwindows
128 archive_tar_file.cc \
138 ConnectionSetting.cc \
139 ConnectionSetting.h \
167 IniDBBuilderPackage.cc \
168 IniDBBuilderPackage.h \
170 IniParseFeedback.cc \
172 IniParseFindVisitor.cc \
173 IniParseFindVisitor.h \
177 io_stream_cygfile.cc \
178 io_stream_cygfile.h \
181 io_stream_memory.cc \
219 PackageSpecification.cc \
220 PackageSpecification.h \
222 PickCategoryLine.cc \
273 csu_util/rfc1738.cc \
275 csu_util/version_compare.cc \
276 csu_util/version_compare.h \
280 setup_version.c : $(srcdir)/ChangeLog Makefile
281 V=`sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
282 $(srcdir)/ChangeLog` ;\
283 (echo '#define VERSION_PREFIX "%%% setup-version"';\
284 echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\
285 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\
286 mv version.tmp setup_version.c
289 $(WINDRES) --preprocessor "$(CC) -E -xc-header -DRC_INVOKED" --include-dir $(srcdir) -o $@ $<
291 # Make a distribution package and tarball
292 release: setup$(EXEEXT) dist-all $(srcdir)/ChangeLog Makefile
293 $(STRIP) setup.exe && \
294 upx --best setup.exe && \
295 V=`sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
296 $(srcdir)/ChangeLog` ;\
297 mv setup.exe setup-$${V}.exe && \
298 mv setup-0.tar.bz2 setup-$${V}.tar.bz2 && \
299 tar cjf setup-$${V}-1-src.tar.bz2 setup-$${V}.tar.bz2
301 # Create a snapshot and upload it (requires write access)
303 V=`sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
304 $(srcdir)/ChangeLog` ;\
305 scp -C setup-$${V}.exe setup-$${V}.tar.bz2 $${cygwinsite}:setup-snapshots/