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:
parent
acb14c716f
commit
2a78cf2288
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue