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 \ -DCXR_SO -DCXR_DEBUG -DCXR_VALVE_MAP_FILE \ -xc cxr/cxr.h \ -o libcxr.so \ -lm tovtf: nbvtf/obj/librgbcx.o nbvtf/obj/tovtf.o 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 \ nbvtf/librgbcx.cc \ -o nbvtf/obj/librgbcx.o nbvtf/obj/tovtf.o: nbvtf/vtf_cmd.c nbvtf/nbvtf.h gcc -O3 -c \ -DUSE_LIBRGBCX \ -I./nbvtf/ \ nbvtf/vtf_cmd.c \ -o nbvtf/obj/tovtf.o nbvtf/obj/libnbvtf.o: nbvtf/nbvtf.h gcc -O3 -fPIC -c \ -DUSE_LIBRGBCX -DNBVTF_AS_SO \ -xc nbvtf/nbvtf.h \ -o nbvtf/obj/libnbvtf.o libnbvtf.so: nbvtf/obj/librgbcx.o nbvtf/obj/libnbvtf.o g++ -O3 -shared \ nbvtf/obj/librgbcx.o nbvtf/obj/libnbvtf.o \ -o libnbvtf.so test: cxr/test.c cxr/cxr.h cxr/cxr_math.h cxr/solid.h gcc -ggdb -O1 -Wall \ -Wno-unused-variable -Wno-unused-function -fsanitize=address -Werror=vla \ cxr/test.c \ -o test \ -lm