Logo AND Algorithmique Numérique Distribuée

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