Skip to content

Commit

Permalink
oops, left out a bunch of files
Browse files Browse the repository at this point in the history
  • Loading branch information
John Jenkins committed Apr 20, 2016
1 parent 18f6754 commit 765932c
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Make.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Output dist version
#
.phony: distversion
distversion:
@echo $(VERSION)

#
# Easy way to build unit tests without running them
#
.phony: tests
tests: $(check_PROGRAMS)

51 changes: 51 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4

bin_PROGRAMS =
bin_SCRIPTS =
noinst_LIBRARIES =
noinst_PROGRAMS =
lib_LIBRARIES =
noinst_HEADERS =
TESTS =
XFAIL_TESTS =
check_PROGRAMS =
EXTRA_PROGRAMS =
CLEANFILES = $(bin_SCRIPTS)
MAINTAINERCLEANFILES =
EXTRA_DIST =
BUILT_SOURCES =
include_HEADERS = include/ssg.h
EXTRA_HEADERS = include/ssg-mpi.h

EXTRA_DIST += prepare.sh

AM_CPPFLAGS = -I$(top_srcdir)/include

AM_CFLAGS =

AM_LIBS =

if HAVE_MPI
include_HEADERS += include/ssg-mpi.h
endif

if HAVE_MARGO
include_HEADERS += include/ssg-margo.h
endif

noinst_HEADERS += \
ssg-config.h \
examples/rpc.h

lib_LIBRARIES += src/libssg.a
src_libssg_a_SOURCES = src/ssg.c

noinst_PROGRAMS += examples/ssg-example
examples_ssg_example_SOURCES = examples/ssg-example.c examples/rpc.c
examples_ssg_example_LDADD = src/libssg.a

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = maint/ssg.pc

include Make.rules
29 changes: 29 additions & 0 deletions include/ssg-margo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Copyright (c) 2016 UChicago Argonne, LLC
*
* See COPYRIGHT in top-level directory.
*/

#pragma once

// lookup integrated into margo

#ifdef __cplusplus
extern "C" {
#endif

#include <mpi.h>
#include <margo.h>

#include "ssg.h"

// a "margo-aware" version of hg_lookup - still looks up everyone in one go
hg_return_t ssg_lookup_margo(ssg_t s, margo_instance_id mid);

#ifdef __cplusplus
}
#endif

/**
* vim: ft=c sw=4 ts=4 sts=4 tw=80 expandtab
*/
4 changes: 4 additions & 0 deletions prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

echo "Regenerating build files..."
autoreconf -fi

0 comments on commit 765932c

Please sign in to comment.