123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- CPP=g++
- CPPFLAGS=-g -Wall -DCHECK
- CC=gcc
- CFLAGS=-std=c99 -O3 -fomit-frame-pointer
- LFLAGS=-lm
- all: as check c
- c: bilintest-c \
- speedtest-c
- as: bilintest-as \
- speedtest-as \
- test_curvepoint_multiscalar-as \
- test_twistpoint_multiscalar-as
- check: bilintest-check \
- speedtest-check \
- test_curvepoint_multiscalar-check \
- test_twistpoint_multiscalar-check
- bilintest-check: bilintest.c linefunction.c optate.c fpe.c fp2e.c fp6e.c fp12e.c curvepoint_fp.c twistpoint_fp2.c final_expo.c scalar.c parameters.c mul.c mydouble.c
- $(CPP) $(CPPFLAGS) -DNTESTS=20 -o $@ $^
- bilintest-c: bilintest.c linefunction.c optate.c fpe.c fp2e.c fp6e.c fp12e.c curvepoint_fp.c twistpoint_fp2.c final_expo.c scalar.c parameters.c mul.c mydouble.c
- $(CC) $(CFLAGS) $(LFLAGS) -DNTESTS=1000 -o $@ $^
- bilintest-as: bilintest.c linefunction.c optate.c fpe.c fp2e.c fp6e.c fp12e.c curvepoint_fp.c twistpoint_fp2.c final_expo.c scalar.c parameters.c mul.c mydouble.c asfunctions.a
- $(CC) $(CFLAGS) $(LFLAGS) -DQHASM -DNTESTS=1000000 -o $@ $^
- speedtest-check: speedtest.c linefunction.c optate.c fpe.c fp2e.c fp6e.c fp12e.c curvepoint_fp.c twistpoint_fp2.c final_expo.c scalar.c parameters.c mul.c mydouble.c
- $(CPP) $(CPPFLAGS) -o $@ $^
- speedtest-c: speedtest.c linefunction.c optate.c fpe.c fp2e.c fp6e.c fp12e.c curvepoint_fp.c twistpoint_fp2.c final_expo.c scalar.c parameters.c mul.c mydouble.c
- $(CC) $(CFLAGS) $(LFLAGS) -o $@ $^
- speedtest-as: speedtest.c linefunction.c optate.c fpe.c fp2e.c fp6e.c fp12e.c curvepoint_fp.c twistpoint_fp2.c final_expo.c scalar.c parameters.c mul.c mydouble.c asfunctions.a
- $(CC) $(CFLAGS) $(LFLAGS) -DQHASM -o $@ $^
- test_curvepoint_multiscalar-check: test_curvepoint_multiscalar.c fpe.c scalar.c parameters.c curvepoint_fp.c mul.c mydouble.c \
- curvepoint_fp_multiscalar.c heap_rootreplaced.s index_heap.c scalar_sub_nored.s \
- asfunctions.a
- $(CPP) $(CPPFLAGS) -o $@ $^
- test_curvepoint_multiscalar-as: test_curvepoint_multiscalar.c fpe.c scalar.c parameters.c curvepoint_fp.c mul.c mydouble.c \
- curvepoint_fp_multiscalar.c heap_rootreplaced.s index_heap.c scalar_sub_nored.s \
- asfunctions.a
- $(CC) $(CFLAGS) $(LFLAGS) -DQHASM -o $@ $^
- test_twistpoint_multiscalar-check: test_twistpoint_multiscalar.c fpe.c fp2e.c scalar.c parameters.c twistpoint_fp2.c mul.c mydouble.c \
- twistpoint_fp2_multiscalar.c heap_rootreplaced.s index_heap.c scalar_sub_nored.s \
- asfunctions.a
- $(CPP) $(CPPFLAGS) -o $@ $^
- test_twistpoint_multiscalar-as: test_twistpoint_multiscalar.c fpe.c fp2e.c scalar.c parameters.c twistpoint_fp2.c mul.c mydouble.c \
- twistpoint_fp2_multiscalar.c heap_rootreplaced.s index_heap.c scalar_sub_nored.s \
- asfunctions.a
- $(CC) $(CFLAGS) $(LFLAGS) -DQHASM -o $@ $^
- %.o: %.s
- $(CC) $(CFLAGS) -c -o $@ $^
- asfunctions.a: fp2e_add2.o fp2e_sub2.o \
- fp2e_double2.o fp2e_triple2.o fp2e_neg2.o \
- fp2e_mul.o fp2e_mul_fpe.o fp2e_short_coeffred.o \
- fp2e_add.o fp2e_sub.o fp2e_parallel_coeffmul.o fp2e_mulxi.o\
- fp2e_double.o fp2e_triple.o fp2e_neg.o fp2e_conjugate.o \
- fpe_mul.o fp2e_square.o \
- consts.o
- rm -f asfunctions.a
- ar cr asfunctions.a $^
- .PHONY: clean
- clean:
- -rm bilintest-check
- -rm speedtest-check
- -rm bilintest-c
- -rm speedtest-c
- -rm bilintest-as
- -rm speedtest-as
- -rm test_curvepoint_multiscalar-as
- -rm test_curvepoint_multiscalar-check
- -rm *.o
- -rm asfunctions.a
|