Logo AND Algorithmique Numérique Distribuée

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