Skip to content

Commit

Permalink
build mac native lib
Browse files Browse the repository at this point in the history
  • Loading branch information
xerial committed Mar 4, 2016
1 parent 49898bb commit 96b8021
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ all: larray
include Makefile.common


SRC:=larray-mmap/src/main/scala
SRC:=larray-mmap/src/main/java

LARRAY_OUT:=$(TARGET)/larray-$(os_arch)
LARRAY_SRC_DIR:=$(SRC)/xerial/larray/impl
Expand All @@ -28,9 +28,6 @@ $(LARRAY_HEADER): $(SRC)/xerial/larray/impl/LArrayNative.java $(TARGET)/classes
$(JAVAH) -classpath $(TARGET)/classes -o $@ xerial.larray.impl.LArrayNative





$(LARRAY_OUT)/%.o : $(LARRAY_SRC_DIR)/%.c
@mkdir -p $(@D)
$(CC) $(CFLAGS) -c $< -o $@
Expand Down
4 changes: 2 additions & 2 deletions Makefile.common
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TARGET:=larray-mmap/target
SRC:=larray-mmap/src/main/scala
SRC:=larray-mmap/src/main/java

ifndef JAVA_HOME
$(error Set JAVA_HOME environment variable)
Expand Down Expand Up @@ -95,7 +95,7 @@ Mac-i386_LIBNAME := liblarray.jnilib
Mac-x86_64_CC := gcc -arch $(OS_ARCH)
Mac-x86_64_STRIP := strip -x
Mac-x86_64_CFLAGS := -Iinclude/inc_mac -I$(JAVA_HOME)/include -O2 -fPIC -mmacosx-version-min=10.5 -fvisibility=hidden
Mac-x86_64_LINKFLAGS := -dynamiclib -static-libgcc
Mac-x86_64_LINKFLAGS := -dynamiclib
Mac-x86_64_LIBNAME := liblarray.jnilib

Windows-x86_CC := $(CROSS_PREFIX)gcc
Expand Down
Binary file not shown.

0 comments on commit 96b8021

Please sign in to comment.