-AM_CFLAGS= -g
+AM_CFLAGS+= -g
#AM_CFLAGS= -DNDEBUG
# -DNLOG cuts absolutely all logs at compilation time.
amok/Bandwidth/bandwidth_private.h \
amok/amok_modinter.h
+if USE_SIMIX
+ EXTRA_DIST+=include/simix/simix.h include/simix/datatypes.h simix/private.h
+endif
+
# gras_private.h
#LIBRARY_VERSION= 0:0:0
# using this trick is ready for a "stable" release (say, in Debian).
lib_LTLIBRARIES= libsimgrid.la libgras.la
-noinst_PROGRAMS=testall
COMMON_SRC=\
\
- xbt/snprintf.c \
- xbt/ex.c \
+ xbt/snprintf.c xbt/getline.c \
+ xbt/ex.c xbt/xbt_thread.c \
\
xbt_modinter.h gras_modinter.h \
\
\
gras/Msg/sg_msg.c
+if HAVE_SDP
+ SG_SRC+= surf/sdp.c
+endif
+
+if USE_SIMIX
+ SG_SRC+=simix/smx_global.c \
+ simix/smx_deployment.c \
+ simix/smx_config.c \
+ simix/smx_environment.c \
+ simix/smx_host.c \
+ simix/smx_process.c \
+ simix/smx_action.c \
+ simix/smx_synchro.c
+endif
+
AMOK_SRC= \
amok/amok_base.c \
amok/Bandwidth/bandwidth.c amok/Bandwidth/saturate.c \
amok/PeerManagement/peermanagement.c
+if GRAMINE_MODE
+else
###
### Testing infrastructure
###
# Suites and tests run in the given order.
+noinst_PROGRAMS=testall
TEST_CFILES=xbt/cunit.c xbt/ex.c \
xbt/dynar.c xbt/dict.c xbt/set.c xbt/swag.c \
xbt/config.c
gras/DataDesc/ddt_parse.yy.c: gras/DataDesc/ddt_parse.yy.l
- set -e;@LEX@ -o$@ -Pgras_ddt_parse_ $^
+ set -e;@LEX@ -o$@ -Pgras_ddt_parse_ --noline $^
if MAINTAINER_MODE
surf/surfxml.c: surf/surfxml.l
- set -e;mkdir -p `dirname $@`; @LEX@ -o$@ -Psurf_parse_ $^
+ set -e;mkdir -p `dirname $@`; @LEX@ -o$@ -Psurf_parse_ --noline $^
xbt/graphxml.c: xbt/graphxml.l
- set -e;mkdir -p `dirname $@`; @LEX@ -o$@ -Pxbt_graph_parse_ $^
+ set -e;mkdir -p `dirname $@`; @LEX@ -o$@ -Pxbt_graph_parse_ --noline $^
if HAVE_FLEXML
surf/surfxml.l: $(srcdir)/surf/surfxml.dtd
@exit 1
endif
endif
+endif
###
### Declare the library content