Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2003-02-06 20:14:22 +0300
committerKent Mein <mein@cs.umn.edu>2003-02-06 20:14:22 +0300
commitf0bafbad28c02e48988fe6017df40090977f2610 (patch)
treef44be8c9ef17baed1ec02271bec2d5f9fda07699
parentb131098d045f1712e55489ef95e376013824d6d3 (diff)
I added some of the changes I made to bmake at:
http://www.cs.umn.edu/~mein/blender/plugins/bmake Basically added options for Darwin, and made a var $EXT that gets set to so, dll or dynlib depending on the platform. It looks like I'm still getting linking errors on macosx on some of the plugins but its a good start. Kent
-rw-r--r--release/plugins/bmake22
1 files changed, 19 insertions, 3 deletions
diff --git a/release/plugins/bmake b/release/plugins/bmake
index f7d1404a808..b25ecde08ee 100644
--- a/release/plugins/bmake
+++ b/release/plugins/bmake
@@ -33,7 +33,14 @@
# detect the system
UNAME=`uname`
-if ( test $UNAME = "IRIX64" -o $UNAME = "IRIX" ) then
+EXT="so";
+if ( test "WIN32" = "$TARGET" ) then
+ CC="gcc";
+ CFLAGS="-funsigned-char -O2";
+
+ LD="ld";
+ LDFLAGS="-Bshareable -lm";
+elif ( test $UNAME = "IRIX64" -o $UNAME = "IRIX" ) then
CC="cc";
CFLAGS="-KPIC -O2 -mips3";
@@ -63,6 +70,12 @@ elif ( test $UNAME = "SunOS" ) then
LD="ld";
LDFLAGS="-r";
+elif ( test $UNAME = "Darwin" ) then
+ CC="cc";
+ CFLAGS="-fPIC -funsigned-char -O2 -fno-common";
+ LD="cc";
+ LDFLAGS=" -dynamiclib -lm";
+ EXT="dylib";
fi
if ( test "$#" = "1" ) then
@@ -74,7 +87,7 @@ if ( test "$#" = "1" ) then
CFILE="$BASE_FILE.c"
OFILE="$BASE_FILE.o"
- SOFILE="$BASE_FILE.so"
+ SOFILE="$BASE_FILE.$EXT"
else
if ( test -f $1$2 ) then
BASE_FILE=`echo $2 | sed -e "1 s/\.c//g"`;
@@ -83,8 +96,11 @@ else
fi
CFILE="$1$BASE_FILE.c"
+ if (test "$TARGET" = "WIN32" ) then
+ DLLFILE="$BASE_FILE.dll";
+ fi
OFILE="$BASE_FILE.o"
- SOFILE="$BASE_FILE.so"
+ SOFILE="$BASE_FILE.$EXT"
fi
INCLUDES=