-AM_CFLAGS+= -g
+AM_CFLAGS+= -g @GTNETS_CFLAGS@
#AM_CFLAGS= -DNDEBUG
# -DNLOG cuts absolutely all logs at compilation time.
\
simdag/private.h \
\
- gras/Transport/transport_interface.h \
- gras/Virtu/virtu_interface.h gras/Virtu/virtu_private.h\
- gras/Virtu/virtu_rl.h gras/Virtu/virtu_sg.h \
- gras/DataDesc/ddt_parse.yy.l gras/DataDesc/ddt_parse.yy.c \
- \
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
+ \
+ include/simix/simix.h include/simix/datatypes.h \
+ simix/msg_simix_private.h
#LIBRARY_VERSION= 0:0:0
# | | |
# | Set to zero if current is incremented
# +- Increment if interfaces have been added, removed or changed
-VERSION_INFO= -version-info 0:0:0
+VERSION_INFO= -version-info 2:0:0
# from `info libtool "Updating version info"`
# and `info libtool "Release numbers"`
#
COMMON_SRC=\
\
- xbt/snprintf.c xbt/getline.c \
+ xbt/snprintf.c xbt/xbt_str.c \
xbt/ex.c \
\
xbt_modinter.h gras_modinter.h \
+ xbt/xbt_virtu.c \
\
xbt/sysdep.c \
xbt/asserts.c \
- xbt/log.c xbt/log_default_appender.c \
+ xbt/log.c xbt/xbt_log_appender_file.c \
+ xbt/xbt_log_layout_simple.c xbt/xbt_log_layout_format.c \
xbt/mallocator.c \
xbt/dynar.c \
xbt/dict.c xbt/dict_elm.c xbt/dict_cursor.c \
xbt/xbt_main.c \
xbt/config.c \
xbt/cunit.c \
- xbt/graphxml_parse.c \
- \
- gras/gras.c \
- \
- gras/Transport/transport.c gras/Transport/transport_private.h \
- \
- gras/DataDesc/ddt_create.c \
- gras/DataDesc/ddt_convert.c gras/DataDesc/ddt_exchange.c \
- gras/DataDesc/cbps.c gras/DataDesc/datadesc.c \
- gras/DataDesc/datadesc_interface.h gras/DataDesc/datadesc_private.h \
- gras/DataDesc/ddt_parse.c gras/DataDesc/ddt_parse.yy.c gras/DataDesc/ddt_parse.yy.h \
- \
- gras/Msg/msg.c gras/Msg/rpc.c gras/Msg/timer.c \
- gras/Msg/msg_interface.h gras/Msg/msg_private.h \
- \
- gras/Virtu/process.c gras/Virtu/gras_module.c
+ xbt/graphxml_parse.c
RL_SRC= \
gras/rl_stubs.c xbt/xbt_thread.c \
gras/Msg/rl_msg.c
SG_SRC= \
- gras/sg_stubs.c \
xbt/context.c \
\
surf/maxmin.c \
+ surf/lagrange.c \
surf/trace_mgr.c \
surf/surf.c \
surf/surfxml_parse.c \
surf/network_dassf.c \
surf/workstation_KCCFLN05.c \
\
- msg/msg_config.c \
- msg/task.c msg/host.c msg/m_process.c msg/gos.c \
- msg/global.c msg/environment.c msg/deployment.c \
- \
simdag/sd_global.c simdag/sd_link.c simdag/sd_task.c \
- simdag/sd_workstation.c \
- \
- gras/Transport/sg_transport.c gras/Transport/transport_plugin_sg.c \
- \
- gras/Virtu/sg_emul.c \
- gras/Virtu/sg_process.c gras/Virtu/sg_time.c \
- gras/Virtu/sg_dns.c\
- \
- gras/Msg/sg_msg.c
+ simdag/sd_workstation.c
+
+GTNETS_SRC= \
+ surf/gtnets/gtnets_simulator.cc \
+ surf/gtnets/gtnets_topology.cc \
+ surf/gtnets/gtnets_interface.cc \
+ surf/network_gtnets.c
+
+if USE_GTNETS
+ SG_SRC+=$(GTNETS_SRC)
+else
+ EXTRA_DIST+=$(GTNETS_SRC)
+endif
if HAVE_SDP
- SG_SRC+= surf/sdp.c
+ SG_SRC+= surf/sdp.c
+else
+ EXTRA_DIST+=surf/sdp.c
endif
SIMIX_SRC= \
simix/smx_process.c \
simix/smx_action.c \
simix/smx_synchro.c
-if USE_SIMIX
- SG_SRC+=SIMIX_SRC
-else
- EXTRA_DIST+=SIMIX_SRC
-endif
+MSG_SRC= msg/msg_config.c \
+ msg/task.c msg/host.c msg/m_process.c msg/gos.c \
+ msg/global.c msg/environment.c msg/deployment.c
+
+GRAS_SG_SRC= gras/Transport/sg_transport.c gras/Transport/transport_plugin_sg.c \
+ \
+ gras/Virtu/sg_emul.c \
+ gras/Virtu/sg_process.c gras/Virtu/sg_time.c \
+ gras/Virtu/sg_dns.c\
+ \
+ gras/sg_stubs.c \
+ gras/Msg/sg_msg.c
+
+SG_SRC+=$(SIMIX_SRC) $(MSG_SRC) $(GRAS_SG_SRC)
+
+COMMON_SRC+=gras/gras.c \
+ gras/Transport/transport.c gras/Transport/transport_private.h \
+ gras/Msg/msg.c gras/Msg/rpc.c gras/Msg/timer.c \
+ gras/Msg/msg_interface.h gras/Msg/msg_private.h \
+ \
+ gras/Virtu/process.c gras/Virtu/gras_module.c \
+ \
+ gras/DataDesc/ddt_create.c \
+ gras/DataDesc/ddt_convert.c gras/DataDesc/ddt_exchange.c \
+ gras/DataDesc/cbps.c gras/DataDesc/datadesc.c \
+ gras/DataDesc/datadesc_interface.h gras/DataDesc/datadesc_private.h \
+ gras/DataDesc/ddt_parse.c gras/DataDesc/ddt_parse.yy.c gras/DataDesc/ddt_parse.yy.h
AMOK_SRC= \
amok/amok_base.c \
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
+ xbt/xbt_str.c \
+ xbt/config.c
TEST_UNITS= ./cunit_unit.c ./ex_unit.c \
./dynar_unit.c ./dict_unit.c ./set_unit.c ./swag_unit.c \
- ./config_unit.c
+ ./xbt_str_unit.c \
+ ./config_unit.c
BUILT_SOURCES=../include/surf/surfxml.h surf/surfxml.c \
../include/xbt/graphxml.h xbt/graphxml.c \
testall_SOURCES= $(TEST_UNITS) simgrid_units_main.c
testall_LDADD=libgras.la
TESTS=testall
+TESTS_ENVIRONMENT=$(SG_TEST_EXENV)
EXTRA_DIST+=$(testall_SOURCES)
@top_srcdir@/tools/sg_unit_extractor.pl $^
./ex_unit.c: xbt/ex.c
@top_srcdir@/tools/sg_unit_extractor.pl $^
+./xbt_str_unit.c: xbt/xbt_str.c
+ @top_srcdir@/tools/sg_unit_extractor.pl $^
./dynar_unit.c: xbt/dynar.c
@top_srcdir@/tools/sg_unit_extractor.pl $^
./dict_unit.c: xbt/dict.c
###
libgras_la_SOURCES= $(COMMON_SRC) $(RL_SRC) $(AMOK_SRC)
-libgras_la_LDFLAGS = -no-undefined $(VERSION_INFO) @GRAS_DEP@ @LD_DYNAMIC_FLAGS@ -lm
+libgras_la_LDFLAGS = -no-undefined $(VERSION_INFO) @GTNETS_LDFLAGS@ @GRAS_DEP@ @LD_DYNAMIC_FLAGS@ -lm
libsimgrid_la_SOURCES= $(COMMON_SRC) $(SG_SRC) $(AMOK_SRC)
-libsimgrid_la_LDFLAGS = -no-undefined $(VERSION_INFO) @SIMGRID_DEP@ @LD_DYNAMIC_FLAGS@ -lm
+libsimgrid_la_LDFLAGS = -no-undefined $(VERSION_INFO) @GTNETS_LDFLAGS@ @SIMGRID_DEP@ @LD_DYNAMIC_FLAGS@ -lm