Index: trunk/MagicSoft/Mars/mgui/Makefile
===================================================================
--- trunk/MagicSoft/Mars/mgui/Makefile	(revision 654)
+++ trunk/MagicSoft/Mars/mgui/Makefile	(revision 665)
@@ -6,20 +6,15 @@
 #
 ##################################################################
-# @maintitle
-
-# @code
-
-#
-#  please change all system depend values in the 
-#  config.mk.${OSTYPE} file 
-#
-#
 include ../Makefile.conf.$(OSTYPE)
 include ../Makefile.conf.general
 
-# @endcode 
+#
+# Handling name of the Root Dictionary Files
+#
+CINT  = Gui
 
-# @code 
-
+#
+# Library name to creatre
+#
 LIB   = mgui.a
 
@@ -27,40 +22,20 @@
 #  connect the include files defined in the config.mk file
 #
-INCLUDES = -I. -I../mbase -I../mraw -I../mdatacheck -I../meventdisp -I../manalysis
-
-#
-#  ----->>>   root libraries
-#
-
-ROOTLIBS   =  `root-config --libs`
-ROOTGLIBS  =  `root-config --glibs`
-ROOTCFLAGS =  `root-config --cflags`
-
-#
-#  compiler flags
-#
-
-CXXFLAGS  = $(ROOTCFLAGS) $(INCLUDES) $(OPTIM) $(DEBUG)
-CFLAGS    = $(CXXFLAGS)
-FFLAGS    = $(CXXFLAGS)
+INCLUDES = -I. -I../mbase -I../manalysis -I../mdatacheck -I../meventdisp
 
 #------------------------------------------------------------------------------
 
-#.SILENT:
-
 .SUFFIXES: .c .cc .cxx .h .hxx .o 
 
-
-SRCFILES = MGMarsMain.cc \
+SRCFILES = MCamDisplay.cc \
+	   MCamNeighbor.cc \
+	   MGDataCheckMain.cc \
 	   MGEventDispMain.cc \
-	   MGDataCheckMain.cc \
+	   MGMarsMain.cc \
 	   MGMonteCarloMain.cc \
-	   MGPrototyp.cc \
-           MHexagon.cc \
+           MGPrototyp.cc \
            MGeomCam.cc \
            MGeomPix.cc \
-	   MCamNeighbor.cc \
-	   MCamDisplay.cc
-
+           MHexagon.cc
 
 SRCS    = $(SRCFILES)
@@ -72,60 +47,9 @@
 all: $(LIB)
 
-depend:
-	@makedepend $(SRCS) $(INCLUDES) $(ROOTCFLAGS) \
-        -f../Makefile.depend 2> kk.kk ; cat kk.kk
+include ../Makefile.rules
 
-$(LIB): $(OBJS) GuiCint.o
-	@echo " - Building Library $(LIB) ... "
-	$(AR) $(LIB) *.o 
+clean:	rmlib rmcint rmobjs rmcore rmbin
 
-GuiCint.cc: $(HEADERS) 
-	@echo 
-	@echo " - Generating dictionary GuiCint.cc ..."
-
-	$(ROOTSYS)/bin/rootcint -f GuiCint.cc \
-	-c $(INCLUDES) $(HEADERS) GuiIncl.h GuiLinkDef.h 
-
-.cxx.o:	
-	@echo " - Compiling " $<
-	$(CXX) $(CXXFLAGS) -c $< -o $@
-
-.cc.o:	
-	@echo " - Compiling " $<
-	$(CXX) $(CXXFLAGS) -c $< -o $@
-
-.c.o:	
-	@echo " - Compiling " $<
-	$(CC) $(CFLAGS) -c $< -o $@
-
-#
-# The cleaning facility
-#
-
-rmlib:	
-	@echo "Removing libraries..."
-	@rm -f lib*.a
-
-rmcint:	
-	@echo "Removing cint-stuff..."
-	@rm -f GuiCint.*
-
-rmobjs:	
-	@echo "Removing object files..."
-	@rm -f *.o
-
-rmbin:	
-	@echo "Removing binary files..."
-	@rm -f core
-
-
-clean:	rmlib rmcint rmobjs rmbin
-
-mrproper:	clean
-	@echo "Removing *~ kk.kk html/..."
-	@rm -f *~ kk.kk
-
-cflags: 
-	@echo $(INCLUDES) $(CXXFLAGS)
+mrproper:	clean rmbak
 
 # @endcode
