[PD-cvs] SF.net SVN: pure-data:[10396] trunk/externals/iem/iemguts/src/Makefile

zmoelnig at users.sourceforge.net zmoelnig at users.sourceforge.net
Thu Nov 27 10:44:13 CET 2008


Revision: 10396
          http://pure-data.svn.sourceforge.net/pure-data/?rev=10396&view=rev
Author:   zmoelnig
Date:     2008-11-27 09:44:12 +0000 (Thu, 27 Nov 2008)

Log Message:
-----------
better arch-autodetection;
more cleanup;

Modified Paths:
--------------
    trunk/externals/iem/iemguts/src/Makefile

Modified: trunk/externals/iem/iemguts/src/Makefile
===================================================================
--- trunk/externals/iem/iemguts/src/Makefile	2008-11-27 09:27:31 UTC (rev 10395)
+++ trunk/externals/iem/iemguts/src/Makefile	2008-11-27 09:44:12 UTC (rev 10396)
@@ -16,28 +16,33 @@
 
 # if no filename-extension is supplied by the user
 # try to guess one, based on what "uname" tells us
-UNAME := $(shell uname -s)
-ifeq ($(UNAME),Linux)
+UNAME_SYSTEM := $(shell uname -s)
+UNAME_ARCH := $(shell uname -m)
+ifeq ($(UNAME_SYSTEM),Linux)
   DEFAULTEXTENSION= pd_linux
-else
-  ifeq ($(UNAME),Darwin)
+  ifeq ($(UNAME_ARCH),x86_64)
+    DEFAULTEXTENSION= l_ia64
+  else ifeq ($(UNAME_ARCH),i686)
+    DEFAULTEXTENSION= l_i386
+  endif
+else ifeq ($(UNAME_SYSTEM),Darwin)
     DEFAULTEXTENSION= pd_darwin
+    ifeq ($(UNAME_ARCH),i386)
+     DEFAULTEXTENSION= d_i386
+    else ifeq ($(UNAME_ARCH),PowerPC)
+     DEFAULTEXTENSION= d_ppc
+    endif
+else ifeq (MINGW,$(findstring MINGW,$(UNAME_SYSTEM)))
+      DEFAULTEXTENSION= pd_nt
+else ifeq ($(UNAME_SYSTEM),IRIX)
+  UNAME_IRIXVERSION := $(shell uname -R)
+  ifeq (6.,$(findstring 6.,$(UNAME_IRIXVERSION)))
+    DEFAULTEXTENSION= pd_irix6
   else
-    ifeq (MINGW,$(findstring MINGW,$(UNAME)))
-      DEFAULTEXTENSION= pd_nt
-    else
-      ifeq ($(UNAME),IRIX)
-	UNAMEV := $(shell uname -R)
-	ifeq (6.,$(findstring 6.,$(UNAMEV)))
-	  DEFAULTEXTENSION= pd_irix6
-	else
-	  DEFAULTEXTENSION= pd_irix5
-	endif
-      else
-	DEFAULTEXTENSION=help
-      endif
-    endif
+    DEFAULTEXTENSION= pd_irix5
   endif
+else
+  DEFAULTEXTENSION=help
 endif
 
 # if no extension is given, call "make" again with a guessed extension
@@ -50,7 +55,8 @@
 
 # delete old build files
 clean:
-	-rm -f *.dll *.pd_* *.o *.obj *~
+	-rm -f *.dll *.w_i386 *.pd_linux *.l_ia64 *.l_i386  *.pd_darwin *.d_fat *.d_ppc *.d_i386 *.pd_irix5 *.pd_irix6
+	-rm -f *.o *.obj *~
 
 # we want to compile all C-files we find in the current directory
 SOURCES=$(sort $(filter %.c, $(wildcard *.c)))


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list