From: Andre P. <at...@us...> - 2005-04-01 03:00:15
|
Update of /cvsroot/hoc/hoc/HOC_cbits In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16779/HOC_cbits 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/HOC_cbits/Makefile.in,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile.in 17 May 2004 18:38:42 -0000 1.4 +++ Makefile.in 1 Apr 2005 03:00:06 -0000 1.5 @@ -26,7 +26,7 @@ # -all: libHOC_cbits.a HOC_cbits.o +all: libHOC_cbits_dyn.dylib HOC_cbits.o clean: rm -rf libHOC_cbits.a HOC_cbits.o $(OBJS) depend @@ -41,6 +41,16 @@ cp ../libffi-src/build/.libs/libffi.a libHOC_cbits.a ar qs libHOC_cbits.a $(OBJS) +libHOC_cbits_dyn.dylib: libHOC_cbits.a + export MACOSX_DEPLOYMENT_TARGET=10.3 && \ + libtool \ + -dynamic \ + -read_only_relocs suppress \ + -undefined dynamic_lookup \ + -o $@ \ + $< + install_name_tool -id "`pwd`/$@" $@ + %.o: %.m gcc -c $(CFLAGS) -o $@ $< |