summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-10 21:46:05 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-10 21:46:05 (GMT)
commit2a78cf2288b17279f3c244bf9040e16a9e1fb330 (patch)
tree7f561c47b1abe497b4b00f18c761c3b1cd1e5900
parentacb14c716f7a82ad6f49ec1ff15ed102d8144140 (diff)
downloadcpython-2a78cf2288b17279f3c244bf9040e16a9e1fb330.zip
cpython-2a78cf2288b17279f3c244bf9040e16a9e1fb330.tar.gz
cpython-2a78cf2288b17279f3c244bf9040e16a9e1fb330.tar.bz2
SF Patch #102357 by bbum: Add support for frameworks and objective-c
source. Uesful for both GnuStep and for OSXS/OSX/Darwin. (Note: I changed $(CCC) to $(CXX) since that's now the name of the C++ compiler. Please test!
-rwxr-xr-xModules/makesetup7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/makesetup b/Modules/makesetup
index 125a51e..b8b34d8 100755
--- a/Modules/makesetup
+++ b/Modules/makesetup
@@ -152,7 +152,10 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
srcs) srcs="$srcs $arg"; skip=; continue;;
esac
case $arg in
- -[IDUCf]*) cpps="$cpps $arg";;
+ -framework) libs="$libs $arg"; skip=libs;
+ # OSX/OSXS/Darwin framework link cmd
+ ;;
+ -[IDUCfF]*) cpps="$cpps $arg";;
-Xlinker) libs="$libs $arg"; skip=libs;;
-rpath) libs="$libs $arg"; skip=libs;;
--rpath) libs="$libs $arg"; skip=libs;;
@@ -164,6 +167,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
*.def) libs="$libs $arg";;
*.o) srcs="$srcs `basename $arg .o`.c";;
*.[cC]) srcs="$srcs $arg";;
+ *.m) srcs="$srcs $arg";; # Objective-C src
*.cc) srcs="$srcs $arg";;
*.c++) srcs="$srcs $arg";;
*.cxx) srcs="$srcs $arg";;
@@ -197,6 +201,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
*.C) obj=`basename $src .C`.o; cc='$(CXX)';;
*.cxx) obj=`basename $src .cxx`.o; cc='$(CXX)';;
*.cpp) obj=`basename $src .cpp`.o; cc='$(CXX)';;
+ *.m) obj=`basename $src .m`.o; cc='$(CXX)';; # Obj-C
*) continue;;
esac
objs="$objs $obj"