X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/21f441b8a30d8a4399fd0da29c967c9032ff9b77..60f31f9d24bd348ccad2ea99ba96424360b11a92:/src/gras/Makefile.am diff --git a/src/gras/Makefile.am b/src/gras/Makefile.am index d2cf2f72ad..9bbaf9fb33 100644 --- a/src/gras/Makefile.am +++ b/src/gras/Makefile.am @@ -1,5 +1,14 @@ SUBDIRS=. Tests -DISTCLEANFILES=Makefile.in +AM_CFLAGS=-g -ffast-math -funroll-loops -O3 -fno-strict-aliasing + + +# -DNLOG -DNDEBUG + +# fast-math is nasty when using IEEE floating point semantic +# strict-aliasing breaks my type-punning bad habit. + + +MAINTAINERCLEANFILES=Makefile.in INCLUDES= -I$(top_srcdir)/src/include \ @CFLAGS_SimGrid@ EXTRA_DIST= ./gras_private.h \ @@ -7,16 +16,42 @@ EXTRA_DIST= ./gras_private.h \ Transport/transport_interface.h \ Virtu/virtu_interface.h \ Virtu/virtu_rl.h \ - Virtu/virtu_sg.h -# DataDesc/parse.yy.l + Virtu/virtu_sg.h \ + DataDesc/ddt_parse.yy.l DataDesc/ddt_parse.yy.c +VERSION_INFO= -release 20040722 -version-info 0:0:0 +# from `info libtool "Updating version info"` +# and `info libtool "Release numbers"` +# +# A) For stable library (interface wise), you should use --version-info: +# +# - Begin with C:R:A = 0:0:0 (ie here, VERSION_INFO= -version-info 0:0:0) +# - Do not update it before public release (keep numbers small) +# +# ----------------------------------------------------------------------+ +# + Interface | code of existing | Interface | New version info | +# | removal/change? | interface changed? | addition? | | +# +-----------------+--------------------+-----------+------------------+ +# | yes | must be yes ;) | | C++ : 0 : 0 | +# | no | yes | yes | C : R++ : A++ | +# | no | yes | no | C : R++ : A | +# | no | no | yes | C : R : A++ | +# | no | no | no | C : R : A | +# +-----------------+--------------------+-----------+------------------+ +# +# B) For rapidely changing library, you should go for the -release flag +# +# It modifies the library name, and you thus cannot say that a library +# using this trick is ready for a "stable" release (say, in Debian). if HAVE_SG - lib_LIBRARIES= libgrasrl.a libgrassg.a + lib_LTLIBRARIES= libgrasrl.la libgrassg.la else - lib_LIBRARIES= libgrasrl.a + lib_LTLIBRARIES= libgrasrl.la endif +# Core/config.c + COMMON_S=\ \ Core/module.c Core/core_interface.h \ @@ -25,14 +60,14 @@ COMMON_S=\ Core/dict.c Core/dict_elm.c Core/dict_cursor.c \ Core/set.c \ \ - Core/config.c \ \ - Transport/transport.c Transport/transport_private.h \ + Transport/transport.c Transport/transport_private.h Transport/transport_plugin_buf.c \ \ DataDesc/ddt_create.c \ DataDesc/ddt_convert.c DataDesc/ddt_exchange.c \ DataDesc/cbps.c DataDesc/datadesc.c \ DataDesc/datadesc_interface.h DataDesc/datadesc_private.h \ + DataDesc/ddt_parse.c DataDesc/ddt_parse.yy.c DataDesc/ddt_parse.yy.h \ \ Msg/msg.c Msg/msg_interface.h Msg/msg_private.h \ \ @@ -40,17 +75,19 @@ COMMON_S=\ # DataDesc/ddt_declare.c -DataDesc/parse.yy.c: DataDesc/parse.yy.l - flex -o$@ -Pgras_ddt_ $^ +DataDesc/ddt_parse.yy.c: DataDesc/ddt_parse.yy.l + @LEX@ -o$@ -Pgras_ddt_parse_ $^ -libgrasrl_a_SOURCES= $(COMMON_S) \ +libgrasrl_la_SOURCES= $(COMMON_S) \ Transport/rl_transport.c Transport/transport_plugin_tcp.c Transport/transport_plugin_file.c \ \ Virtu/rl_process.c Virtu/rl_time.c Virtu/rl_conditional.c +libgrasrl_la_LDFLAGS = $(VERSION_INFO) if HAVE_SG - libgrassg_a_SOURCES= $(COMMON_S) \ + libgrassg_la_SOURCES= $(COMMON_S) \ Transport/sg_transport.c Transport/transport_plugin_sg.c \ \ Virtu/sg_process.c Virtu/sg_time.c Virtu/sg_conditional.c + libgrassg_la_LDFLAGS = $(VERSION_INFO) endif