Logo AND Algorithmique Numérique Distribuée

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