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 # Makefile for Cygwin installer
18 SUBDIRS := @subdirs@ tests
20 ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
22 # We would like to use -Winline for C++ as well, but some STL code triggers
23 # this warning. (Bug verified present in gcc-3.3)
24 # -Wno-uninitialized added to deal with g++ 3.4.4's spurious STL warnings
25 # (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22207)
26 BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \
27 -Wcast-align -Wwrite-strings -fno-builtin-sscanf
28 AM_CXXFLAGS = -Werror $(BASECXXFLAGS)
29 AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
30 -Wstrict-prototypes -Wmissing-prototypes
34 AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include -I${srcdir}/regex
36 noinst_PROGRAMS = @SETUP@$(EXEEXT) @INILINT@
38 EXTRA_PROGRAMS = inilint
39 ## noinst_PROGRAMS +=inilint
56 # iniparse.hh is generated from iniparse.yy via bison -d, so it needs to be
57 # included here for proper tracking (but not iniparse.cc, since automake
58 # knows about that already)
63 CLEANFILES = setup_version.c
66 libgetopt++/libgetopt++.la
90 PackageSpecification.cc \
91 PackageSpecification.h \
99 libgetopt++/libgetopt++.la -lgcrypt -lgpg-error -llzma -lbz2 -lz \
100 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lpsapi -luuid -lntdll -lwininet -lmingw32
101 @SETUP@_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
109 archive_tar_file.cc \
120 ConnectionSetting.cc \
121 ConnectionSetting.h \
154 IniDBBuilderPackage.cc \
155 IniDBBuilderPackage.h \
158 IniParseFeedback.cc \
160 IniParseFindVisitor.cc \
161 IniParseFindVisitor.h \
165 io_stream_cygfile.cc \
166 io_stream_cygfile.h \
169 io_stream_memory.cc \
209 PackageSpecification.cc \
210 PackageSpecification.h \
212 PickCategoryLine.cc \
220 postinstallresults.cc \
221 postinstallresults.h \
265 csu_util/rfc1738.cc \
267 csu_util/version_compare.cc \
268 csu_util/version_compare.h \
271 VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
274 setup_version.c : $(srcdir)/ChangeLog Makefile
275 $(AM_V_GEN)(echo '#define VERSION_PREFIX "%%% setup-version"';\
276 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
277 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp && \
278 mv version.tmp setup_version.c
280 # setup.exe.manifest is included in res.rc
281 res.o: setup.exe.manifest
284 $(AM_V_GEN)$(WINDRES) --include-dir $(srcdir) -o $@ $<
286 # static const char version_store[] = VERSION_PREFIX " 2.686";
288 @ver=setup-$$(sed -n 's/^static const char version_store.* VERSION_PREFIX " \([^"]*\)".*$$/\1/p' setup_version.c);\
292 cvs status -R | sed -n "s%^ *Repository revision:.*/cvs/cygwin-apps/setup/\(.*\),v%$$ver/\1%p" |\
293 sort | tar -T - -cjf ${CURDIR}/$$ver-src.tar.bz2;\
294 echo $$ver-src.tar.bz2; exec rm -f $$ver