Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
First attempt on SURF design. I'd like a 5'10" short board with a swallow
[simgrid.git] / src / gras / Makefile.am
1 SUBDIRS=. Tests
2 AM_CFLAGS= -DNDEBUG 
3
4 # -DNLOG   cuts absolutely all logs at compilation time.
5 # -DNDEBUG cuts asserts and logs at "trace" and "debug" levels.
6
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.
11
12
13 MAINTAINERCLEANFILES=Makefile.in
14 INCLUDES= @CFLAGS_SimGrid@
15
16 EXTRA_DIST= ./gras_private.h    \
17         Core/dict_private.h \
18         Transport/transport_interface.h \
19         Virtu/virtu_interface.h \
20         Virtu/virtu_rl.h \
21         Virtu/virtu_sg.h \
22         DataDesc/ddt_parse.yy.l DataDesc/ddt_parse.yy.c
23
24 #LIBRARY_VERSION= 0:0:0
25 #                 | | |
26 #          +------+ | +---+
27 #          |        |     |
28 #       current:revision:age
29 #          |        |     |
30 #          |        |     +- Increment if interfaces have been added
31 #          |        |        Set to zero if interfaces have been removed or
32 #          |        |        changed
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
36
37 VERSION_INFO= -release 20040722 -version-info 0:0:0
38 # from `info libtool "Updating version info"` 
39 # and  `info libtool "Release numbers"` 
40 #
41 # A) For stable library (interface wise), you should use --version-info:
42 #
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)
45 #
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 # +-----------------+--------------------+-----------+------------------+
56 #
57 # B) For rapidely changing library, you should go for the -release flag
58 #
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).
61
62 if HAVE_SG
63  lib_LTLIBRARIES= libgrasrl.la libgrassg.la
64 else
65  lib_LTLIBRARIES= libgrasrl.la
66 endif
67
68 #  Core/config.c                               
69
70 COMMON_S=\
71   \
72   Core/module.c      Core/core_interface.h                                      \
73   Core/log.c         Core/log_default_appender.c   Core/error.c                 \
74   Core/dynar.c                                                                  \
75   Core/dict.c        Core/dict_elm.c               Core/dict_cursor.c           \
76   Core/set.c                                                                    \
77   \
78   \
79   Transport/transport.c          Transport/transport_private.h   Transport/transport_plugin_buf.c  \
80   \
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 \
86   \
87   Msg/msg.c   Msg/msg_interface.h   Msg/msg_private.h \
88   \
89   Virtu/process.c
90
91 # DataDesc/ddt_declare.c 
92
93 DataDesc/ddt_parse.yy.c: DataDesc/ddt_parse.yy.l
94         @LEX@ -o$@ -Pgras_ddt_parse_ $^
95
96 libgrasrl_la_SOURCES= $(COMMON_S) \
97   Transport/rl_transport.c  Transport/transport_plugin_tcp.c  Transport/transport_plugin_file.c      \
98   \
99   Virtu/rl_process.c        Virtu/rl_time.c                   Virtu/rl_conditional.c
100 libgrasrl_la_LDFLAGS = $(VERSION_INFO)
101
102 if HAVE_SG
103   libgrassg_la_SOURCES= $(COMMON_S) \
104     Transport/sg_transport.c  Transport/transport_plugin_sg.c             \
105     \
106     Virtu/sg_process.c        Virtu/sg_time.c                   Virtu/sg_conditional.c
107   libgrassg_la_LDFLAGS = $(VERSION_INFO)
108 endif