Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
include classfile_constants, better OSX build
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusae committed Mar 2, 2012
1 parent c838e81 commit 0fe7ca1
Show file tree
Hide file tree
Showing 2 changed files with 527 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Expand Up @@ -2,8 +2,9 @@ CC=gcc
OS=$(shell uname -s | tr '[A-Z]' '[a-z]')

ifeq ("$(OS)", "darwin")
JAVE_HOME=$(shell /usr/libexec/java_home)
JAVA_HEADERS=/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers/
JAVA_HOME=$(shell /usr/libexec/java_home)
JAVA_HEADERS=/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers
#JAVA_HEADERS=/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers/
endif

ifeq ("$(OS)", "linux")
Expand All @@ -13,7 +14,7 @@ endif

CFLAGS=-Ijava_crw_demo -fno-strict-aliasing \
-fPIC -fno-omit-frame-pointer -W -Wall -Wno-unused -Wno-parentheses \
-I$(JAVA_HEADERS)
-I$(JAVA_HEADERS) -Iinclude
LDFLAGS=-fno-strict-aliasing -fPIC -fno-omit-frame-pointer \
-static-libgcc -mimpure-text -shared

Expand Down

0 comments on commit 0fe7ca1

Please sign in to comment.