Logo AND Algorithmique Numérique Distribuée

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