From: Andre P. <at...@us...> - 2005-04-01 03:00:14
|
Update of /cvsroot/hoc/hoc/Foundation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16779/Foundation Modified Files: Makefile.in Log Message: Build static and dynamic versions of HOC/Foundation/AppKit packages (dynamic versions are largely untested at the moment, and may be broken) Added 'make check' target Added Makefile for Tests/ directory ifgen now compiles with -dynamic, hooray Build static and dynamic versions of Tests/TestFoundation (untested, but at least the static version should work OK) Warning: make install will definitely be broken for the dynamic versions of the libraries, since I haven't updated the Makefiles to run install_name_tool to change the id of the .dylib file yet Index: Makefile.in =================================================================== RCS file: /cvsroot/hoc/hoc/Foundation/Makefile.in,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Makefile.in 31 Mar 2005 16:37:57 -0000 1.8 +++ Makefile.in 1 Apr 2005 03:00:05 -0000 1.9 @@ -7,7 +7,7 @@ Makefile.in \ $(NULL) -all: libHSFoundation.a HSFoundation.o register-inplace +all: libHSFoundation.a libHSFoundation_dyn.dylib HSFoundation.o register-inplace register-inplace: Foundation.conf-inplace [ -f "../inplace.conf" ] || echo '[]' > ../inplace.conf @@ -37,6 +37,7 @@ mkdir -p build/objects mkdir -p build/imports $(GHC) --make Foundation.hs \ + -fPIC -dynamic \ -odir build/objects \ -ignore-package Foundation \ -hidir build/imports \ @@ -58,6 +59,11 @@ libHSFoundation.a: ghcmake find build/objects/ -name \*.o | xargs libtool -static -o libHSFoundation.a +libHSFoundation_dyn.dylib: ghcmake + export MACOSX_DEPLOYMENT_TARGET=10.3 && find build/objects/ -name \*.o \ + | xargs libtool -read_only_relocs suppress -dynamic -o $@ -undefined dynamic_lookup + install_name_tool -id "`pwd`/$@" $@ + #libHSFoundation.a: HSFoundation.o # rm -f libHSFoundation.a # ar cq libHSFoundation.a HSFoundation.o @@ -69,8 +75,8 @@ install: all Foundation.conf mkdir -p $(GHC_LIB_PATH)/Foundation - cp -R libHSFoundation.a HSFoundation.o build/imports \ - $(GHC_LIB_PATH)/Foundation/ + cp -R libHSFoundation.a HSFoundation.o libHSFoundation_dyn.dylib \ + build/imports $(GHC_LIB_PATH)/Foundation/ ranlib $(GHC_LIB_PATH)/Foundation/libHSFoundation.a $(GHC_PKG) update Foundation.conf |