Logo AND Algorithmique Numérique Distribuée

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