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 @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
73 libgetopt++/libgetopt++.la
96 PackageSpecification.cc \
97 PackageSpecification.h \
105 regex_SOURCES = regex/regex.c
107 libgetopt++/libgetopt++.la -lgcrypt -lgpg-error -llzma -lbz2 -lz \
108 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lpsapi -luuid -lntdll -lwininet
109 setup_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
117 archive_tar_file.cc \
128 ConnectionSetting.cc \
129 ConnectionSetting.h \
162 IniDBBuilderPackage.cc \
163 IniDBBuilderPackage.h \
166 IniParseFeedback.cc \
168 IniParseFindVisitor.cc \
169 IniParseFindVisitor.h \
173 io_stream_cygfile.cc \
174 io_stream_cygfile.h \
177 io_stream_memory.cc \
217 PackageSpecification.cc \
218 PackageSpecification.h \
220 PickCategoryLine.cc \
228 postinstallresults.cc \
229 postinstallresults.h \
274 csu_util/rfc1738.cc \
276 csu_util/version_compare.cc \
277 csu_util/version_compare.h
279 VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
282 setup_version.c : $(srcdir)/ChangeLog Makefile
283 $(AM_V_GEN)(echo '#define VERSION_PREFIX "%%% setup-version"';\
284 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
285 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp && \
286 mv version.tmp setup_version.c
288 # setup.exe.manifest is included in res.rc
289 res.o: setup.exe.manifest
292 $(AM_V_GEN)$(WINDRES) --include-dir $(srcdir) -o $@ $<
294 # static const char version_store[] = VERSION_PREFIX " 2.686";
296 @ver=setup-$$(sed -n 's/^static const char version_store.* VERSION_PREFIX " \([^"]*\)".*$$/\1/p' setup_version.c);\
300 cvs status -R | sed -n "s%^ *Repository revision:.*/cvs/cygwin-apps/setup/\(.*\),v%$$ver/\1%p" |\
301 sort | tar -T - -cjf ${CURDIR}/$$ver-src.tar.bz2;\
302 echo $$ver-src.tar.bz2; exec rm -f $$ver