Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Now, a process can be killed and all process are killed at the end of the simulation.
[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 EXTRA_DIST= \
18         \
19         portable.h \
20         \
21         xbt/dict_private.h \
22         xbt/heap_private.h \
23         xbt/fifo_private.h \
24         xbt/context_private.h xbt/context_win32.h xbt/context_win32.c\
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.c \
32         surf/surfxml.l \
33         surf/surfxml.c \
34         surf/network_private.h \
35         surf/workstation_private_KCCFLN05.h \
36         \
37         msg/private.h \
38         \
39         gras/Transport/transport_interface.h \
40         gras/Virtu/virtu_interface.h \
41         gras/Virtu/virtu_rl.h                 gras/Virtu/virtu_sg.h \
42         gras/DataDesc/ddt_parse.yy.l          gras/DataDesc/ddt_parse.yy.c
43
44
45 #        gras_private.h
46
47 #LIBRARY_VERSION= 0:0:0
48 #                 | | |
49 #          +------+ | +---+
50 #          |        |     |
51 #       current:revision:age
52 #          |        |     |
53 #          |        |     +- Increment if interfaces have been added
54 #          |        |        Set to zero if interfaces have been removed or
55 #          |        |        changed
56 #          |        +- Increment if source code has changed
57 #          |           Set to zero if current is incremented
58 #          +- Increment if interfaces have been added, removed or changed
59
60 VERSION_INFO= -release 20040722 -version-info 0:0:0
61 # from `info libtool "Updating version info"` 
62 # and  `info libtool "Release numbers"` 
63 #
64 # A) For stable library (interface wise), you should use --version-info:
65 #
66 # - Begin with C:R:A = 0:0:0 (ie here, VERSION_INFO= -version-info 0:0:0)
67 # - Do not update it before public release (keep numbers small)
68 #
69 # ----------------------------------------------------------------------+
70 # +   Interface     |  code of existing  | Interface | New version info |
71 # | removal/change? | interface changed? | addition? |                  |
72 # +-----------------+--------------------+-----------+------------------+
73 # |      yes        |   must be yes ;)   |           |  C++ : 0   : 0   |
74 # |      no         |        yes         |    yes    |  C   : R++ : A++ |
75 # |      no         |        yes         |    no     |  C   : R++ : A   |
76 # |      no         |        no          |    yes    |  C   : R   : A++ |
77 # |      no         |        no          |    no     |  C   : R   : A   |
78 # +-----------------+--------------------+-----------+------------------+
79 #
80 # B) For rapidely changing library, you should go for the -release flag
81 #
82 #  It modifies the library name, and you thus cannot say that a library
83 #   using this trick is ready for a "stable" release (say, in Debian).
84
85 lib_LTLIBRARIES= libsimgrid.la libgras.la
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   xbt/context.c                                                                \
102   \
103   surf/maxmin.c                                                              \
104   surf/trace_mgr.c                                                           \
105   surf/surf.c                                                                \
106   surf/surf_parse.c                                                          \
107   surf/cpu.c   surf/network.c   surf/workstation.c                           \
108   surf/workstation_KCCFLN05.c  \
109   \
110   msg/task.c msg/host.c msg/m_process.c msg/gos.c \
111   msg/global.c msg/environment.c msg/deployment.c  \
112   \
113   gras/gras.c \
114   \
115   gras/Transport/transport.c          gras/Transport/transport_private.h   gras/Transport/transport_plugin_buf.c  \
116   \
117   gras/DataDesc/ddt_create.c          \
118   gras/DataDesc/ddt_convert.c         gras/DataDesc/ddt_exchange.c     \
119   gras/DataDesc/cbps.c                gras/DataDesc/datadesc.c         \
120   gras/DataDesc/datadesc_interface.h  gras/DataDesc/datadesc_private.h \
121   gras/DataDesc/ddt_parse.c           gras/DataDesc/ddt_parse.yy.c         gras/DataDesc/ddt_parse.yy.h \
122   \
123   gras/Msg/msg.c                      gras/Msg/msg_interface.h             gras/Msg/msg_private.h \
124   \
125   gras/Virtu/process.c
126
127 gras/DataDesc/ddt_parse.yy.c: gras/DataDesc/ddt_parse.yy.l
128         @LEX@ -o$@ -Pgras_ddt_parse_ $^
129
130 surf/surf_parse.c: surf/surfxml.c
131
132 surf/surfxml.c: surf/surfxml.l
133         @LEX@ -o$@ -Psurf_parse_ $^
134
135 surf/surfxml.l: surf/surfxml.dtd
136         cd surf; flexml -b 10000000 -S -L surfxml.dtd ; \
137         mv surfxml.h surfxml.h.bak ; \
138         sed 's/surfxml\.h/surf\/surfxml\.h/g' surfxml.h.bak > surfxml.h
139
140
141 libgras_la_SOURCES= $(COMMON_S) \
142   gras/Transport/rl_transport.c  gras/Transport/transport_plugin_tcp.c  gras/Transport/transport_plugin_file.c      \
143   \
144   gras/Virtu/rl_process.c        gras/Virtu/rl_time.c                   gras/Virtu/rl_conditional.c
145 libgras_la_LDFLAGS = $(VERSION_INFO) @GRAS_DEP@
146
147 libsimgrid_la_SOURCES= $(COMMON_S) \
148   gras/Transport/sg_transport.c  gras/Transport/transport_plugin_sg.c             \
149   \
150   gras/Virtu/sg_process.c        gras/Virtu/sg_time.c                 gras/Virtu/sg_conditional.c
151 libsimgrid_la_LDFLAGS = $(VERSION_INFO) @SIMGRID_DEP@