Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 8912)
+++ trunk/MagicSoft/Mars/Changelog	(revision 8913)
@@ -89,4 +89,8 @@
      - Use TString::Data() for second argument in TF1 constructor.
        Otherwise it is ambiguous in root 5.18
+
+   * Makefile:
+     - linking of the shared object is now done in /tmp
+     - replaced = by := where possible
 
 
Index: trunk/MagicSoft/Mars/Makefile
===================================================================
--- trunk/MagicSoft/Mars/Makefile	(revision 8912)
+++ trunk/MagicSoft/Mars/Makefile	(revision 8913)
@@ -20,6 +20,7 @@
 #
 #PROGRAMS = readraw merpp mars test mona status
-PROGRAMS = readdaq merpp readraw sinope callisto star ganymed sponde showlog showplot mars mars-config
-SOLIB    = libmars.so
+PROGRAMS := readdaq merpp readraw sinope callisto star ganymed sponde showlog showplot mars mars-config
+SOLIB    := libmars.so
+
 CINT     = M
 
@@ -35,5 +36,5 @@
 #  ----->>>   mars libraries
 #
-SUBDIRS = mbase \
+SUBDIRS := mbase \
 	  mastro \
 	  mmain \
@@ -74,9 +75,9 @@
 
 #LIBRARIES = $(SUBDIRS:%=lib/lib%.a)
-LIBRARIES = $(SUBDIRS:=.a)
-CONDOR    = $(SUBDIRS:=.condor)
-MRPROPERS = $(SUBDIRS:=.mrproper)
-CLEANERS  = $(SUBDIRS:=.clean)
-LIBS      = $(SOLIB)
+LIBRARIES := $(SUBDIRS:=.a)
+CONDOR    := $(SUBDIRS:=.condor)
+MRPROPERS := $(SUBDIRS:=.mrproper)
+CLEANERS  := $(SUBDIRS:=.clean)
+LIBS      := $(SOLIB)
 
 #------------------------------------------------------------------------------
@@ -86,4 +87,6 @@
 
 ############################################################
+RNDMNAME:=$(shell mktemp)
+
 all: $(SOLIB) $(PROGRAMS)
 	@echo " Done. "
@@ -104,5 +107,6 @@
 $(SOLIB): $(LIBRARIES) $(OBJS) $(HEADERS)
 	@echo " Linking shared object $(SOLIB) ..."
-	$(CXX) $(CXXFLAGS) $(SOFLAG) $(OBJS) $(SUBDIRS:=/*.o) $(ROOTGLIBS) -o $@
+	$(CXX) $(CXXFLAGS) $(SOFLAG) $(OBJS) $(SUBDIRS:=/*.o) $(ROOTGLIBS) -o ${RNDMNAME}
+	mv ${RNDMNAME} $@
 
 # This is a special workaround to create the shared object (bundle, plugin)
Index: trunk/MagicSoft/Mars/NEWS
===================================================================
--- trunk/MagicSoft/Mars/NEWS	(revision 8912)
+++ trunk/MagicSoft/Mars/NEWS	(revision 8913)
@@ -44,4 +44,10 @@
    * the MFMagicCuts have a new option to allow a linear area cut (for
      special studies)
+
+   * The liniking of the shared object is now done into a file defined
+     by ´mktemp´. This should be a local file system which accelerates
+     liniking a lot.
+
+   * The code has been prepared for compilation with root 5.18/00d
 
  ;merpp
