blob: 79d05cb6e61918a03ad663395ee885b55de471eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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
|