Build the native linux keyboard library as part of the normal compilation
task and place it in dist/lib/i686-Linux. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2111 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -89,12 +89,14 @@
|
|||||||
<delete dir="${deploy.dir}"/>
|
<delete dir="${deploy.dir}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- build the java class files -->
|
<!-- build the java class files and native libraries -->
|
||||||
<target name="compile" depends="prepare">
|
<target name="compile" depends="prepare">
|
||||||
<javac srcdir="src/java" destdir="${classes.dir}"
|
<javac srcdir="src/java" destdir="${classes.dir}"
|
||||||
debug="on" optimize="{$build.optimize}" deprecation="on">
|
debug="on" optimize="{$build.optimize}" deprecation="on">
|
||||||
<classpath refid="classpath"/>
|
<classpath refid="classpath"/>
|
||||||
</javac>
|
</javac>
|
||||||
|
<exec dir="src/java/com/threerings/util/keybd/i686-Linux"
|
||||||
|
executable="make"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- build the javadoc documentation -->
|
<!-- build the javadoc documentation -->
|
||||||
|
|||||||
@@ -1,22 +1,41 @@
|
|||||||
#
|
#
|
||||||
# $Id: Makefile,v 1.1 2003/01/12 00:26:39 shaper Exp $
|
# $Id: Makefile,v 1.2 2003/01/12 02:04:19 shaper Exp $
|
||||||
|
|
||||||
|
#
|
||||||
|
# Executable definitions
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
RM=rm
|
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/usr/local/jdk1.4/include -I/usr/local/jdk1.4/include/linux
|
INCLUDES=-I.. -I/usr/local/jdk1.4/include -I/usr/local/jdk1.4/include/linux
|
||||||
LIBRARIES_PATH=-L/usr/X11R6/lib
|
|
||||||
LIBRARIES=-lX11
|
LIBRARIES=-lX11
|
||||||
TARGET=libkeybd.so
|
TARGET=libkeybd.so
|
||||||
|
INSTALL_TARGET=${INSTALL_PATH}/${TARGET}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Target definitions
|
||||||
|
|
||||||
all: ${TARGET}
|
all: ${TARGET}
|
||||||
|
|
||||||
${TARGET}: com_threerings_util_keybd_Keyboard.c
|
${TARGET}: com_threerings_util_keybd_Keyboard.c
|
||||||
${CC} ${INCLUDES} -c com_threerings_util_keybd_Keyboard.c \
|
${CC} ${INCLUDES} -c com_threerings_util_keybd_Keyboard.c \
|
||||||
-o com_threerings_util_keybd_Keyboard.o
|
-o com_threerings_util_keybd_Keyboard.o
|
||||||
${CC} -o ${TARGET} com_threerings_util_keybd_Keyboard.o \
|
${MKDIR} -p ${INSTALL_PATH}
|
||||||
|
${CC} -o ${INSTALL_TARGET} com_threerings_util_keybd_Keyboard.o \
|
||||||
${LIBRARIES} ${LIBRARIES_PATH} -shared
|
${LIBRARIES} ${LIBRARIES_PATH} -shared
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-${RM} *.o
|
-${RM} *.o
|
||||||
-${RM} ${TARGET}
|
-${RM} ${INSTALL_TARGET}
|
||||||
|
|||||||
Reference in New Issue
Block a user