Logo AND Algorithmique Numérique Distribuée

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