Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Regenerate with flexml 1.2
[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 -I$(top_srcdir)/src/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/surfxml.dtd \
35         surf/network_private.h \
36         surf/network_dassf_private.h \
37         surf/workstation_KCCFLN05_private.h \
38         \
39         include/surf/maxmin.h \
40         include/surf/trace_mgr.h \
41         include/surf/surf.h \
42         include/surf/surf_parse.h \
43         \
44         msg/private.h \
45         \
46         gras/Transport/transport_interface.h \
47         gras/Virtu/virtu_interface.h          gras/Virtu/virtu_private.h\
48         gras/Virtu/virtu_rl.h                 gras/Virtu/virtu_sg.h \
49         gras/DataDesc/ddt_parse.yy.l          gras/DataDesc/ddt_parse.yy.c
50
51
52 #        gras_private.h
53
54 #LIBRARY_VERSION= 0:0:0
55 #                 | | |
56 #          +------+ | +---+
57 #          |        |     |
58 #       current:revision:age
59 #          |        |     |
60 #          |        |     +- Increment if interfaces have been added
61 #          |        |        Set to zero if interfaces have been removed or
62 #          |        |        changed
63 #          |        +- Increment if source code has changed
64 #          |           Set to zero if current is incremented
65 #          +- Increment if interfaces have been added, removed or changed
66
67 VERSION_INFO= -release 20050131 -version-info 0:0:0
68 # from `info libtool "Updating version info"` 
69 # and  `info libtool "Release numbers"` 
70 #
71 # A) For stable library (interface wise), you should use --version-info:
72 #
73 # - Begin with C:R:A = 0:0:0 (ie here, VERSION_INFO= -version-info 0:0:0)
74 # - Do not update it before public release (keep numbers small)
75 #
76 # ----------------------------------------------------------------------+
77 # +   Interface     |  code of existing  | Interface | New version info |
78 # | removal/change? | interface changed? | addition? |                  |
79 # +-----------------+--------------------+-----------+------------------+
80 # |      yes        |   must be yes ;)   |           |  C++ : 0   : 0   |
81 # |      no         |        yes         |    yes    |  C   : R++ : A++ |
82 # |      no         |        yes         |    no     |  C   : R++ : A   |
83 # |      no         |        no          |    yes    |  C   : R   : A++ |
84 # |      no         |        no          |    no     |  C   : R   : A   |
85 # +-----------------+--------------------+-----------+------------------+
86 #
87 # B) For rapidely changing library, you should go for the -release flag
88 #
89 #  It modifies the library name, and you thus cannot say that a library
90 #   using this trick is ready for a "stable" release (say, in Debian).
91
92 lib_LTLIBRARIES= libsimgrid.la libgras.la
93
94 COMMON_SRC=\
95   \
96   xbt_modinter.h    gras_modinter.h                                            \
97   \
98   xbt/sysdep.c                                                                 \
99   xbt/log.c         xbt/log_default_appender.c   xbt/error.c                 \
100   xbt/dynar.c                                                                  \
101   xbt/dict.c        xbt/dict_elm.c               xbt/dict_cursor.c           \
102   xbt/heap.c                                                                    \
103   xbt/fifo.c                                                                    \
104   xbt/swag.c                                                                   \
105   xbt/set.c                                                                    \
106   xbt/module.c                                                                 \
107   xbt/config.c                                                                 \
108   xbt/context.c                                                                \
109   \
110   surf/maxmin.c                                                              \
111   surf/trace_mgr.c                                                           \
112   surf/surf.c                                                                \
113   surf/surf_parse.c                                                          \
114   surf/cpu.c   surf/network.c   surf/workstation.c                           \
115   surf/network_dassf.c                                                       \
116   surf/workstation_KCCFLN05.c  \
117   include/surf/surfxml.h \
118   \
119   msg/task.c msg/host.c msg/m_process.c msg/gos.c \
120   msg/global.c msg/environment.c msg/deployment.c  \
121   \
122   gras/gras.c \
123   \
124   gras/Transport/transport.c          gras/Transport/transport_private.h   gras/Transport/transport_plugin_buf.c  \
125   \
126   gras/DataDesc/ddt_create.c          \
127   gras/DataDesc/ddt_convert.c         gras/DataDesc/ddt_exchange.c     \
128   gras/DataDesc/cbps.c                gras/DataDesc/datadesc.c         \
129   gras/DataDesc/datadesc_interface.h  gras/DataDesc/datadesc_private.h \
130   gras/DataDesc/ddt_parse.c           gras/DataDesc/ddt_parse.yy.c         gras/DataDesc/ddt_parse.yy.h \
131   \
132   gras/Msg/msg.c                      \
133   gras/Msg/msg_interface.h            gras/Msg/msg_private.h           \
134   \
135   gras/Virtu/process.c
136
137 #gras/Msg/timer.c                 
138
139 RL_SRC= \
140   gras/Transport/rl_transport.c  gras/Transport/transport_plugin_tcp.c  gras/Transport/transport_plugin_file.c  \
141   \
142   gras/Virtu/rl_process.c        gras/Virtu/rl_time.c                   gras/Virtu/rl_conditional.c
143
144 SG_SRC=  \
145   gras/Transport/sg_transport.c  gras/Transport/transport_plugin_sg.c             \
146   \
147   gras/Virtu/sg_process.c        gras/Virtu/sg_time.c                 gras/Virtu/sg_conditional.c 
148
149 gras/DataDesc/ddt_parse.yy.c: gras/DataDesc/ddt_parse.yy.l
150         @LEX@ -o$@ -Pgras_ddt_parse_ $^
151
152 surf/surf_parse.c: surf/surfxml.c
153
154 if MAINTAINER_MODE
155 surf/surfxml.c: surf/surfxml.l
156         @LEX@ -o$@ -Psurf_parse_ $^
157
158 surf/surfxml.l: surf/surfxml.dtd
159         cd surf; flexml -b 10000000 -S -L surfxml.dtd ; \
160         mv surfxml.l surfxml.l.bak ; \
161         sed 's/surfxml\.h/surf\/surfxml\.h/g' surfxml.l.bak > surfxml.l
162
163 include/surf/surfxml.h: surf/surfxml.dtd
164         cd include/surf; flexml -H -L ../../surf/surfxml.dtd
165 endif
166
167 libgras_la_SOURCES= $(COMMON_SRC) $(RL_SRC)
168 libgras_la_LDFLAGS = $(VERSION_INFO) @GRAS_DEP@
169
170 libsimgrid_la_SOURCES= $(COMMON_SRC) $(SG_SRC)
171 libsimgrid_la_LDFLAGS = $(VERSION_INFO) @SIMGRID_DEP@