GitLab maintenance scheduled for Tomorrow, 2019-09-24, from 12:00 to 13:00 CT - Services will be unavailable during this time.

Commit f3ac6fd0 authored by Shane Snyder's avatar Shane Snyder

more autotools fiddling + simple initial test

parent 75905650
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS="-Im4"
check_PROGRAMS =
TESTS =
EXTRA_DIST = prepare.sh
AM_CPPFLAGS = -I$(top_srcdir)/include
AM_CFLAGS =
AM_CXXFLAGS = $(AM_CFLAGS)
lib_LTLIBRARIES = libmobject-store.la
libmobject_store_la_SOURCES = src/libmobject-store.c \
include/mobject-store.h
include_HEADERS = include/mobject-store.h
include_HEADERS = include/libmobject-store.h
libmobject_la_CPPFLAGS = -I${srcdir}/include
lib_LTLIBRARIES = src/libmobject-store.la
src_libmobject_store_la_SOURCES =
include Make.rules
include $(top_srcdir)/src/Makefile.subdir
include $(top_srcdir)/tests/Makefile.subdir
......@@ -3,8 +3,8 @@ AC_INIT([mobject], [0.1], [ssio-services@lists.mcs.anl.gov])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects silent-rules])
AM_SILENT_RULES([yes])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([include/mobject-store.h])
AC_CONFIG_HEADER([include/mobject-conf.h])
AC_CONFIG_SRCDIR([include/libmobject-store.h])
AC_CONFIG_HEADER([src/mobject-store-config.h])
LT_PREREQ([2.2])
AM_PROG_AR
LT_INIT([dlopen])
......
src_libmobject_store_la_SOURCES += \
src/libmobject-store.c \
include/libmobject-store.h
......@@ -4,7 +4,7 @@
* See COPYRIGHT in top-level directory.
*/
#include "mobject-conf.h"
#include "mobject-store-config.h"
#include <stdio.h>
#include <assert.h>
......@@ -12,7 +12,7 @@
#include <margo.h>
#include <ssg.h>
#include "mobject-store.h"
#include "libmobject-store.h"
struct mobject_store_handle
{
......
check_PROGRAMS += \
tests/mobject-connect-test
TESTS += \
tests/connect-test.sh
tests_mobject_connect_test_SOURCES = \
tests/mobject-connect-test.c
tests_mobject_connect_test_LDADD = \
src/libmobject-store.la
/*
* (C) 2017 The University of Chicago
*
* See COPYRIGHT in top-level directory.
*/
#include "mobject-store-config.h"
#include <stdio.h>
#include <assert.h>
#ifdef USE_LIBRADOS
#include <librados.h>
#else
#include <libmobject-store.h>
#endif
int main(int argc, char *argv[])
{
rados_t cluster;
int ret;
ret = rados_create(&cluster, "admin");
assert(ret == 0);
rados_shutdown(cluster);
return(0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment