update readme yayayay
This commit is contained in:
5
Makefile
5
Makefile
@@ -1,6 +1,7 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
CXX=g++
|
CXX=g++
|
||||||
CFLAGS=-Wall -Wextra
|
CFLAGS=-Wall -Wextra -fno-sanitize=address
|
||||||
|
LD_FLAGS=-fno-sanitize=address
|
||||||
TARGET=libcarbon.so
|
TARGET=libcarbon.so
|
||||||
|
|
||||||
BASE_PATH=./src/main/org/neoflock/NeoNucleus
|
BASE_PATH=./src/main/org/neoflock/NeoNucleus
|
||||||
@@ -18,7 +19,7 @@ all: java $(TARGET)
|
|||||||
|
|
||||||
$(TARGET): $(OBJS)
|
$(TARGET): $(OBJS)
|
||||||
$(CXX) -shared -o ${BASE_NPATH}/$(TARGET) \
|
$(CXX) -shared -o ${BASE_NPATH}/$(TARGET) \
|
||||||
$(OBJS) ${BASE_NPATH}/libneonucleus.a $(TLA_PATH)/libtla.a -lc
|
$(OBJS) ${BASE_NPATH}/libneonucleus.a $(TLA_PATH)/libtla.a -lc $(LD_FLAGS)
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) -c -fPIC -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux $(CFLAGS) \
|
$(CXX) -c -fPIC -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux $(CFLAGS) \
|
||||||
$< -o $@
|
$< -o $@
|
||||||
|
|||||||
Submodule NeoNucleus updated: 3b04fd45c7...7c086f6b8e
@@ -1,4 +1,4 @@
|
|||||||
# Carbon Hydrogen
|
# Carbon Hydrogen
|
||||||
NeoNucleus JNI bindings.
|
NeoNucleus JNI bindings.
|
||||||
### Dev Setup Notes
|
### Dev Setup Notes
|
||||||
Java expects libcarbon.so on the src/native directory. This is the default unless you're not using the Makefile.
|
Java expects libcarbon.so on the src/native directory. This is the default unless you're not using the Makefile. Make *sure* to build NeoNucleus with `make lib MODE=release`, and place the libneonucleus.a on src/native.
|
||||||
Reference in New Issue
Block a user