Index: /trunk/MagicSoft/Mars/Makefile
===================================================================
--- /trunk/MagicSoft/Mars/Makefile	(revision 4032)
+++ /trunk/MagicSoft/Mars/Makefile	(revision 4033)
@@ -101,14 +101,9 @@
 # This is a special workaround to create the shared object (bundle, plugin)
 # for root and the dynlib (to be linked with the executable) on Mac OSX
-ifndef ($DYFLAG)
-ifeq  ($DYFLAG,)
+ifneq ($(OSTYPE),'darwin')
 $(PROGRAMS): $(SOLIB) $(PROGRAMS:=.o)
-	@echo " Linking excutable $@ ..." 
+	@echo " Linking $@ ..." 
 	$(CXX) $(CXXFLAGS) $(ROOTGLIBS) $(SOLIB) $@.o $(MARS_LIB) -o $@
-endif
-endif
-
-ifdef ($DYFLAG)
-ifneq ($DYFLAG,)
+else
 $(DYLIB): $(LIBRARIES) $(OBJS) $(HEADERS)
 	@echo " Linking dylib $(DYLIB) ..."
@@ -118,5 +113,4 @@
 	@echo " Linking mac executable $@ ..." 
 	$(CXX) $(CXXFLAGS) $(ROOTGLIBS) $(DYLIB) $@.o $(MARS_LIB) -o $@
-endif
 endif
 
