mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-09 23:45:36 +00:00
Make file and configure
This commit is contained in:
parent
8801c59cce
commit
7f1af07fb3
@ -23,5 +23,8 @@ include_HEADERS = Grid.h\
|
||||
# Test code
|
||||
#
|
||||
bin_PROGRAMS = Grid_main
|
||||
Grid_main_SOURCES = Grid_main.cc
|
||||
Grid_main_SOURCES = \
|
||||
Grid_main.cc\
|
||||
Grid_fake.cc
|
||||
|
||||
Grid_main_LDADD = libGrid.a
|
||||
|
22
configure.ac
22
configure.ac
@ -50,5 +50,27 @@ case ${ac_SIMD} in
|
||||
;;
|
||||
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_OUTPUT
|
||||
|
Loading…
Reference in New Issue
Block a user