HEIMDAL: move code from source4/heimdal* to third_party/heimdal*
[samba.git] / third_party / heimdal / lib / hcrypto / libtommath / etc / makefile
1 LTM_CFLAGS += -Wall -W -Wextra -Wshadow -O3 -I../
2 LTM_CFLAGS += $(CFLAGS)
3
4 # default lib name (requires install with root)
5 # LIBNAME=-ltommath
6
7 # libname when you can't install the lib with install
8 LIBNAME=../libtommath.a
9
10 #provable primes
11 pprime: pprime.o
12         $(CC) $(LTM_CFLAGS) pprime.o $(LIBNAME) -o pprime
13
14 # portable [well requires clock()] tuning app
15 tune: tune.o
16         $(CC) $(LTM_CFLAGS) tune.o $(LIBNAME) -o tune
17         ./tune_it.sh
18
19 test_standalone: tune.o
20         # The benchmark program works as a testtool, too
21         $(CC) $(LTM_CFLAGS) tune.o $(LIBNAME) -o test
22
23 # spits out mersenne primes
24 mersenne: mersenne.o
25         $(CC) $(LTM_CFLAGS) mersenne.o $(LIBNAME) -o mersenne
26
27 # finds DR safe primes for the given config
28 drprime: drprime.o
29         $(CC) $(LTM_CFLAGS) drprime.o $(LIBNAME) -o drprime
30
31 # finds 2k safe primes for the given config
32 2kprime: 2kprime.o
33         $(CC) $(LTM_CFLAGS) 2kprime.o $(LIBNAME) -o 2kprime
34
35 mont: mont.o
36         $(CC) $(LTM_CFLAGS) mont.o $(LIBNAME) -o mont
37
38
39 clean:
40         rm -f *.log *.o *.obj *.exe pprime tune mersenne drprime mont 2kprime pprime.dat \
41         tuning_list multiplying squaring test *.da *.dyn *.dpi *~
42         rm -rf .libs
43
44 .PHONY: tune