Skip to content

Commit

Permalink
Fixed config and Makefile for Mac OSX, added shell script version of
Browse files Browse the repository at this point in the history
runawttest.bat and runswingtest.bat.
  • Loading branch information
mascarenhas committed Jun 15, 2005
1 parent 11f3a22 commit bdf5134
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ apidoc:
# Build .c files.
#
$(SO_FILE): $(OBJS)
$(CC) -shared -o$@ $? $(LUA_LIBDIR)/$(LIB_LUA)
export MACOSX_DEPLOYMENT_TARGET=10.3; $(CC) -shared -o $@ $? $(LIB_LUA)

src/c/luajava.c: src/c/luajava.h

Expand Down
26 changes: 14 additions & 12 deletions config
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
#############################################################
#Linux
#Linux/BSD/Mac
LUA_DIR= /usr/local/share/lua/5.0
LUA_LIBDIR= /usr/local/lib/lua/5.0
LUA_INCLUDES= /usr/local/lib/lua/5.0/include
LUA_INCLUDES= /usr/local/include
JDK= $(JAVA_HOME)
# For Mac OS, comment the above line and uncomment this one
#JDK=/Library/Java/Home

LIB_LUA= liblua50.a
# Full path to Lua static library
LIB_LUA= /home/mascarenhas/lua50/lib/Linux26/liblua50.a

#Linux/BSD
LIB_EXT= .so
#Mac OS
LIB_EXT= .jnilib
LIB_PREFIX= lib
#Linux/BSD
LIB_OPTION= -shared
#BSD
LIB_OPTION= -dynamiclib -all_load

## On FreeBSD systems, the following line should be commented
## On FreeBSD and Mac OS systems, the following line should be commented
DLLIB= -ldl

WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings
Expand Down Expand Up @@ -40,13 +49,6 @@ CC= gcc
#CC= cl


#############################################################
#Others

#LIB_OPTION= -dynamiclib #for MacOS X
#LIB_EXT= .dylib


#########################################################
VERSION= 1.0
PKG= luajava-$(VERSION)
Expand All @@ -56,4 +58,4 @@ JAR_FILE= $(PKG).jar
SO_FILE= $(LIB_PREFIX)$(PKG)$(LIB_EXT)
DIST_DIR= $(PKG)

# $Id: config,v 1.7 2005-05-23 15:49:39 tuler Exp $
# $Id: config,v 1.8 2005-06-15 19:03:26 mascarenhas Exp $
2 changes: 1 addition & 1 deletion test/runawttest.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
java -cp "../luajava-1.0b4.jar" -Djava.library.path=.. org.keplerproject.luajava.Console awttest.lua
java -cp "../luajava-1.0.jar" -Djava.library.path=.. org.keplerproject.luajava.Console awttest.lua
2 changes: 2 additions & 0 deletions test/runawttest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
java -cp "../luajava-1.0.jar" -Djava.library.path=.. org.keplerproject.luajava.Console awtTest.lua
2 changes: 1 addition & 1 deletion test/runswingtest.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
java -cp "../luajava-1.0b4.jar" -Djava.library.path=.. org.keplerproject.luajava.Console swingtest.lua
java -cp "../luajava-1.0.jar" -Djava.library.path=.. org.keplerproject.luajava.Console swingtest.lua
2 changes: 2 additions & 0 deletions test/runswingtest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
java -cp "../luajava-1.0.jar" -Djava.library.path=.. org.keplerproject.luajava.Console swingTest.lua

0 comments on commit bdf5134

Please sign in to comment.