Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use doxygen's section instead of my poor approximation; link to the list of all exist...
[simgrid.git] / src / Makefile.am
index 8c1b529..5bec003 100644 (file)
@@ -1,5 +1,4 @@
-SUBDIRS=.  
-# amok not ported to GRAS NG yet
+SUBDIRS= . amok
 
 AM_CFLAGS= -g
 #AM_CFLAGS= -DNDEBUG 
@@ -14,18 +13,46 @@ AM_CFLAGS= -g
 
 
 MAINTAINERCLEANFILES=Makefile.in
-INCLUDES= -I$(top_srcdir)/include \
-          @CFLAGS_SimGrid@
+INCLUDES= -I$(top_srcdir)/include -I$(top_srcdir)/src/include 
 EXTRA_DIST= \
-        gras_private.h\
         \
-        gros/dict_private.h \
+       portable.h \
+       \
+        xbt/dict_private.h \
+        xbt/heap_private.h \
+        xbt/fifo_private.h \
+        xbt/context_private.h xbt/context_win32.h xbt/context_win32.c\
         \
+       surf/maxmin_private.h \
+       surf/trace_mgr_private.h \
+       surf/surf_private.h \
+       surf/cpu_private.h \
+       surf/workstation_private.h \
+       surf/surf_parse.c \
+       surf/surfxml.l \
+       surf/surfxml.c \
+       surf/surfxml.dtd \
+       surf/network_private.h \
+       surf/network_dassf_private.h \
+       surf/workstation_KCCFLN05_private.h \
+       \
+       include/surf/maxmin.h \
+       include/surf/trace_mgr.h \
+       include/surf/surf.h \
+       include/surf/surf_parse.h \
+       include/surf/surfxml.h \
+       \
+       msg/private.h \
+       \
        gras/Transport/transport_interface.h \
        gras/Virtu/virtu_interface.h \
-       gras/Virtu/virtu_rl.h \
-       gras/Virtu/virtu_sg.h \
-       gras/DataDesc/ddt_parse.yy.l gras/DataDesc/ddt_parse.yy.c
+       gras/Virtu/virtu_rl.h                 gras/Virtu/virtu_sg.h \
+       gras/DataDesc/ddt_parse.yy.l          gras/DataDesc/ddt_parse.yy.c \
+       \
+       modules.doc
+
+
+#        gras_private.h
 
 #LIBRARY_VERSION= 0:0:0
 #                 | | |
@@ -40,7 +67,7 @@ EXTRA_DIST= \
 #          |           Set to zero if current is incremented
 #          +- Increment if interfaces have been added, removed or changed
 
-VERSION_INFO= -release 20040722 -version-info 0:0:0
+VERSION_INFO= -release 20050131 -version-info 0:0:0
 # from `info libtool "Updating version info"` 
 # and  `info libtool "Release numbers"` 
 #
@@ -65,24 +92,36 @@ VERSION_INFO= -release 20040722 -version-info 0:0:0
 #  It modifies the library name, and you thus cannot say that a library
 #   using this trick is ready for a "stable" release (say, in Debian).
 
-if HAVE_SG
- lib_LTLIBRARIES= libgrasrl.la libgrassg.la
-else
- lib_LTLIBRARIES= libgrasrl.la
-endif
+lib_LTLIBRARIES= libsimgrid.la libgras.la
 
-
-COMMON_S=\
+COMMON_SRC=\
+  \
+  xbt_modinter.h    gras_modinter.h                                            \
   \
-  gros/gros_interface.h                                                         \
-  gros/sysdep.c                                                                 \
-  gros/log.c         gros/log_default_appender.c   gros/error.c                 \
-  gros/dynar.c                                                                  \
-  gros/dict.c        gros/dict_elm.c               gros/dict_cursor.c           \
-  gros/set.c                                                                    \
-  gros/module.c                                                                 \
-  gros/config.c                                                                 \
+  xbt/sysdep.c                                                                 \
+  xbt/log.c         xbt/log_default_appender.c   xbt/error.c                 \
+  xbt/dynar.c                                                                  \
+  xbt/dict.c        xbt/dict_elm.c               xbt/dict_cursor.c           \
+  xbt/heap.c                                                                    \
+  xbt/fifo.c                                                                    \
+  xbt/swag.c                                                                   \
+  xbt/set.c                                                                    \
+  xbt/module.c                                                                 \
+  xbt/config.c                                                                 \
+  xbt/context.c                                                                \
   \
+  surf/maxmin.c                                                              \
+  surf/trace_mgr.c                                                           \
+  surf/surf.c                                                                \
+  surf/surf_parse.c                                                          \
+  surf/cpu.c   surf/network.c   surf/workstation.c                           \
+  surf/network_dassf.c                                                       \
+  surf/workstation_KCCFLN05.c  \
+  \
+  msg/task.c msg/host.c msg/m_process.c msg/gos.c \
+  msg/global.c msg/environment.c msg/deployment.c  \
+  \
+  gras/gras.c \
   \
   gras/Transport/transport.c          gras/Transport/transport_private.h   gras/Transport/transport_plugin_buf.c  \
   \
@@ -96,19 +135,36 @@ COMMON_S=\
   \
   gras/Virtu/process.c
 
+RL_SRC= \
+  gras/Transport/rl_transport.c  gras/Transport/transport_plugin_tcp.c  gras/Transport/transport_plugin_file.c  \
+  \
+  gras/Virtu/rl_process.c        gras/Virtu/rl_time.c                   gras/Virtu/rl_conditional.c
+
+SG_SRC=  \
+  gras/Transport/sg_transport.c  gras/Transport/transport_plugin_sg.c             \
+  \
+  gras/Virtu/sg_process.c        gras/Virtu/sg_time.c                 gras/Virtu/sg_conditional.c 
+
 gras/DataDesc/ddt_parse.yy.c: gras/DataDesc/ddt_parse.yy.l
        @LEX@ -o$@ -Pgras_ddt_parse_ $^
 
-libgrasrl_la_SOURCES= $(COMMON_S) \
-  gras/Transport/rl_transport.c  gras/Transport/transport_plugin_tcp.c  gras/Transport/transport_plugin_file.c      \
-  \
-  gras/Virtu/rl_process.c        gras/Virtu/rl_time.c                   gras/Virtu/rl_conditional.c
-libgrasrl_la_LDFLAGS = $(VERSION_INFO)
-
-if HAVE_SG
-  libgrassg_la_SOURCES= $(COMMON_S) \
-    gras/Transport/sg_transport.c  gras/Transport/transport_plugin_sg.c             \
-    \
-    gras/Virtu/sg_process.c        gras/Virtu/sg_time.c                 gras/Virtu/sg_conditional.c
-  libgrassg_la_LDFLAGS = $(VERSION_INFO)
+surf/surf_parse.c: surf/surfxml.c
+
+if MAINTAINER_MODE
+surf/surfxml.c: surf/surfxml.l
+       @LEX@ -o$@ -Psurf_parse_ $^
+
+surf/surfxml.l: surf/surfxml.dtd
+       cd surf; flexml -b 10000000 -S -L surfxml.dtd ; \
+       mv surfxml.l surfxml.l.bak ; \
+       sed 's/surfxml\.h/surf\/surfxml\.h/g' surfxml.l.bak > surfxml.l
+
+include/surf/surfxml.h: surf/surfxml.dtd
+       cd include/surf; flexml -H -L ../../surf/surfxml.dtd
 endif
+
+libgras_la_SOURCES= $(COMMON_SRC) $(RL_SRC)
+libgras_la_LDFLAGS = $(VERSION_INFO) @GRAS_DEP@
+
+libsimgrid_la_SOURCES= $(COMMON_S) $(SG_SRC)
+libsimgrid_la_LDFLAGS = $(VERSION_INFO) @SIMGRID_DEP@