Index: trunk/SophyaExt/MinuitAdapt/Makefile
===================================================================
--- trunk/SophyaExt/MinuitAdapt/Makefile	(revision 2737)
+++ trunk/SophyaExt/MinuitAdapt/Makefile	(revision 2743)
@@ -1,48 +1,27 @@
-MODULECXXREPNAME :=  MinuitAdapt
-MODULEDECCXXFLAGS := -msg_quiet
-include ../Mgr/Makefile.h
+include ../BuildMgr/sophyamake.inc
 
-CFLAGS   := $(CFLAGS) -Df2cFortran
 CPPFLAGS := $(CPPFLAGS) -Df2cFortran
 CXXFLAGS := $(CXXFLAGS) -Df2cFortran
  
-all: $(LIB)libMinuitAdapt.a
+all: $(SOPHYALIBP)libMinuitAdapt.a
 
-clean: cleantest
-	rm -f $(OBJ)minuitadapt.o $(OBJ)minuitadaptF.o
-	rm -f $(LIB)libMinuitAdapt.a
-
-cleantest:
+clean:
+	rm -f $(SOPHYAOBJP)minuitadapt.o $(SOPHYAOBJP)minuitadaptF.o
+	rm -f $(SOPHYALIBP)libMinuitAdapt.a
 	rm -f testminuit testminuit.o
-
-# Doit etre fait automatiquement par mkmflien
-install:
-	cp localmnpout.h minuitprot.h minuitadapt.h $(INC)/.
-
-#----------------------------------------------------------------------
-$(LIB)libMinuitAdapt.a : $(OBJ)minuitadapt.o $(OBJ)minuitadaptF.o
-	$(ARCXX) $(ARCXXFLAGS) $@ $($(ARARGS))
-ifeq ($(CXX),cxx)
-	$(CXX) $? $(CPPFLAGS) $(CXXFLAGS) -o $(OBJ)xx.x -Hf
-endif 
- 
-$(OBJ)minuitadaptF.o: minuitadaptF.f
-$(OBJ)minuitadapt.o: minuitadapt.cc minuitadapt.h minuitprot.h
-
-#----------------------------------------------------------------------
-ifdef NOSHLIB
-LIBS = -L$(LIB) -lFitsIOServer -lSamba -lSkyMap -lSkyT -lNTools -lHiStats -lTArray -lSysTools -lm
-ifeq ($(CXX),cxx)
-LIBS := $(LIBS) -lertcxx
-endif
-else
-LIBS = -L$(SLB) -lsophya -lextsophya  -lm
-endif
-LIBMINUIT := -L$(LIB) -lMinuitAdapt -L$(EXTLIBPATH) -lminuit
-LDLIBS := $(LIBS) $(LDLIBS) $(LIBMINUIT) $(LIBFORT)
 
 test: testminuit
 
+
+$(SOPHYALIBP)libMinuitAdapt.a : $(SOPHYAOBJP)minuitadapt.o $(SOPHYAOBJP)minuitadaptF.o
+	$(AR) $(ARFLAGS) $@ $?
+
+$(SOPHYAOBJP)minuitadapt.o: minuitadapt.cc minuitadapt.h minuitprot.h
+	$(CXXCOMPILE) -o $@ $<
+
+$(SOPHYAOBJP)minuitadaptF.o: minuitadaptF.f
+	$(FCCOMPILE) -o $@ $<
+	
 testminuit: testminuit.o
-	$(LINK.cc) $^ -o $@ $(LOADLIBES) $(LDLIBS)
-$(OBJ)testminuit.o: testminuit.cc
+	$(CXXLINK) $^ -o $@ $(SOPHYAEXTSLBLIST)
+testminuit.o: testminuit.cc
Index: trunk/SophyaExt/MinuitAdapt/minuitadapt.cc
===================================================================
--- trunk/SophyaExt/MinuitAdapt/minuitadapt.cc	(revision 2737)
+++ trunk/SophyaExt/MinuitAdapt/minuitadapt.cc	(revision 2743)
@@ -3,5 +3,5 @@
 #include <stdio.h>
 #include <stdlib.h>
-#include <iostream.h>
+#include <iostream>
 #include <string.h>
 #include <string>
Index: trunk/SophyaExt/MinuitAdapt/objlist.list
===================================================================
--- trunk/SophyaExt/MinuitAdapt/objlist.list	(revision 2743)
+++ trunk/SophyaExt/MinuitAdapt/objlist.list	(revision 2743)
@@ -0,0 +1,2 @@
+minuitadapt.o
+minuitadaptF.o
Index: trunk/SophyaExt/MinuitAdapt/smakefile
===================================================================
--- trunk/SophyaExt/MinuitAdapt/smakefile	(revision 2743)
+++ trunk/SophyaExt/MinuitAdapt/smakefile	(revision 2743)
@@ -0,0 +1,27 @@
+include $(SOPHYABASE)/include/sophyamake.inc
+
+CPPFLAGS := $(CPPFLAGS) -Df2cFortran
+CXXFLAGS := $(CXXFLAGS) -Df2cFortran
+ 
+all: $(SOPHYALIBP)libMinuitAdapt.a
+
+clean:
+	rm -f $(SOPHYAOBJP)minuitadapt.o $(SOPHYAOBJP)minuitadaptF.o
+	rm -f $(SOPHYALIBP)libMinuitAdapt.a
+	rm -f testminuit testminuit.o
+
+test: testminuit
+
+
+$(SOPHYALIBP)libMinuitAdapt.a : $(SOPHYAOBJP)minuitadapt.o $(SOPHYAOBJP)minuitadaptF.o
+	$(AR) $(ARFLAGS) $@ $?
+
+$(SOPHYAOBJP)minuitadapt.o: minuitadapt.cc minuitadapt.h minuitprot.h
+	$(CXXCOMPILE) -o $@ $<
+
+$(SOPHYAOBJP)minuitadaptF.o: minuitadaptF.f
+	$(FCCOMPILE) -o $@ $<
+	
+testminuit: testminuit.o
+	$(CXXLINK) $^ -o $@ $(SOPHYAEXTSLBLIST)
+testminuit.o: testminuit.cc
Index: trunk/SophyaExt/MinuitAdapt/testminuit.cc
===================================================================
--- trunk/SophyaExt/MinuitAdapt/testminuit.cc	(revision 2737)
+++ trunk/SophyaExt/MinuitAdapt/testminuit.cc	(revision 2743)
@@ -5,5 +5,5 @@
 #include <stdlib.h>
 #include <stdio.h>
-#include <iostream.h>
+#include <iostream>
 #include <math.h>
 #include <string.h>
