From e9d1449472f0886ad619ce435800563b5e00f292 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 15 Mar 2010 11:40:45 +0000 Subject: [PATCH] Basic build environment. --- .gitignore | 13 +++++++++++++ Makefile.am | 18 ++++++++++++++++++ configure.ac | 39 +++++++++++++++++++++++++++++++++++++++ src/Makefile.am | 17 +++++++++++++++++ 4 files changed, 87 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile.am create mode 100644 configure.ac create mode 100644 src/Makefile.am diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6415d1a --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +*~ +Makefile +Makefile.in +aclocal.m4 +autom4te.cache +compile +config.log +config.status +configure +install-sh +missing +src/Makefile +src/Makefile.in \ No newline at end of file diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..9051206 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,18 @@ +# virt-kernel-info +# Copyright (C) 2010 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +SUBDIRS = src diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..2c41680 --- /dev/null +++ b/configure.ac @@ -0,0 +1,39 @@ +# virt-kernel-info +# Copyright (C) 2010 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +AC_INIT([virt-kernel-info],0.1.0) +AM_INIT_AUTOMAKE([foreign]) + +AC_CONFIG_MACRO_DIR([m4]) + +# Check for basic C environment. +AC_PROG_CC_STDC +AC_PROG_INSTALL +AC_PROG_CPP + +AC_C_PROTOTYPES +test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant]) + +AM_PROG_CC_C_O + +dnl Check support for 64 bit file offsets. +AC_SYS_LARGEFILE + +# Generate output files. +AC_CONFIG_FILES([Makefile + src/Makefile]) +AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..1ee3bc7 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,17 @@ +# virt-kernel-info +# Copyright (C) 2010 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + -- 1.8.3.1