superficial tweaks

This commit is contained in:
Joel Dice 2007-09-21 08:16:43 -06:00
parent 3838cd0e68
commit 65a3ee4277
4 changed files with 12 additions and 12 deletions

View File

@ -7,9 +7,9 @@
#include "jni-util.h"
#ifdef __APPLE__
#define SO_SUFFIX ".jnilib"
# define SO_SUFFIX ".jnilib"
#else
#define SO_SUFFIX ".so"
# define SO_SUFFIX ".so"
#endif
#undef JNIEXPORT

View File

@ -8,8 +8,9 @@ ifeq ($(arch),i686)
arch = i386
endif
platform = $(shell uname -s)
ifeq ($(platform),Darwin)
platform = $(shell uname -s | tr [:upper:] [:lower:])
ifeq ($(platform),darwin)
rdynamic =
thread-cflags =
shared = -dynamiclib
@ -25,7 +26,7 @@ endif
mode = debug
bld = build/$(arch)/$(mode)
bld = build/$(platform)/$(arch)/$(mode)
cls = build/classes
src = src
classpath = classpath
@ -62,9 +63,9 @@ ifeq ($(mode),stress-major)
cflags += -O0 -g3 -DVM_STRESS -DVM_STRESS_MAJOR
endif
ifeq ($(mode),fast)
cflags += -O3 -DNDEBUG
strip = strip
show-size = ls -l
cflags += -g3 -O3 -DNDEBUG
#strip = strip
#show-size = ls -l
endif
cpp-objects = $(foreach x,$(1),$(patsubst $(2)/%.cpp,$(bld)/%.o,$(x)))

View File

@ -22,13 +22,13 @@
# define ULD "lu"
# define LLD "ld"
#else
#error "Unsupported architecture"
# error "Unsupported architecture"
#endif
#ifdef __APPLE__
#define SO_SUFFIX ".jnilib"
# define SO_SUFFIX ".jnilib"
#else
#define SO_SUFFIX ".so"
# define SO_SUFFIX ".so"
#endif
#define NO_RETURN __attribute__((noreturn))

View File

@ -15,7 +15,6 @@
#define ACQUIRE(x) MutexResource MAKE_NAME(mutexResource_) (x)
#ifdef __i386__
extern "C" uint64_t