1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Make file and configure

This commit is contained in:
Peter Boyle 2015-03-29 21:44:22 +01:00
parent 8801c59cce
commit 7f1af07fb3
2 changed files with 26 additions and 1 deletions

View File

@ -23,5 +23,8 @@ include_HEADERS = Grid.h\
# Test code # Test code
# #
bin_PROGRAMS = Grid_main bin_PROGRAMS = Grid_main
Grid_main_SOURCES = Grid_main.cc Grid_main_SOURCES = \
Grid_main.cc\
Grid_fake.cc
Grid_main_LDADD = libGrid.a Grid_main_LDADD = libGrid.a

View File

@ -50,5 +50,27 @@ case ${ac_SIMD} in
;; ;;
esac esac
AC_ARG_ENABLE([comms],[AC_HELP_STRING([--enable-comms=none|fake|mpi],[Select communications])],[ac_COMMS=${enable_comms}],[ac_COMMS=none])
case ${ac_COMMS} in
fake)
echo Configuring for FAKE communications
AC_DEFINE([GRID_COMMS_FAKE],[1],[GRID_COMMS_FAKE] )
;;
none)
echo Configuring for NO communications
AC_DEFINE([GRID_COMMS_NONE],[1],[GRID_COMMS_NONE] )
;;
mpi)
echo Configuring for MPI communications
AC_DEFINE([GRID_COMMS_MPI],[1],[GRID_COMMS_MPI] )
;;
*)
AC_MSG_ERROR([${ac_COMMS} unsupported --enable-comms option]);
;;
esac
AC_CONFIG_FILES(Makefile) AC_CONFIG_FILES(Makefile)
AC_OUTPUT AC_OUTPUT