OSDN Git Service

Set up build mechanism.
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Sat, 31 Oct 2009 21:08:41 +0000 (21:08 +0000)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Sat, 31 Oct 2009 21:08:41 +0000 (21:08 +0000)
.cvsignore
ChangeLog
Makefile.in [new file with mode: 0644]
configure.ac [new file with mode: 0644]

index 7f7e9aa..12de03b 100644 (file)
@@ -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
index c34f0bf..12f14c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-10-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Set up build mechanism.
+
+       * configure.ac, Makefile.in: New files.
+       * .cvsignore (configure, autom4te.cache): Add to ignored files.
+
 2009-10-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
        Add GPL-v3 licensing terms.
diff --git a/Makefile.in b/Makefile.in
new file mode 100644 (file)
index 0000000..0916198
--- /dev/null
@@ -0,0 +1,69 @@
+# @configure_input@
+#
+# $Id$
+#
+# Written by Keith Marshall <keithmarshall@users.sourceforge.net>
+# 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 (file)
index 0000000..3e2bdfc
--- /dev/null
@@ -0,0 +1,46 @@
+# configure.ac -*- autoconf -*- vim: filetype=config
+#
+# $Id$
+#
+# Written by Keith Marshall <keithmarshall@users.sourceforge.net>
+# 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