aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/makefile.pd-darwin
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-10-26 20:03:50 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-10-26 20:03:50 +0000
commitc752987457f50c1adf5051e1fd8167a5637f1e34 (patch)
treee78349513f1c0c7f37bd6d96935f90d9c5257e15 /externals/grill/flext/makefile.pd-darwin
parente44cd51e389696bc871ece7d9ea08d10a683382e (diff)
""
svn path=/trunk/; revision=2169
Diffstat (limited to 'externals/grill/flext/makefile.pd-darwin')
-rw-r--r--externals/grill/flext/makefile.pd-darwin11
1 files changed, 8 insertions, 3 deletions
diff --git a/externals/grill/flext/makefile.pd-darwin b/externals/grill/flext/makefile.pd-darwin
index dd4e8a84..7accda82 100644
--- a/externals/grill/flext/makefile.pd-darwin
+++ b/externals/grill/flext/makefile.pd-darwin
@@ -31,6 +31,11 @@ CFLAGS_S=-DFLEXT_SHARED -DFLEXT_EXPORTS
# flags for shared linking
LSHFLAGS= -dylib -dynamic -flat_namespace -undefined suppress
+ifdef $(INSTDIR)
+LSHFLAGS_R=-dylib_install_name $(INSTDIR)/libflext.dylib
+LSHFLAGS_D=-dylib_install_name $(INSTDIR)/libflext_d.dylib
+endif
+
# frameworks
#FRAMEWORKS=Carbon veclib
@@ -59,7 +64,7 @@ HDRS+=$(HDRS_STK)
endif
-MAKEFILE=makefile.pd-darwin
+MAKEFILE=#makefile.pd-darwin
TARGET=$(TARGDIR)/lib$(NAME).a
TARGET_D=$(TARGDIR)/lib$(NAME)_d.a
@@ -108,10 +113,10 @@ $(TARGET_TD) : $(patsubst %.cpp,$(TARGDIR)/%.tdo,$(SRCS))
libtool -static -o $@ $^
$(TARGET_S) : $(patsubst %.cpp,$(TARGDIR)/%.so,$(SRCS))
- ld $(LSHFLAGS) -o $@ $^ -ldylib1.o -lgcc -lstdc++ $(patsubst %,-framework %,$(FRAMEWORKS))
+ ld $(LSHFLAGS) $(LSHFLAGS_R) -o $@ $^ -ldylib1.o -lgcc -lstdc++ $(patsubst %,-framework %,$(FRAMEWORKS))
$(TARGET_SD) : $(patsubst %.cpp,$(TARGDIR)/%.sdo,$(SRCS))
- ld $(LSHFLAGS) -o $@ $^ -ldylib1.o -lgcc -lstdc++ $(patsubst %,-framework %,$(FRAMEWORKS))
+ ld $(LSHFLAGS) $(LSHFLAGS_D) -o $@ $^ -ldylib1.o -lgcc -lstdc++ $(patsubst %,-framework %,$(FRAMEWORKS))
.PHONY: clean install