From: Keith Marshall Date: Sat, 31 Oct 2009 21:08:41 +0000 (+0000) Subject: Set up build mechanism. X-Git-Tag: r0-6-0-beta-20130904-1~223 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=84806c36cd2d54872a4a8ae28166b41a178a02af;p=mingw%2Fmingw-get.git Set up build mechanism. --- diff --git a/.cvsignore b/.cvsignore index 7f7e9aa..12de03b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,4 +1,2 @@ -bin -obj -mingw-get.layout -mingw-get.depend \ No newline at end of file +configure autom4te.cache +bin obj mingw-get.layout mingw-get.depend diff --git a/ChangeLog b/ChangeLog index c34f0bf..12f14c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-10-31 Keith Marshall + + Set up build mechanism. + + * configure.ac, Makefile.in: New files. + * .cvsignore (configure, autom4te.cache): Add to ignored files. + 2009-10-30 Keith Marshall Add GPL-v3 licensing terms. diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..0916198 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,69 @@ +# @configure_input@ +# +# $Id$ +# +# Written by Keith Marshall +# Copyright (C) 2009, MinGW Project +# +# +# Makefile template for mingw-get +# +# +# This is free software. Permission is granted to copy, modify and +# redistribute this software, under the provisions of the GNU General +# Public License, Version 3, (or, at your option, any later version), +# as published by the Free Software Foundation; see the file COPYING +# for licensing details. +# +# Note, in particular, that this software is provided "as is", in the +# hope that it may prove useful, but WITHOUT WARRANTY OF ANY KIND; not +# even an implied WARRANTY OF MERCHANTABILITY, nor of FITNESS FOR ANY +# PARTICULAR PURPOSE. Under no circumstances will the author, or the +# MinGW Project, accept liability for any damages, however caused, +# arising from the use of this software. +# +srcdir = @srcdir@ + +VPATH = ${srcdir}/src ${srcdir}/src/pkginfo ${srcdir}/tinyxml + +CC = @CC@ +CFLAGS = @CFLAGS@ +CPPFLAGS = @CPPFLAGS@ $(INCLUDES) + +CXX = @CXX@ +CXXFLAGS = $(CFLAGS) + +INCLUDES = -I ${srcdir}/src -I ${srcdir}/src/pkginfo + +LEX = @LEX@ + +AR = @AR@ +ARFLAGS = @ARFLAGS@ + +OBJEXT = @OBJEXT@ +EXEEXT = @EXEEXT@ + +LDFLAGS = @LDFLAGS@ +LIBS = @LIBS@ + +%.$(OBJEXT): %.c + $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< + +%.$(OBJEXT): %.cpp + $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $< + +all: pkginfo$(EXEEXT) + +pkginfo$(EXEEXT): driver.$(OBJEXT) pkginfo.$(OBJEXT) + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $+ + +driver.$(OBJEXT): pkginfo.h +pkginfo.$(OBJEXT): pkginfo.l pkginfo.h + +clean: + rm -f *.$(OBJEXT) *.dll pkginfo$(EXEEXT) + +distclean: clean + rm -f config.* Makefile + +# $RCSfile$: end of file diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..3e2bdfc --- /dev/null +++ b/configure.ac @@ -0,0 +1,46 @@ +# configure.ac -*- autoconf -*- vim: filetype=config +# +# $Id$ +# +# Written by Keith Marshall +# Copyright (C) 2009, MinGW Project +# +# +# Configuration script for mingw-get +# +# +# This is free software. Permission is granted to copy, modify and +# redistribute this software, under the provisions of the GNU General +# Public License, Version 3, (or, at your option, any later version), +# as published by the Free Software Foundation; see the file COPYING +# for licensing details. +# +# Note, in particular, that this software is provided "as is", in the +# hope that it may prove useful, but WITHOUT WARRANTY OF ANY KIND; not +# even an implied WARRANTY OF MERCHANTABILITY, nor of FITNESS FOR ANY +# PARTICULAR PURPOSE. Under no circumstances will the author, or the +# MinGW Project, accept liability for any damages, however caused, +# arising from the use of this software. +# + AC_INIT([mingw-get],[0.0],[http://mingw.org/reporting_bugs]) + +# We need both C and C++ compilers; check how to invoke them +# + AC_PROG_CC + AC_PROG_CXX + +# We also need a lexical analyser generator +# + AC_PROG_LEX + +# Set up the archive librarian, to match our compiler settings +# + AC_CHECK_TOOL([AR],[ar],[ar]) + AC_SUBST([ARFLAGS],[${ARFLAGS-rcs}]) + +# Create a makefile +# + AC_CONFIG_FILES([Makefile]) + AC_OUTPUT +# +# $RCSfile$: end of file