Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
renamed xbt_(*.[ch]) to \1.
[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         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 #        gras_private.h
31
32 #LIBRARY_VERSION= 0:0:0
33 #                 | | |
34 #          +------+ | +---+
35 #          |        |     |
36 #       current:revision:age
37 #          |        |     |
38 #          |        |     +- Increment if interfaces have been added
39 #          |        |        Set to zero if interfaces have been removed or
40 #          |        |        changed
41 #          |        +- Increment if source code has changed
42 #          |           Set to zero if current is incremented
43 #          +- Increment if interfaces have been added, removed or changed
44
45 VERSION_INFO= -release 20040722 -version-info 0:0:0
46 # from `info libtool "Updating version info"` 
47 # and  `info libtool "Release numbers"` 
48 #
49 # A) For stable library (interface wise), you should use --version-info:
50 #
51 # - Begin with C:R:A = 0:0:0 (ie here, VERSION_INFO= -version-info 0:0:0)
52 # - Do not update it before public release (keep numbers small)
53 #
54 # ----------------------------------------------------------------------+
55 # +   Interface     |  code of existing  | Interface | New version info |
56 # | removal/change? | interface changed? | addition? |                  |
57 # +-----------------+--------------------+-----------+------------------+
58 # |      yes        |   must be yes ;)   |           |  C++ : 0   : 0   |
59 # |      no         |        yes         |    yes    |  C   : R++ : A++ |
60 # |      no         |        yes         |    no     |  C   : R++ : A   |
61 # |      no         |        no          |    yes    |  C   : R   : A++ |
62 # |      no         |        no          |    no     |  C   : R   : A   |
63 # +-----------------+--------------------+-----------+------------------+
64 #
65 # B) For rapidely changing library, you should go for the -release flag
66 #
67 #  It modifies the library name, and you thus cannot say that a library
68 #   using this trick is ready for a "stable" release (say, in Debian).
69
70 if HAVE_SG
71  lib_LTLIBRARIES= libgrasrl.la libgrassg.la
72 else
73  lib_LTLIBRARIES= libgrasrl.la
74 endif
75
76
77 COMMON_S=\
78   \
79   xbt_modinter.h    gras_modinter.h                                            \
80   \
81   xbt/sysdep.c                                                                 \
82   xbt/log.c         xbt/log_default_appender.c   xbt/error.c                 \
83   xbt/dynar.c                                                                  \
84   xbt/dict.c        xbt/dict_elm.c               xbt/dict_cursor.c           \
85   xbt/heap.c                                                                    \
86   xbt/fifo.c                                                                    \
87   xbt/set.c                                                                    \
88   xbt/module.c                                                                 \
89   xbt/config.c                                                                 \
90   \
91   \
92   gras/Transport/transport.c          gras/Transport/transport_private.h   gras/Transport/transport_plugin_buf.c  \
93   \
94   gras/DataDesc/ddt_create.c          \
95   gras/DataDesc/ddt_convert.c         gras/DataDesc/ddt_exchange.c     \
96   gras/DataDesc/cbps.c                gras/DataDesc/datadesc.c         \
97   gras/DataDesc/datadesc_interface.h  gras/DataDesc/datadesc_private.h \
98   gras/DataDesc/ddt_parse.c           gras/DataDesc/ddt_parse.yy.c         gras/DataDesc/ddt_parse.yy.h \
99   \
100   gras/Msg/msg.c                      gras/Msg/msg_interface.h             gras/Msg/msg_private.h \
101   \
102   gras/Virtu/process.c
103
104 gras/DataDesc/ddt_parse.yy.c: gras/DataDesc/ddt_parse.yy.l
105         @LEX@ -o$@ -Pgras_ddt_parse_ $^
106
107 libgrasrl_la_SOURCES= $(COMMON_S) \
108   gras/Transport/rl_transport.c  gras/Transport/transport_plugin_tcp.c  gras/Transport/transport_plugin_file.c      \
109   \
110   gras/Virtu/rl_process.c        gras/Virtu/rl_time.c                   gras/Virtu/rl_conditional.c
111 libgrasrl_la_LDFLAGS = $(VERSION_INFO)
112
113 if HAVE_SG
114   libgrassg_la_SOURCES= $(COMMON_S) \
115     gras/Transport/sg_transport.c  gras/Transport/transport_plugin_sg.c             \
116     \
117     gras/Virtu/sg_process.c        gras/Virtu/sg_time.c                 gras/Virtu/sg_conditional.c
118   libgrassg_la_LDFLAGS = $(VERSION_INFO)
119 endif