# hivex
-# Copyright (C) 2009-2010 Red Hat Inc.
+# Copyright (C) 2009-2011 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
$<
CLEANFILES = $(man_MANS)
+
+# Tests.
+
+check_PROGRAMS = test-just-header
+
+TESTS = test-just-header
+
+test_just_header_SOURCES = test-just-header.c
+test_just_header_CFLAGS = \
+ -I$(top_srcdir)/lib -I$(top_builddir)/lib \
+ $(WARN_CFLAGS) $(WERROR_CFLAGS)
+test_just_header_LDADD = \
+ $(top_builddir)/lib/libhivex.la
--- /dev/null
+/* hivex
+ * Copyright (C) 2010-2011 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.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+/* Check that just including the header and nothing else works, ie.
+ * that there are no implicit dependencies in the header file.
+ */
+
+#include "hivex.h"
+
+int
+main (int argc, char *argv[])
+{
+ hive_h *h = hivex_open ("../images/minimal", 0);
+ return 0;
+}