X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=Makefile;h=9a4c41c55506c66a81d3ebcbbef470aed78bed96;hb=23283f27eb4a14456ba00dc05e83bf19ad71b1a6;hp=8d62488fb15ae79798180dfaee2b5f1a863fdee3;hpb=2937c186209f5ff766cacc9f17a118744ede7b7a;p=convexer.git diff --git a/Makefile b/Makefile index 8d62488..9a4c41c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ -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 \ @@ -9,7 +12,10 @@ libcxr.so: cxr/cxr.h cxr/cxr_math.h cxr/cxr_mem.h -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 \