Logo AND Algorithmique Numérique Distribuée

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