Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Adapt gras_userdata_new to the change in gras_userdata_set
[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= -version-info 1:0:0
14 # from `info libtool "Updating version info"`
15 #
16 # - Begin with C:R:A = 0:0:0
17 # - Do not update it before public release (keep numbers small)
18 #
19 # ----------------------------------------------------------------------+
20 # +   Interface     |  code of existing  | Interface | New version info |
21 # | removal/change? | interface changed? | addition? |                  |
22 # +-----------------+--------------------+-----------+------------------+
23 # |      yes        |   must be yes ;)   |           |  C++ : 0   : 0   |
24 # |      no         |        yes         |    yes    |  C   : R++ : A++ |
25 # |      no         |        yes         |    no     |  C   : R++ : A   |
26 # |      no         |        no          |    yes    |  C   : R   : A++ |
27 # |      no         |        no          |    no     |  C   : R   : A   |
28 # +-----------------+--------------------+-----------+------------------+
29
30 if HAVE_SG
31  lib_LTLIBRARIES= libgrasrl.la libgrassg.la
32 else
33  lib_LTLIBRARIES= libgrasrl.la
34 endif
35
36 COMMON_S=\
37   \
38   Core/module.c      Core/core_interface.h                                      \
39   Core/log.c         Core/log_default_appender.c   Core/error.c                 \
40   Core/dynar.c                                                                  \
41   Core/dict.c        Core/dict_elm.c               Core/dict_cursor.c           \
42   Core/set.c                                                                    \
43   \
44   Core/config.c                               \
45   \
46   Transport/transport.c          Transport/transport_private.h  \
47   \
48   DataDesc/ddt_create.c          \
49   DataDesc/ddt_convert.c         DataDesc/ddt_exchange.c     \
50   DataDesc/cbps.c                DataDesc/datadesc.c         \
51   DataDesc/datadesc_interface.h  DataDesc/datadesc_private.h \
52   DataDesc/ddt_parse.c  DataDesc/ddt_parse.yy.c DataDesc/ddt_parse.yy.h \
53   \
54   Msg/msg.c   Msg/msg_interface.h   Msg/msg_private.h \
55   \
56   Virtu/process.c
57
58 # DataDesc/ddt_declare.c 
59
60 DataDesc/ddt_parse.yy.c: DataDesc/ddt_parse.yy.l
61         @LEX@ -o$@ -Pgras_ddt_parse_ $^
62
63 libgrasrl_la_SOURCES= $(COMMON_S) \
64   Transport/rl_transport.c  Transport/transport_plugin_tcp.c  Transport/transport_plugin_file.c      \
65   \
66   Virtu/rl_process.c        Virtu/rl_time.c                   Virtu/rl_conditional.c
67 libgrasrl_la_LDFLAGS = $(VERSION_INFO)
68
69 if HAVE_SG
70   libgrassg_la_SOURCES= $(COMMON_S) \
71     Transport/sg_transport.c  Transport/transport_plugin_sg.c             \
72     \
73     Virtu/sg_process.c        Virtu/sg_time.c                   Virtu/sg_conditional.c
74   libgrassg_la_LDFLAGS = $(VERSION_INFO)
75 endif