bed5271a28
object compiled on my laptop that I checked in blows up on my desktop. Yay for worrying about where you compile. So instead, because we only needed to call init() to setup jvmpi for garbage collection, only call that if we touch that functionality so we can keep the same old compiled code kicking around, nobody that consumes this needs to change things, etc. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@401 ed5b42cb-e716-0410-a449-f6a68f950b19
45 lines
827 B
Makefile
45 lines
827 B
Makefile
#
|
|
# $Id: Makefile 3331 2005-02-03 01:25:21Z mdb $
|
|
|
|
#
|
|
# Executable definitions
|
|
|
|
CC=gcc
|
|
RM=rm
|
|
CP=cp
|
|
MKDIR=mkdir
|
|
|
|
#
|
|
# Directory definitions
|
|
|
|
ROOT=../../../../../../..
|
|
LIBRARIES_PATH=-L/usr/X11R6/lib
|
|
INSTALL_PATH=${ROOT}/dist/lib/i686-Linux
|
|
|
|
#
|
|
# Parameter and file definitions
|
|
|
|
INCLUDES=-I.. -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux
|
|
LIBRARIES=-lX11
|
|
TARGET=libunsafe.so
|
|
|
|
#
|
|
# Target definitions
|
|
|
|
all: ${TARGET}
|
|
|
|
install:
|
|
@${MKDIR} -p ${INSTALL_PATH}
|
|
cp ${TARGET} ${INSTALL_PATH}
|
|
|
|
${TARGET}: com_threerings_util_unsafe_Unsafe.c
|
|
@echo Compiling Unsafe.c
|
|
@${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 \
|
|
${LIBRARIES} ${LIBRARIES_PATH} -shared
|
|
|
|
clean:
|
|
-${RM} -f *.o ${TARGET}
|