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 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.6
22 SUBDIRS = bz2lib zlib libgetopt++
24 ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
26 AM_CFLAGS = -Werror -Winline -Wall -Wpointer-arith \
27 -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
28 -Wmissing-declarations -Wcomments
29 AM_CXXFLAGS = $(AM_CFLAGS)
33 INCLUDES = -I$(srcdir)/bz2lib -I$(srcdir)/libgetopt++/include
39 EXTRA_PROGRAMS = inilint
40 ## noinst_PROGRAMS +=inilint
42 # to avoid false errors that assembly generates
43 WARNONLY_CFLAGS = -Winline -Wall -Wpointer-arith -Wcast-align \
44 -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
45 -Wmissing-declarations -Wcomments $(INCLUDES)
57 BUILT_SOURCES = setup_version.c \
70 inilint_LDADD = libgetopt++/libgetopt++.la -lstdc++ -luser32 -lkernel32
94 setup_LDADD = res.o zlib/libzcygw.a bz2lib/libbz2.a libgetopt++/libgetopt++.la \
95 -lstdc++ -luser32 -lkernel32 \
96 -lcomctl32 -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid
97 setup_LDFLAGS = -mwindows
103 archive_tar_file.cc \
144 IniDBBuilderPackage.cc \
145 IniDBBuilderPackage.h \
152 io_stream_cygfile.cc \
153 io_stream_cygfile.h \
156 io_stream_memory.cc \
202 PickCategoryLine.cc \
246 setup_version.c : $(srcdir)/ChangeLog Makefile
247 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
248 | sed -e 's/\$$Revision:* *//' \
250 (echo '#define VERSION_PREFIX "%%% setup-version"';\
251 echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\
252 echo 'const char *version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\
253 mv version.tmp setup_version.c
256 $(WINDRES) --include-dir $(srcdir) -o $@ $<
258 autoload.o: autoload.c
259 @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
260 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
261 @AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
262 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CFLAGS) -c -o $@ $< -fno-inline-functions
265 @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
266 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
267 @AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
268 $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
269 $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CXXFLAGS) -c -o $@ $<
271 iniparse.cc iniparse.h : iniparse.y
272 bison -d -o iniparse.cc $(srcdir)/iniparse.y
273 @mv iniparse.cc.h iniparse.h 2>/dev/null || mv iniparse.hh iniparse.h
275 inilex.cc : inilex.l iniparse.h
276 flex -8 $(srcdir)/inilex.l
277 mv lex.yy.c inilex.cc
279 # Make a distribution package and tarball
280 release: setup$(EXEEXT) dist-all
283 mv setup-0.tar.bz2 setup-src.tar.bz2