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 INST_SUBDIRS:=@subdirs@
19 DIST_SUBDIRS:=${INST_SUBDIRS} tests
22 ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
24 # We would like to use -Winline for C++ as well, but some STL code triggers
25 # this warning. (Bug verified present in gcc-3.3)
26 # -Wno-uninitialized added to deal with g++ 3.4.4's spurious STL warnings
27 # (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22207)
28 BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \
29 -Wcast-align -Wwrite-strings
30 AM_CXXFLAGS = -Werror $(BASECXXFLAGS)
31 AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
32 -Wstrict-prototypes -Wmissing-prototypes
36 AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include
38 noinst_PROGRAMS = setup @INILINT@
40 EXTRA_PROGRAMS = inilint
41 ## noinst_PROGRAMS +=inilint
56 libmd5-rfc/md5main.c \
61 # iniparse.h is generated from iniparse.yy via bison -d, so it needs to be
62 # included here for proper tracking (but not iniparse.cc, since automake
63 # knows about that already)
69 CLEANFILES = setup_version.c
80 libinilex.a libgetopt++/libgetopt++.la
102 PackageSpecification.cc \
103 PackageSpecification.h \
105 csu_util/rfc1738.cc \
111 # workaround to allow omitting -Werror on inilex.cc.
112 noinst_LIBRARIES = libinilex.a
113 libinilex_a_SOURCES = inilex.ll
114 libinilex_a_CXXFLAGS = $(BASECXXFLAGS)
118 -Linst/lib -lgetopt++ -lgcrypt -lgpg-error \
119 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lnetapi32 -luuid -llzma -lbz2 -lz
120 setup_LDFLAGS = -mwindows -Wl,-static -static-libtool-libs
128 archive_tar_file.cc \
140 ConnectionSetting.cc \
141 ConnectionSetting.h \
174 IniDBBuilderPackage.cc \
175 IniDBBuilderPackage.h \
177 IniParseFeedback.cc \
179 IniParseFindVisitor.cc \
180 IniParseFindVisitor.h \
184 io_stream_cygfile.cc \
185 io_stream_cygfile.h \
188 io_stream_memory.cc \
228 PackageSpecification.cc \
229 PackageSpecification.h \
231 PickCategoryLine.cc \
280 csu_util/rfc1738.cc \
282 csu_util/version_compare.cc \
283 csu_util/version_compare.h \
287 VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
290 setup_version.c : $(srcdir)/ChangeLog Makefile
291 (echo '#define VERSION_PREFIX "%%% setup-version"';\
292 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
293 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp
294 mv version.tmp setup_version.c
297 $(WINDRES) --include-dir $(srcdir) -o $@ $<
299 # static const char version_store[] = VERSION_PREFIX " 2.686";
301 @ver=setup-$$(sed -n 's/^static const char version_store.* VERSION_PREFIX " \([^"]*\)".*$$/\1/p' setup_version.c);\
305 cvs status -R | sed -n "s%^ *Repository revision:.*/cvs/cygwin-apps/setup/\(.*\),v%$$ver/\1%p" |\
306 sort | tar -T - -cjf ${CURDIR}/$$ver-src.tar.bz2;\
307 echo $$ver-src.tar.bz2; exec rm -f $$ver
309 .PHONY: ${INST_SUBDIRS}
311 ${MAKE} -C $@ install