Permalink
Browse files

include classfile_constants, better OSX build

  • Loading branch information...
1 parent c838e81 commit 0fe7ca12702d97bfc3a9153f52e162643d8374d1 @mariusae mariusae committed Mar 2, 2012
Showing with 527 additions and 3 deletions.
  1. +4 −3 Makefile
  2. +523 −0 include/classfile_constants.h
View
@@ -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")
@@ -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
Oops, something went wrong.

0 comments on commit 0fe7ca1

Please sign in to comment.