Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Allow java to compile in VPATH settings (at the price of a GNUism in the makefile)
[simgrid.git] / src / Makefile.am
index e94b00f..806125a 100644 (file)
@@ -1,3 +1,10 @@
+# Copyright (c) 2004-2007. The SimGrid team. All right reserved.
+
+# This file is part of the SimGrid project. This is free software:
+# You can redistribute and/or modify it under the terms of the
+# GNU LGPL (v2.1) licence.
+
+
 #AM_CFLAGS= -DNDEBUG 
 
 # -DNLOG   cuts absolutely all logs at compilation time.
@@ -25,6 +32,7 @@ EXTRA_DIST= \
        xbt/graphxml.c \
        xbt/graphxml.dtd \
         xbt/context_private.h \
+       xbt/log_private.h \
        xbt/ex_interface.h \
         \
        surf/maxmin_private.h \
@@ -58,6 +66,7 @@ EXTRA_DIST= \
        gras/Virtu/virtu_sg.h \
        gras/Virtu/virtu_interface.h \
        gras/Virtu/virtu_private.h \
+       gras/Transport/transport_interface.h \
        amok/Bandwidth/bandwidth_private.h \
        amok/amok_modinter.h \
        \
@@ -111,7 +120,7 @@ VERSION_INFO= -version-info 2:0:0
 
 XBT_SRC=\
   \
-  xbt/snprintf.c    xbt/xbt_str.c                                            \
+  xbt/snprintf.c    xbt/xbt_str.c xbt/xbt_strbuff.c                          \
   xbt/ex.c                                                                   \
   \
   xbt_modinter.h    gras_modinter.h                                          \
@@ -324,6 +333,7 @@ endif
 ##
 ## Java cruft
 
+EXTRA_DIST+=$(JMSG_JAVA_SRC)
 if HAVE_JAVA
 lib_LTLIBRARIES += libsimgrid4java.la
 
@@ -340,10 +350,12 @@ clean-local:
 jardir = $(prefix)/jar 
 jar_DATA =  simgrid.jar
 
-simgrid.jar: $(JMSG_JAVA_SRC) ./surf/surfxml.dtd
+simgrid.jar: $(JMSG_JAVA_SRC) $(srcdir)/surf/surfxml.dtd
        [ -e .classes ] || mkdir .classes
-       $(JAVAC) -sourcepath java -d .classes $(JMSG_JAVA_SRC) 
-       $(JAR) cvf simgrid.jar -C .classes . ./surf/surfxml.dtd;
+       $(JAVAC) -d .classes $(foreach file,$(JMSG_JAVA_SRC),$(srcdir)/$(file))
+       [ -e .classes/surf ] || mkdir .classes/surf
+       cp $(srcdir)/surf/surfxml.dtd .classes/surf
+       $(JAR) cvf simgrid.jar -C .classes .
 else
 EXTRA_DIST += $(JCTX_SRC) $(JMSG_C_SRC) $(MSG_SRC)
 endif