Skip to content

Commit

Permalink
Merge pull request #105 from alexanderkoller/master
Browse files Browse the repository at this point in the history
Makefile for Java SWIG now also works on MacOS
  • Loading branch information
nshmyrev committed Dec 27, 2017
2 parents b386775 + c7029f8 commit d4fb460
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion swig/java/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
CFLAGS := -g -Wall -DPIC -fPIC
CPPFLAGS := -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -Wno-unused-function `pkg-config --cflags sphinxbase pocketsphinx`
CPPFLAGS := -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/darwin -I$(JAVA_HOME)/include/linux -Wno-unused-function `pkg-config --cflags sphinxbase pocketsphinx`

all: libpocketsphinx_jni.so

libpocketsphinx_jni.dylib: pocketsphinx_wrap.o sphinxbase_wrap.o
$(CC) -dynamiclib -o $@ pocketsphinx_wrap.o sphinxbase_wrap.o `pkg-config --libs sphinxbase pocketsphinx`


libpocketsphinx_jni.so: pocketsphinx_wrap.o sphinxbase_wrap.o
$(CC) -shared -o $@ pocketsphinx_wrap.o sphinxbase_wrap.o `pkg-config --libs sphinxbase pocketsphinx`

Expand Down

0 comments on commit d4fb460

Please sign in to comment.