6 # -DNLOG cuts absolutely all logs at compilation time.
7 # -DNDEBUG cuts asserts and logs at "trace" and "debug" levels.
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.
15 MAINTAINERCLEANFILES=Makefile.in
16 INCLUDES= -I$(top_srcdir)/include
24 xbt/context_private.h xbt/context_win32.h xbt/context_win32.c\
26 surf/maxmin_private.h \
27 surf/trace_mgr_private.h \
30 surf/workstation_private.h \
35 surf/network_private.h \
36 surf/workstation_KCCFLN05_private.h \
40 gras/Transport/transport_interface.h \
41 gras/Virtu/virtu_interface.h \
42 gras/Virtu/virtu_rl.h gras/Virtu/virtu_sg.h \
43 gras/DataDesc/ddt_parse.yy.l gras/DataDesc/ddt_parse.yy.c \
50 #LIBRARY_VERSION= 0:0:0
54 # current:revision:age
56 # | | +- Increment if interfaces have been added
57 # | | Set to zero if interfaces have been removed or
59 # | +- Increment if source code has changed
60 # | Set to zero if current is incremented
61 # +- Increment if interfaces have been added, removed or changed
63 VERSION_INFO= -release 20040722 -version-info 0:0:0
64 # from `info libtool "Updating version info"`
65 # and `info libtool "Release numbers"`
67 # A) For stable library (interface wise), you should use --version-info:
69 # - Begin with C:R:A = 0:0:0 (ie here, VERSION_INFO= -version-info 0:0:0)
70 # - Do not update it before public release (keep numbers small)
72 # ----------------------------------------------------------------------+
73 # + Interface | code of existing | Interface | New version info |
74 # | removal/change? | interface changed? | addition? | |
75 # +-----------------+--------------------+-----------+------------------+
76 # | yes | must be yes ;) | | C++ : 0 : 0 |
77 # | no | yes | yes | C : R++ : A++ |
78 # | no | yes | no | C : R++ : A |
79 # | no | no | yes | C : R : A++ |
80 # | no | no | no | C : R : A |
81 # +-----------------+--------------------+-----------+------------------+
83 # B) For rapidely changing library, you should go for the -release flag
85 # It modifies the library name, and you thus cannot say that a library
86 # using this trick is ready for a "stable" release (say, in Debian).
88 lib_LTLIBRARIES= libsimgrid.la libgras.la
92 xbt_modinter.h gras_modinter.h \
95 xbt/log.c xbt/log_default_appender.c xbt/error.c \
97 xbt/dict.c xbt/dict_elm.c xbt/dict_cursor.c \
110 surf/cpu.c surf/network.c surf/workstation.c \
111 surf/workstation_KCCFLN05.c \
113 msg/task.c msg/host.c msg/m_process.c msg/gos.c \
114 msg/global.c msg/environment.c msg/deployment.c \
118 gras/Transport/transport.c gras/Transport/transport_private.h gras/Transport/transport_plugin_buf.c \
120 gras/DataDesc/ddt_create.c \
121 gras/DataDesc/ddt_convert.c gras/DataDesc/ddt_exchange.c \
122 gras/DataDesc/cbps.c gras/DataDesc/datadesc.c \
123 gras/DataDesc/datadesc_interface.h gras/DataDesc/datadesc_private.h \
124 gras/DataDesc/ddt_parse.c gras/DataDesc/ddt_parse.yy.c gras/DataDesc/ddt_parse.yy.h \
126 gras/Msg/msg.c gras/Msg/msg_interface.h gras/Msg/msg_private.h \
130 gras/DataDesc/ddt_parse.yy.c: gras/DataDesc/ddt_parse.yy.l
131 @LEX@ -o$@ -Pgras_ddt_parse_ $^
133 surf/surf_parse.c: surf/surfxml.c
135 surf/surfxml.c: surf/surfxml.l
136 @LEX@ -o$@ -Psurf_parse_ $^
138 surf/surfxml.l: surf/surfxml.dtd
139 cd surf; flexml -b 10000000 -S -L surfxml.dtd ; \
140 mv surfxml.l surfxml.l.bak ; \
141 sed 's/surfxml\.h/surf\/surfxml\.h/g' surfxml.l.bak > surfxml.l
144 libgras_la_SOURCES= $(COMMON_S) \
145 gras/Transport/rl_transport.c gras/Transport/transport_plugin_tcp.c gras/Transport/transport_plugin_file.c \
147 gras/Virtu/rl_process.c gras/Virtu/rl_time.c gras/Virtu/rl_conditional.c
148 libgras_la_LDFLAGS = $(VERSION_INFO) @GRAS_DEP@
150 libsimgrid_la_SOURCES= $(COMMON_S) \
151 gras/Transport/sg_transport.c gras/Transport/transport_plugin_sg.c \
153 gras/Virtu/sg_process.c gras/Virtu/sg_time.c gras/Virtu/sg_conditional.c
154 libsimgrid_la_LDFLAGS = $(VERSION_INFO) @SIMGRID_DEP@