Logo AND Algorithmique Numérique Distribuée

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