Break Unsafe apart into Unsafe and UnsafeGC, the latter having only the
things to play with garbage collection. The gc stuff required JVMPI which the "server" jvm doesn't have, so poor saps like me with two processors and gobs of ram needed to hack things to run yohoho & force java to run with the "client" vm since it used stuff out of unsafe (but not the gc stuff) Still need to hit up people to build me the shared objects on other platforms, but the linux ones are there & working. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@398 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -21,24 +21,32 @@ INSTALL_PATH=${ROOT}/dist/lib/i686-Linux
|
||||
|
||||
INCLUDES=-I.. -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux
|
||||
LIBRARIES=-lX11
|
||||
TARGET=libunsafe.so
|
||||
TARGETS=libunsafe.so libunsafegc.so
|
||||
|
||||
#
|
||||
# Target definitions
|
||||
|
||||
all: ${TARGET}
|
||||
all: ${TARGETS}
|
||||
|
||||
install:
|
||||
@${MKDIR} -p ${INSTALL_PATH}
|
||||
cp ${TARGET} ${INSTALL_PATH}
|
||||
cp ${TARGETS} ${INSTALL_PATH}
|
||||
|
||||
${TARGET}: com_threerings_util_unsafe_Unsafe.c
|
||||
@echo Compiling Unsafe.c
|
||||
libunsafe.so: com_threerings_util_unsafe_Unsafe.c
|
||||
@echo "Compiling $<"
|
||||
@${CC} ${INCLUDES} -c com_threerings_util_unsafe_Unsafe.c \
|
||||
-o com_threerings_util_unsafe_Unsafe.o
|
||||
@echo Creating ${TARGET}
|
||||
@${CC} -o ${TARGET} com_threerings_util_unsafe_Unsafe.o \
|
||||
@echo "Creating $@"
|
||||
@${CC} -o libunsafe.so com_threerings_util_unsafe_Unsafe.o \
|
||||
${LIBRARIES} ${LIBRARIES_PATH} -shared
|
||||
|
||||
libunsafegc.so: com_threerings_util_unsafe_UnsafeGC.c
|
||||
@echo "Compiling $<"
|
||||
@${CC} ${INCLUDES} -c com_threerings_util_unsafe_UnsafeGC.c \
|
||||
-o com_threerings_util_unsafe_UnsafeGC.o
|
||||
@echo "Creating $@"
|
||||
@${CC} -o libunsafegc.so com_threerings_util_unsafe_UnsafeGC.o \
|
||||
${LIBRARIES} ${LIBRARIES_PATH} -shared
|
||||
|
||||
clean:
|
||||
-${RM} -f *.o ${TARGET}
|
||||
-${RM} -f *.o ${TARGETS}
|
||||
|
||||
Reference in New Issue
Block a user