[PD-cvs] SF.net SVN: pure-data: [9580] trunk/externals/tclpd/Makefile

eighthave at users.sourceforge.net eighthave at users.sourceforge.net
Thu Mar 13 19:27:57 CET 2008


Revision: 9580
          http://pure-data.svn.sourceforge.net/pure-data/?rev=9580&view=rev
Author:   eighthave
Date:     2008-03-13 11:27:57 -0700 (Thu, 13 Mar 2008)

Log Message:
-----------
checked in some build hacks which make things build on all GNU/Linuxes

Modified Paths:
--------------
    trunk/externals/tclpd/Makefile

Modified: trunk/externals/tclpd/Makefile
===================================================================
--- trunk/externals/tclpd/Makefile	2008-03-13 01:12:14 UTC (rev 9579)
+++ trunk/externals/tclpd/Makefile	2008-03-13 18:27:57 UTC (rev 9580)
@@ -1,8 +1,9 @@
 #!/usr/bin/make
 
-CPU=athlon-xp
-CFLAGS += -I/usr/include -I. -xc++ -funroll-loops -fno-operator-names -fno-omit-frame-pointer -falign-functions=16 -mtune=$(CPU) -march=$(CPU) -Wall -Wno-unused -Wunused-variable -Wno-strict-aliasing -g -fPIC -I.
-LDSOFLAGS += -lm -L/usr/lib -ltcl8.5 -L/usr/X11R6/lib
+TCL_VERSION := $(shell echo 'puts $$tcl_version' | tclsh)
+INCLUDES =  -I../../pd/src -I/usr/include/tcl$(TCL_VERSION)
+CFLAGS += $(INCLUDES) -xc++ -funroll-loops -fno-operator-names -fno-omit-frame-pointer -falign-functions=16 -O2 -Wall -fPIC
+LDSOFLAGS += -lm -ltcl$(TCL_VERSION)
 CXX = g++
 OS = linux
 LDSHARED = $(CXX) $(PDBUNDLEFLAGS)
@@ -16,7 +17,7 @@
 
 ifeq ($(OS),darwin)
   PDSUF = .pd_darwin
-  PDBUNDLEFLAGS = -bundle -flat_namespace -undefined suppress
+  PDBUNDLEFLAGS = -bundle -flat_namespace -undefined dynamic_lookup
 else
   ifeq ($(OS),nt)
     PDSUF = .dll
@@ -34,5 +35,4 @@
 		tcl_wrap.cxx tcl_extras.cxx tcl_loader.cxx $(LDSOFLAGS)
 
 tcl_wrap.cxx: tcl.i tcl_extras.h
-	swig -v -c++ -tcl -o tcl_wrap.cxx -I/usr/include -I/usr/local/include tcl.i
-
+	swig -v -c++ -tcl -o tcl_wrap.cxx $(INCLUDES) tcl.i


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