summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjmmv <jmmv@NetBSD.org>2007-11-12 14:56:24 +0000
committerjmmv <jmmv@NetBSD.org>2007-11-12 14:56:24 +0000
commit096ebe7672302ac2bc7b430229aa111de4ecacda (patch)
tree66db42d9a2bf1dbf6edeb5dd835e88900e733898 /lib
parent2965cbca980a5378b7c8936e67ea177f3af368ae (diff)
Add the libatf library
This adds reachover Makefiles to build the libatf library and enables it in the parent Makefile. Things to review in this change: * Add proper version numbers in the shlib_version files. * Is libatf properly listed in lib/Makefile? It theoretically needs libstdc++, but the resulting binary library is not linked against it.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile4
-rw-r--r--lib/libatf/Makefile65
-rw-r--r--lib/libatf/config.h92
3 files changed, 159 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile
index e0b90541b77..8c833ddeb69 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.119 2007/11/05 04:58:52 tls Exp $
+# $NetBSD: Makefile,v 1.120 2007/11/12 14:56:24 jmmv Exp $
# from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91
.include <bsd.own.mk>
-SUBDIR= csu libc .WAIT libarch libbsdmalloc libbluetooth libbz2 \
+SUBDIR= csu libc .WAIT libarch libatf libbsdmalloc libbluetooth libbz2 \
libcompat libcrypt \
libcurses libevent libform libintl libkvm libl libm \
libmenu libossaudio libpcap libpci libpmc libposix libprop libpthread \
diff --git a/lib/libatf/Makefile b/lib/libatf/Makefile
new file mode 100644
index 00000000000..a4a1ade38cc
--- /dev/null
+++ b/lib/libatf/Makefile
@@ -0,0 +1,65 @@
+# $NetBSD: Makefile,v 1.1 2007/11/12 14:56:25 jmmv Exp $
+
+.include <bsd.own.mk>
+
+LIB= atf
+NOPIC= yes # Interface is still too unstable
+
+SRCDIR= ${NETBSDSRCDIR}/dist/atf
+.PATH: ${SRCDIR}
+.PATH: ${SRCDIR}/atf
+
+CPPFLAGS+= -I${.CURDIR}
+CPPFLAGS+= -I${SRCDIR}/libs
+CPPFLAGS+= -I.
+
+CPPFLAGS+= -DHAVE_CONFIG_H
+CPPFLAGS+= -DATF_CONFDIR=\"/etc/atf\"
+CPPFLAGS+= -DATF_LIBEXECDIR=\"/usr/libexec\"
+CPPFLAGS+= -DATF_PKGDATADIR=\"/usr/share/atf\"
+CPPFLAGS+= -DATF_SHELL=\"/bin/sh\"
+CPPFLAGS+= -DATF_WORKDIR=\"/tmp\"
+
+WARNS?= 2
+
+SRCS= application.cpp \
+ atffile.cpp \
+ config.cpp \
+ env.cpp \
+ exceptions.cpp \
+ expand.cpp \
+ formats.cpp \
+ fs.cpp \
+ io.cpp \
+ parser.cpp \
+ sanity.cpp \
+ tests.cpp \
+ text.cpp \
+ ui.cpp \
+ user.cpp
+
+INCS= application.hpp \
+ atffile.hpp \
+ config.hpp \
+ env.hpp \
+ exceptions.hpp \
+ expand.hpp \
+ formats.hpp \
+ fs.hpp \
+ io.hpp \
+ macros.hpp \
+ parser.hpp \
+ sanity.hpp \
+ tests.hpp \
+ text.hpp \
+ ui.hpp \
+ user.hpp \
+ utils.hpp
+INCSDIR= /usr/include/atf
+
+INCS+= atf.hpp
+INCSDIR_atf.hpp=/usr/include
+
+MAN= # empty
+
+.include <bsd.lib.mk>
diff --git a/lib/libatf/config.h b/lib/libatf/config.h
new file mode 100644
index 00000000000..5406868551f
--- /dev/null
+++ b/lib/libatf/config.h
@@ -0,0 +1,92 @@
+/* config.h. Generated from config.h.in by configure. */
+/* config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define to 1 if basename takes a constant pointer */
+/* #undef HAVE_CONST_BASENAME */
+
+/* Define to 1 if dirname takes a constant pointer */
+/* #undef HAVE_CONST_DIRNAME */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the `putenv' function. */
+#define HAVE_PUTENV 1
+
+/* Define to 1 if putenv is in std */
+/* #undef HAVE_PUTENV_IN_STD */
+
+/* Define to 1 if you have the `setenv' function. */
+#define HAVE_SETENV 1
+
+/* Define to 1 if setenv is in std */
+/* #undef HAVE_SETENV_IN_STD */
+
+/* Define to 1 if snprintf is in std */
+/* #undef HAVE_SNPRINTF_IN_STD */
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define to 1 if you have the `unmount' function. */
+/* #undef HAVE_UNMOUNT */
+
+/* Define to 1 if you have the `unsetenv' function. */
+#define HAVE_UNSETENV 1
+
+/* Define to 1 if unsetenv is in std */
+/* #undef HAVE_UNSETENV_IN_STD */
+
+/* Define to 1 if vnsprintf is in std */
+/* #undef HAVE_VSNPRINTF_IN_STD */
+
+/* Name of package */
+#define PACKAGE "atf"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "atf-devel@NetBSD.org"
+
+/* Define to the copyright string applicable to this package. */
+#define PACKAGE_COPYRIGHT "Copyright (c) 2007 The NetBSD Foundation, Inc."
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "Automated Testing Framework"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "Automated Testing Framework 0.3"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "atf"
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "0.3"
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Version number of package */
+#define VERSION "0.3"