Index: trunk/SophyaLib/Mgr/Makefile.h
===================================================================
--- trunk/SophyaLib/Mgr/Makefile.h	(revision 1614)
+++ trunk/SophyaLib/Mgr/Makefile.h	(revision 1783)
@@ -127,4 +127,12 @@
 endif
 
+ifeq ($(MACHEROS),Darwin)
+AR := libtool
+ARFLAGS := -static -o
+EROSCXX := g++
+CXX := g++
+CC := cc
+endif
+
 #   Avec certains compilateurs C++ (KCC, aCC) , il faut fabriquer les librairies et 
 # les shared libs avec la meme commande 
@@ -152,4 +160,9 @@
   XCFLAGS := -I/usr/X11/include -I/usr/X11R6/include
   LDLIBS := -ldl
+endif
+
+ifeq (${MACHEROS},Darwin)
+  XLDLIBS := -L/usr/X11R6/lib
+  XCFLAGS := -I/usr/X11R6/include -fno-coalesce -fkeep-inline-functions
 endif
 
Index: trunk/SophyaLib/Mgr/Makefile.slb
===================================================================
--- trunk/SophyaLib/Mgr/Makefile.slb	(revision 1614)
+++ trunk/SophyaLib/Mgr/Makefile.slb	(revision 1783)
@@ -14,6 +14,9 @@
 # librairie compilateur GNU (g++)
 LIBGPP := -L$(GLB) -lstdc++
-ifeq ($(HOSTTYPE), powerpc)
-  LIBGPP = -L$(GLB)
+#ifeq ($(HOSTTYPE), powerpc)
+#  LIBGPP := -L$(GLB)
+#endif
+ifeq ($(MACHEROS), Darwin)
+  LIBGPP := -L/usr/lib/gcc/darwin/default -lstdc++ -lcc_dynamic
 endif
 
@@ -122,2 +125,12 @@
 endif
 
+# Construction de shared-libs sous OSX
+ifeq ($(MACHEROS), Darwin)
+  override CMDSHL := libtool -dynamic
+  override FGSHLA :=
+  override FGSHLN :=
+  override TILSHL :=
+  override CMDSHLCXX := libtool -dynamic
+endif
+
+
Index: trunk/SophyaLib/Mgr/libdirs
===================================================================
--- trunk/SophyaLib/Mgr/libdirs	(revision 1614)
+++ trunk/SophyaLib/Mgr/libdirs	(revision 1783)
@@ -8,2 +8,3 @@
 Samba
 SkyT
+SysSpec
Index: trunk/SophyaLib/Mgr/mkmf
===================================================================
--- trunk/SophyaLib/Mgr/mkmf	(revision 1614)
+++ trunk/SophyaLib/Mgr/mkmf	(revision 1783)
@@ -1,4 +1,4 @@
 #!/bin/csh 
-# $Id: mkmf,v 1.14 2001-07-30 16:36:54 ansari Exp $
+# $Id: mkmf,v 1.15 2001-11-22 11:33:18 aubourg Exp $
 
 #  Pour debugger 
@@ -102,5 +102,5 @@
   set f = $libnames[$i]
   set k = $i ; @ k++
-  if ( -d ../$f ) then 
+  if ( -d ../$f && ! -f ../$f/no_mkmf ) then 
     set cmd = "./mkmflib $f "
     echo "mkmf: Creation makefile lib $f"
@@ -135,4 +135,9 @@
 
 echo 'mkmf: Writing shared library building part of the makefile :'
+if ( `uname` == "Darwin" ) then
+  set sosfx = "dylib"
+else
+  set sosfx = "so"
+endif
 
 echo '#  Shared library creation part of the Makefile'       >> GNUmakefile
@@ -146,11 +151,11 @@
 echo 'EXTSLB  = -L$(EXTSLBPATH)' $extslb_list       >> GNUmakefile
 echo 'XPILIBS = $(LIBXPIPATH) $(LIBXPILIST)'        >> GNUmakefile
-echo ''                                  >> GNUmakefile
-echo '#  main dependence list'           >> GNUmakefile
-echo 'slball : slb slbext slbpi '        >> GNUmakefile
-echo 'slb : $(SLB)libsophya.so '         >> GNUmakefile
-echo 'slbext : $(SLB)libextsophya.so   ' >> GNUmakefile
-echo 'slbpi : $(SLB)libPI.so'            >> GNUmakefile
-echo ' '                                 >> GNUmakefile
+echo ''                                   >> GNUmakefile
+echo '#  main dependence list'            >> GNUmakefile
+echo 'slball : slb slbext slbpi '         >> GNUmakefile
+echo 'slb : $(SLB)libsophya.'$sosfx       >> GNUmakefile
+echo 'slbext : $(SLB)libextsophya.'$sosfx >> GNUmakefile
+echo 'slbpi : $(SLB)libPI.'$sosfx         >> GNUmakefile
+echo ' '                                  >> GNUmakefile
 
 echo '# List of .o files for each module'  >> GNUmakefile
@@ -182,8 +187,8 @@
 
 echo '# Building Sophya shared library'  >> GNUmakefile
-echo '$(SLB)libsophya.so : $(PSLB)'                             >> GNUmakefile
+echo '$(SLB)libsophya.'$sosfx' : $(PSLB)'                       >> GNUmakefile
 echo '	$(CMDTILSHL) '                                          >> GNUmakefile
 echo '	cd  $(OBJ); \'                                          >> GNUmakefile
-echo '	$(CMDSHLCXX) -o $(SLB)libsophya.so  \'                  >> GNUmakefile
+echo '	$(CMDSHLCXX) -o $(SLB)libsophya.'$sosfx'  \'            >> GNUmakefile
 echo '	$(FGSHLACXX) $(ALLOBJS)  $(FGSHLNCXX)\'                 >> GNUmakefile
 echo '	-L$(SLB) $(LIBLSHL)'                                    >> GNUmakefile
@@ -191,8 +196,8 @@
 
 echo '# Building ExtSophya shared library'  >> GNUmakefile
-echo '$(SLB)libextsophya.so : $(EXTPSLB)'                       >> GNUmakefile
+echo '$(SLB)libextsophya.'$sosfx' : $(EXTPSLB)'                 >> GNUmakefile
 echo '	$(CMDTILSHL) '                                          >> GNUmakefile
 echo '	cd  $(OBJ); \'                                          >> GNUmakefile
-echo '	$(CMDSHLCXX) -o $(SLB)libextsophya.so  \'               >> GNUmakefile
+echo '	$(CMDSHLCXX) -o $(SLB)libextsophya.'$sosfx'  \'         >> GNUmakefile
 echo '	$(FGSHLACXX) $(ALLEXTOBJS)  $(FGSHLNCXX)\'              >> GNUmakefile
 echo '	-L$(SLB) -lsophya $(EXTLIB) $(LIBLSHL)'                 >> GNUmakefile
@@ -200,8 +205,8 @@
 
 echo '# Building PI shared library'  >> GNUmakefile
-echo '$(SLB)libPI.so : $(PIPSLB)'                               >> GNUmakefile
+echo '$(SLB)libPI.'$sosfx' : $(PIPSLB)'                         >> GNUmakefile
 echo '	$(CMDTILSHL) '                                          >> GNUmakefile
 echo '	cd  $(OBJ); \'                                          >> GNUmakefile
-echo '	$(CMDSHLCXX) -o $(SLB)libPI.so  \'                      >> GNUmakefile
+echo '	$(CMDSHLCXX) -o $(SLB)libPI.'$sosfx'  \'                >> GNUmakefile
 echo '	$(FGSHLACXX) $(ALLPIOBJS) $(FGSHLNCXX) \'               >> GNUmakefile
 echo '	-L$(SLB) -lsophya -lextsophya $(EXTLIB) $(XPILIBS) $(LIBLSHL)'      >> GNUmakefile
@@ -213,5 +218,5 @@
 clean:
 	if [ -d \$(LIB) ] ; then cd \$(LIB)/. ; rm -f *.a  ; fi
-	if [ -d \$(SLB) ] ; then cd \$(SLB)/. ; rm -f *.so ; fi
+	if [ -d \$(SLB) ] ; then cd \$(SLB)/. ; rm -f *.$sosfx ; fi
 	if [ -d \$(OBJ) ] ; then cd \$(OBJ)/. ; rm -f *.o  rm -rf cxxrep* ; fi
 #	if [ -d PI ]     ; then cd PI/.     ; \$(MAKE) clean ; fi
