Logo AND Algorithmique Numérique Distribuée

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