Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
86b82ddad732523c6f56f910b53b0e14f198cb87
[simgrid.git] / src / Makefile.am
1 SUBDIRS=.  
2 # amok not ported to GRAS NG yet
3 AM_CFLAGS= -DNDEBUG 
4
5 # -DNLOG   cuts absolutely all logs at compilation time.
6 # -DNDEBUG cuts asserts and logs at "trace" and "debug" levels.
7
8 # -g -ffast-math -funroll-loops -O3 -fno-strict-aliasing
9 # Those should be added by configure when using gcc
10 # fast-math is nasty when using IEEE floating point semantic
11 # strict-aliasing breaks my type-punning bad habit.
12
13
14 MAINTAINERCLEANFILES=Makefile.in
15 INCLUDES= -I$(top_srcdir)/include \
16           @CFLAGS_SimGrid@
17 EXTRA_DIST= \
18         gras_private.h\
19         \
20         gros/dict_private.h \
21         \
22         gras/Transport/transport_interface.h \
23         gras/Virtu/virtu_interface.h \
24         gras/Virtu/virtu_rl.h \
25         gras/Virtu/virtu_sg.h \
26         gras/DataDesc/ddt_parse.yy.l gras/DataDesc/ddt_parse.yy.c
27
28 #LIBRARY_VERSION= 0:0:0
29 #                 | | |
30 #          +------+ | +---+
31 #          |        |     |
32 #       current:revision:age
33 #          |        |     |
34 #          |        |     +- Increment if interfaces have been added
35 #          |        |        Set to zero if interfaces have been removed or
36 #          |        |        changed
37 #          |        +- Increment if source code has changed
38 #          |           Set to zero if current is incremented
39 #          +- Increment if interfaces have been added, removed or changed
40
41 VERSION_INFO= -release 20040722 -version-info 0:0:0
42 # from `info libtool "Updating version info"` 
43 # and  `info libtool "Release numbers"` 
44 #
45 # A) For stable library (interface wise), you should use --version-info:
46 #
47 # - Begin with C:R:A = 0:0:0 (ie here, VERSION_INFO= -version-info 0:0:0)
48 # - Do not update it before public release (keep numbers small)
49 #
50 # ----------------------------------------------------------------------+
51 # +   Interface     |  code of existing  | Interface | New version info |
52 # | removal/change? | interface changed? | addition? |                  |
53 # +-----------------+--------------------+-----------+------------------+
54 # |      yes        |   must be yes ;)   |           |  C++ : 0   : 0   |
55 # |      no         |        yes         |    yes    |  C   : R++ : A++ |
56 # |      no         |        yes         |    no     |  C   : R++ : A   |
57 # |      no         |        no          |    yes    |  C   : R   : A++ |
58 # |      no         |        no          |    no     |  C   : R   : A   |
59 # +-----------------+--------------------+-----------+------------------+
60 #
61 # B) For rapidely changing library, you should go for the -release flag
62 #
63 #  It modifies the library name, and you thus cannot say that a library
64 #   using this trick is ready for a "stable" release (say, in Debian).
65
66 if HAVE_SG
67  lib_LTLIBRARIES= libgrasrl.la libgrassg.la
68 else
69  lib_LTLIBRARIES= libgrasrl.la
70 endif
71
72 #  gros/config.c                               
73
74 COMMON_S=\
75   \
76   gros/module.c      gros/gros_interface.h                                      \
77   gros/log.c         gros/log_default_appender.c   gros/error.c                 \
78   gros/dynar.c                                                                  \
79   gros/dict.c        gros/dict_elm.c               gros/dict_cursor.c           \
80   gros/set.c                                                                    \
81   \
82   \
83   gras/Transport/transport.c          gras/Transport/transport_private.h   gras/Transport/transport_plugin_buf.c  \
84   \
85   gras/DataDesc/ddt_create.c          \
86   gras/DataDesc/ddt_convert.c         gras/DataDesc/ddt_exchange.c     \
87   gras/DataDesc/cbps.c                gras/DataDesc/datadesc.c         \
88   gras/DataDesc/datadesc_interface.h  gras/DataDesc/datadesc_private.h \
89   gras/DataDesc/ddt_parse.c           gras/DataDesc/ddt_parse.yy.c         gras/DataDesc/ddt_parse.yy.h \
90   \
91   gras/Msg/msg.c                      gras/Msg/msg_interface.h             gras/Msg/msg_private.h \
92   \
93   gras/Virtu/process.c
94
95 gras/DataDesc/ddt_parse.yy.c: gras/DataDesc/ddt_parse.yy.l
96         @LEX@ -o$@ -Pgras_ddt_parse_ $^
97
98 libgrasrl_la_SOURCES= $(COMMON_S) \
99   gras/Transport/rl_transport.c  gras/Transport/transport_plugin_tcp.c  gras/Transport/transport_plugin_file.c      \
100   \
101   gras/Virtu/rl_process.c        gras/Virtu/rl_time.c                   gras/Virtu/rl_conditional.c
102 libgrasrl_la_LDFLAGS = $(VERSION_INFO)
103
104 if HAVE_SG
105   libgrassg_la_SOURCES= $(COMMON_S) \
106     gras/Transport/sg_transport.c  gras/Transport/transport_plugin_sg.c             \
107     \
108     gras/Virtu/sg_process.c        gras/Virtu/sg_time.c                 gras/Virtu/sg_conditional.c
109   libgrassg_la_LDFLAGS = $(VERSION_INFO)
110 endif