all : check_generated SRT:=../.. LIBSURVIVE:=$(SRT)/lib/libsurvive.so CFLAGS:=-I$(SRT)/redist -I$(SRT)/include -O3 -g -DFLT=double -DUSE_DOUBLE # -fsanitize=address -fsanitize=undefined check_generated: check_generated.c ../../src/survive_reproject.generated.h survive_reproject.full.generated.h $(LIBSURVIVE) cd ../..;make gcc $(CFLAGS) -o $@ $^ $(LDFLAGS) -lm -lc -lgcc clean : rm -rf check_generated ../../src/survive_reproject.generated.h: reprojection_functions.sage sage reprojection_functions.sage > ../../src/survive_reproject.generated.h survive_reproject.full.generated.h: reprojection_functions.sage sage reprojection_functions.sage --full > survive_reproject.full.generated.h