Build the library in our local directory, which we can check in, and

install from there using the install target.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3152 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2004-10-20 03:30:20 +00:00
parent 53afb875f0
commit 17d2f97021
6 changed files with 27 additions and 22 deletions
@@ -1,5 +1,5 @@
#
# $Id: Makefile,v 1.5 2003/03/31 02:10:04 mdb Exp $
# $Id: Makefile,v 1.6 2004/10/20 03:28:48 mdb Exp $
#
# Executable definitions
@@ -22,22 +22,24 @@ INSTALL_PATH=${ROOT}/dist/lib/i686-Linux
INCLUDES=-I.. -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux
LIBRARIES=-lX11
TARGET=libkeybd.so
INSTALL_TARGET=${INSTALL_PATH}/${TARGET}
#
# Target definitions
all: ${INSTALL_TARGET}
all: ${TARGET}
${INSTALL_TARGET}: com_threerings_util_keybd_Keyboard.c
install: ${TARGET}
@${MKDIR} -p ${INSTALL_PATH}
cp ${TARGET} ${INSTALL_PATH}
${TARGET}: com_threerings_util_keybd_Keyboard.c
@echo Compiling Keyboard.c
@${CC} ${INCLUDES} -c com_threerings_util_keybd_Keyboard.c \
-o com_threerings_util_keybd_Keyboard.o
@echo Creating libkeybd.so
@${MKDIR} -p ${INSTALL_PATH}
@${CC} -o ${INSTALL_TARGET} com_threerings_util_keybd_Keyboard.o \
@${CC} -o ${TARGET} com_threerings_util_keybd_Keyboard.o \
${LIBRARIES} ${LIBRARIES_PATH} -shared
clean:
-${RM} *.o
-${RM} ${INSTALL_TARGET}
-${RM} ${TARGET}
Binary file not shown.
@@ -1,5 +1,5 @@
#
# $Id: Makefile,v 1.1 2003/03/31 02:10:04 mdb Exp $
# $Id: Makefile,v 1.2 2004/10/20 03:30:20 mdb Exp $
#
# Executable definitions
@@ -22,22 +22,23 @@ INSTALL_PATH=${ROOT}/dist/lib/i686-Linux
INCLUDES=-I.. -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux
LIBRARIES=
TARGET=libsignal.so
INSTALL_TARGET=${INSTALL_PATH}/${TARGET}
#
# Target definitions
all: ${INSTALL_TARGET}
all: ${TARGET}
${INSTALL_TARGET}: com_threerings_util_signal_SignalManager.c
install: ${TARGET}
@${MKDIR} -p ${INSTALL_PATH}
cp ${TARGET} ${INSTALL_PATH}
${TARGET}: com_threerings_util_signal_SignalManager.c
@echo Compiling SignalManager.c
@${CC} ${INCLUDES} -c com_threerings_util_signal_SignalManager.c \
-o com_threerings_util_signal_SignalManager.o
@echo Creating libsignal.so
@${MKDIR} -p ${INSTALL_PATH}
@${CC} -o ${INSTALL_TARGET} com_threerings_util_signal_SignalManager.o \
@${CC} -o ${TARGET} com_threerings_util_signal_SignalManager.o \
${LIBRARIES} ${LIBRARIES_PATH} -shared
clean:
-${RM} *.o
-${RM} ${INSTALL_TARGET}
-${RM} -f *.o ${TARGET}
Binary file not shown.
@@ -1,5 +1,5 @@
#
# $Id: Makefile,v 1.1 2003/05/08 21:25:20 mdb Exp $
# $Id: Makefile,v 1.2 2004/10/20 03:27:22 mdb Exp $
#
# Executable definitions
@@ -22,22 +22,24 @@ INSTALL_PATH=${ROOT}/dist/lib/i686-Linux
INCLUDES=-I.. -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux
LIBRARIES=-lX11
TARGET=libunsafe.so
INSTALL_TARGET=${INSTALL_PATH}/${TARGET}
#
# Target definitions
all: ${INSTALL_TARGET}
all: ${TARGET}
${INSTALL_TARGET}: com_threerings_util_unsafe_Unsafe.c
install: ${TARGET}
@${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}
@${MKDIR} -p ${INSTALL_PATH}
@${CC} -o ${INSTALL_TARGET} com_threerings_util_unsafe_Unsafe.o \
@${CC} -o ${TARGET} com_threerings_util_unsafe_Unsafe.o \
${LIBRARIES} ${LIBRARIES_PATH} -shared
clean:
-${RM} *.o
-${RM} ${INSTALL_TARGET}
-${RM} ${TARGET}
Binary file not shown.