From 2a78cf2288b17279f3c244bf9040e16a9e1fb330 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 10 Jan 2001 21:46:05 +0000 Subject: [PATCH] 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! --- Modules/makesetup | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Modules/makesetup b/Modules/makesetup index 125a51e8695..b8b34d85b14 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"