Index: /trunk/MagicSoft/Mars/mtemp/mifae/IFAELinkDef.h
===================================================================
--- /trunk/MagicSoft/Mars/mtemp/mifae/IFAELinkDef.h	(revision 3909)
+++ /trunk/MagicSoft/Mars/mtemp/mifae/IFAELinkDef.h	(revision 3910)
@@ -6,4 +6,7 @@
 
 #pragma link C++ class MDCA+;
+#pragma link C++ class MPSFFit+;
+#pragma link C++ class MPSFFitCalc+;
+#pragma link C++ class MSrcPosFromFile+;
 
 #endif
Index: /trunk/MagicSoft/Mars/mtemp/mifae/MSrcPosFromFile.h
===================================================================
--- /trunk/MagicSoft/Mars/mtemp/mifae/MSrcPosFromFile.h	(revision 3909)
+++ /trunk/MagicSoft/Mars/mtemp/mifae/MSrcPosFromFile.h	(revision 3910)
@@ -45,5 +45,5 @@
     enum OnOffMode_t {kOn=0,kOff};
 
-    MSrcPosFromFile(TString cardpath=NULL, OnOffMode_t mode=kOn, const char *name=NULL, const char *title=NULL);
+    MSrcPosFromFile(TString cardpath, OnOffMode_t mode=kOn, const char *name=NULL, const char *title=NULL);
     ~MSrcPosFromFile();
     
Index: /trunk/MagicSoft/Mars/mtemp/mifae/Makefile
===================================================================
--- /trunk/MagicSoft/Mars/mtemp/mifae/Makefile	(revision 3909)
+++ /trunk/MagicSoft/Mars/mtemp/mifae/Makefile	(revision 3910)
@@ -22,7 +22,7 @@
 #
 
-PROGRAMS = makeHillas
+PROGRAMS = makeHillas psffit
 SOLIB    = ../../libmars.so
-LIB      = mifae.a
+LIB      = libmifae.a
 
 #------------------------------------------------------------------------------
@@ -44,4 +44,5 @@
 	   -I../../mimage \
 	   -I../../mpointing \
+	   -I../../mcamera \
 	   -I../../mastro
 
@@ -50,5 +51,8 @@
 
 SRCFILES = \
-	MDCA.cc 
+	MDCA.cc \
+        MPSFFit.cc \
+        MPSFFitCalc.cc \
+        MSrcPosFromFile.cc
 #	MSrcRotate.cc 
 
@@ -67,5 +71,5 @@
 $(PROGRAMS): $(SOLIB) $(LIB) $(PROGRAMS:=.o)
 	@echo " Linking $@ ..." 
-	$(CXX) $(CXXFLAGS) $(ROOTGLIBS) $(SOLIB) $(LIB) $@.o $(MARS_LIB) -o $@
+	$(CXX) $(CXXFLAGS) $(ROOTGLIBS) $(SOLIB) ${OBJS} -L. -lmifae $@.o $(MARS_LIB) -o $@
 
 mrproper: clean rmbak
Index: /trunk/MagicSoft/Mars/mtemp/mifae/psffit.cc
===================================================================
--- /trunk/MagicSoft/Mars/mtemp/mifae/psffit.cc	(revision 3909)
+++ /trunk/MagicSoft/Mars/mtemp/mifae/psffit.cc	(revision 3910)
@@ -23,5 +23,5 @@
 \* ======================================================================== */
 
-#include <iostream.h>
+#include <iostream>
 
 #include <TString.h>
@@ -33,8 +33,11 @@
 #include "MCameraDC.h"
 #include "MPSFFit.h"
+
 #include "MReadReports.h"
 #include "MGeomApply.h"
 #include "MPSFFitCalc.h"
 #include "MEvtLoop.h"
+
+using namespace std;
 
 int main(int argc, char *argv[])
