update readme yayayay

This commit is contained in:
2026-06-02 09:12:01 -03:00
parent 7038bebd3d
commit 90506db9a1
3 changed files with 5 additions and 4 deletions

View File

@@ -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 $@

View File

@@ -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.