4 # -DNLOG cuts absolutely all logs at compilation time.
5 # -DNDEBUG cuts asserts and logs at "trace" and "debug" levels.
7 # -g -ffast-math -funroll-loops -O3 -fno-strict-aliasing
8 # Those should be added by configure when using gcc
9 # fast-math is nasty when using IEEE floating point semantic
10 # strict-aliasing breaks my type-punning bad habit.
13 MAINTAINERCLEANFILES=Makefile.in
14 INCLUDES= @CFLAGS_SimGrid@
16 EXTRA_DIST= ./gras_private.h \
18 Transport/transport_interface.h \
19 Virtu/virtu_interface.h \
22 DataDesc/ddt_parse.yy.l DataDesc/ddt_parse.yy.c
24 #LIBRARY_VERSION= 0:0:0
28 # current:revision:age
30 # | | +- Increment if interfaces have been added
31 # | | Set to zero if interfaces have been removed or
33 # | +- Increment if source code has changed
34 # | Set to zero if current is incremented
35 # +- Increment if interfaces have been added, removed or changed
37 VERSION_INFO= -release 20040722 -version-info 0:0:0
38 # from `info libtool "Updating version info"`
39 # and `info libtool "Release numbers"`
41 # A) For stable library (interface wise), you should use --version-info:
43 # - Begin with C:R:A = 0:0:0 (ie here, VERSION_INFO= -version-info 0:0:0)
44 # - Do not update it before public release (keep numbers small)
46 # ----------------------------------------------------------------------+
47 # + Interface | code of existing | Interface | New version info |
48 # | removal/change? | interface changed? | addition? | |
49 # +-----------------+--------------------+-----------+------------------+
50 # | yes | must be yes ;) | | C++ : 0 : 0 |
51 # | no | yes | yes | C : R++ : A++ |
52 # | no | yes | no | C : R++ : A |
53 # | no | no | yes | C : R : A++ |
54 # | no | no | no | C : R : A |
55 # +-----------------+--------------------+-----------+------------------+
57 # B) For rapidely changing library, you should go for the -release flag
59 # It modifies the library name, and you thus cannot say that a library
60 # using this trick is ready for a "stable" release (say, in Debian).
63 lib_LTLIBRARIES= libgrasrl.la libgrassg.la
65 lib_LTLIBRARIES= libgrasrl.la
72 Core/module.c Core/core_interface.h \
73 Core/log.c Core/log_default_appender.c Core/error.c \
75 Core/dict.c Core/dict_elm.c Core/dict_cursor.c \
79 Transport/transport.c Transport/transport_private.h Transport/transport_plugin_buf.c \
81 DataDesc/ddt_create.c \
82 DataDesc/ddt_convert.c DataDesc/ddt_exchange.c \
83 DataDesc/cbps.c DataDesc/datadesc.c \
84 DataDesc/datadesc_interface.h DataDesc/datadesc_private.h \
85 DataDesc/ddt_parse.c DataDesc/ddt_parse.yy.c DataDesc/ddt_parse.yy.h \
87 Msg/msg.c Msg/msg_interface.h Msg/msg_private.h \
91 # DataDesc/ddt_declare.c
93 DataDesc/ddt_parse.yy.c: DataDesc/ddt_parse.yy.l
94 @LEX@ -o$@ -Pgras_ddt_parse_ $^
96 libgrasrl_la_SOURCES= $(COMMON_S) \
97 Transport/rl_transport.c Transport/transport_plugin_tcp.c Transport/transport_plugin_file.c \
99 Virtu/rl_process.c Virtu/rl_time.c Virtu/rl_conditional.c
100 libgrasrl_la_LDFLAGS = $(VERSION_INFO)
103 libgrassg_la_SOURCES= $(COMMON_S) \
104 Transport/sg_transport.c Transport/transport_plugin_sg.c \
106 Virtu/sg_process.c Virtu/sg_time.c Virtu/sg_conditional.c
107 libgrassg_la_LDFLAGS = $(VERSION_INFO)