-all: libcxr.so libnbvtf.so
-
+all: objdir libcxr.so libnbvtf.so
+
+objdir:
+ mkdir -p nbvtf/obj
+
libcxr.so: cxr/cxr.h cxr/cxr_math.h cxr/cxr_mem.h
gcc -O1 -ggdb -fPIC -shared \
-Wall -Wno-unused-variable -Wno-unused-function -std=c99 -pedantic \
-lm
tovtf: nbvtf/obj/librgbcx.o nbvtf/obj/tovtf.o
- g++ -O3 nbvtf/obj/tovtf.o nbvtf/obj/librgbcx.o -o tovtf
+ g++ -O3 \
+ -Wno-unused-variable -Wno-unused-function -fsanitize=address -Werror=vla \
+ nbvtf/obj/tovtf.o nbvtf/obj/librgbcx.o \
+ -o tovtf
nbvtf/obj/librgbcx.o: nbvtf/librgbcx.cc nbvtf/rgbcx.h
g++ -O3 -c \