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!
This commit is contained in:
Guido van Rossum 2001-01-10 21:46:05 +00:00
parent acb14c716f
commit 2a78cf2288
1 changed files with 6 additions and 1 deletions

View File

@ -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"