Add Mac OS X support

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4488 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Landon Fuller
2006-12-19 19:19:12 +00:00
parent 5f94b951d8
commit 5bb6b162d4
3 changed files with 44 additions and 5 deletions
@@ -1,7 +1,45 @@
#
# $Id: Makefile 3331 2005-02-03 01:25:21Z mdb $
#
# Placeholder Makefile
# $Id: Makefile 3332 2005-02-03 01:30:33Z mdb $
install:
@echo Nothing to see here. Move it along.
#
# Executable definitions
CC=gcc
RM=rm
CP=cp
MKDIR=mkdir
#
# Directory definitions
ROOT=../../../../../../..
LIBRARIES_PATH=
OSINCDIR!=uname -s | tr 'A-Z' 'a-z'
INSTALL_PATH=${ROOT}/dist/lib/`uname -m`-Darwin
#
# Parameter and file definitions
INCLUDES=-I.. -I/System/Library/Frameworks/JavaVM.framework/Headers
LIBRARIES=
TARGET=libsignal.dylib
#
# Target definitions
all: ${TARGET}
install: ${TARGET}
@${MKDIR} -p ${INSTALL_PATH}
cp ${TARGET} ${INSTALL_PATH}
${TARGET}: com_threerings_util_signal_SignalManager.c
@echo "Compiling $<"
@${CC} ${INCLUDES} -c com_threerings_util_signal_SignalManager.c \
-o com_threerings_util_signal_SignalManager.o
@echo "Creating $@"
@${CC} -o ${TARGET} com_threerings_util_signal_SignalManager.o \
${LIBRARIES} ${LIBRARIES_PATH} -bundle
clean:
-${RM} -f *.o ${TARGET}
@@ -0,0 +1 @@
../FreeBSD/com_threerings_util_signal_SignalManager.c
Binary file not shown.