Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
28a56a21aa1402776bc839b0b5fc950dc3ddf31f
[simgrid.git] / src / gras / Makefile.am
1 SUBDIRS=. Tests
2 AM_CFLAGS=-p -g -finline-functions -ffast-math -funroll-loops\
3  -funroll-all-loops -fexpensive-optimizations -O3 -fno-omit-frame-pointer\
4  -DGRAS_LOG_STATIC_THRESHOLD=gras_log_priority_infinite -DNDEBUG
5 MAINTAINERCLEANFILES=Makefile.in
6 INCLUDES= -I$(top_srcdir)/src/include \
7           @CFLAGS_SimGrid@
8 EXTRA_DIST= ./gras_private.h    \
9         Core/dict_private.h \
10         Transport/transport_interface.h \
11         Virtu/virtu_interface.h \
12         Virtu/virtu_rl.h \
13         Virtu/virtu_sg.h \
14         DataDesc/ddt_parse.yy.l DataDesc/ddt_parse.yy.c
15
16 VERSION_INFO= -release 20040722 -version-info 0:0:0
17 # from `info libtool "Updating version info"` 
18 # and  `info libtool "Release numbers"` 
19 #
20 # A) For stable library (interface wise), you should use --version-info:
21 #
22 # - Begin with C:R:A = 0:0:0 (ie here, VERSION_INFO= -version-info 0:0:0)
23 # - Do not update it before public release (keep numbers small)
24 #
25 # ----------------------------------------------------------------------+
26 # +   Interface     |  code of existing  | Interface | New version info |
27 # | removal/change? | interface changed? | addition? |                  |
28 # +-----------------+--------------------+-----------+------------------+
29 # |      yes        |   must be yes ;)   |           |  C++ : 0   : 0   |
30 # |      no         |        yes         |    yes    |  C   : R++ : A++ |
31 # |      no         |        yes         |    no     |  C   : R++ : A   |
32 # |      no         |        no          |    yes    |  C   : R   : A++ |
33 # |      no         |        no          |    no     |  C   : R   : A   |
34 # +-----------------+--------------------+-----------+------------------+
35 #
36 # B) For rapidely changing library, you should go for the -release flag
37 #
38 #  It modifies the library name, and you thus cannot say that a library
39 #   using this trick is ready for a "stable" release (say, in Debian).
40
41 if HAVE_SG
42  lib_LTLIBRARIES= libgrasrl.la libgrassg.la
43 else
44  lib_LTLIBRARIES= libgrasrl.la
45 endif
46
47 COMMON_S=\
48   \
49   Core/module.c      Core/core_interface.h                                      \
50   Core/log.c         Core/log_default_appender.c   Core/error.c                 \
51   Core/dynar.c                                                                  \
52   Core/dict.c        Core/dict_elm.c               Core/dict_cursor.c           \
53   Core/set.c                                                                    \
54   \
55   Core/config.c                               \
56   \
57   Transport/transport.c          Transport/transport_private.h   Transport/transport_plugin_buf.c  \
58   \
59   DataDesc/ddt_create.c          \
60   DataDesc/ddt_convert.c         DataDesc/ddt_exchange.c     \
61   DataDesc/cbps.c                DataDesc/datadesc.c         \
62   DataDesc/datadesc_interface.h  DataDesc/datadesc_private.h \
63   DataDesc/ddt_parse.c  DataDesc/ddt_parse.yy.c DataDesc/ddt_parse.yy.h \
64   \
65   Msg/msg.c   Msg/msg_interface.h   Msg/msg_private.h \
66   \
67   Virtu/process.c
68
69 # DataDesc/ddt_declare.c 
70
71 DataDesc/ddt_parse.yy.c: DataDesc/ddt_parse.yy.l
72         @LEX@ -o$@ -Pgras_ddt_parse_ $^
73
74 libgrasrl_la_SOURCES= $(COMMON_S) \
75   Transport/rl_transport.c  Transport/transport_plugin_tcp.c  Transport/transport_plugin_file.c      \
76   \
77   Virtu/rl_process.c        Virtu/rl_time.c                   Virtu/rl_conditional.c
78 libgrasrl_la_LDFLAGS = $(VERSION_INFO)
79
80 if HAVE_SG
81   libgrassg_la_SOURCES= $(COMMON_S) \
82     Transport/sg_transport.c  Transport/transport_plugin_sg.c             \
83     \
84     Virtu/sg_process.c        Virtu/sg_time.c                   Virtu/sg_conditional.c
85   libgrassg_la_LDFLAGS = $(VERSION_INFO)
86 endif