1 CFLAGS
+= -Wall
-W
-Wshadow
-O3
-fomit-frame-pointer
-funroll-loops
-I..
/
3 # default lib name (requires install with root)
6 # libname when you can't install the lib with install
7 LIBNAME
=..
/libtommath.a
11 $(CC
) pprime.o
$(LIBNAME
) -o pprime
13 # portable [well requires clock()] tuning app
15 $(CC
) tune.o
$(LIBNAME
) -o tune
17 # same app but using RDTSC for higher precision [requires 80586+], coff based gcc installs [e.g. ming, cygwin, djgpp]
19 nasm
-f coff timer.asm
20 $(CC
) -DX86_TIMER
$(CFLAGS
) tune.c timer.o
$(LIBNAME
) -o tune86
24 nasm
-f gnuwin32 timer.asm
25 $(CC
) -DX86_TIMER
$(CFLAGS
) tune.c timer.o
$(LIBNAME
) -o tune86
27 #make tune86 for linux or any ELF format
29 nasm
-f elf
-DUSE_ELF timer.asm
30 $(CC
) -DX86_TIMER
$(CFLAGS
) tune.c timer.o
$(LIBNAME
) -o tune86l
32 # spits out mersenne primes
34 $(CC
) mersenne.o
$(LIBNAME
) -o mersenne
36 # fines DR safe primes for the given config
38 $(CC
) drprime.o
$(LIBNAME
) -o drprime
40 # fines 2k safe primes for the given config
42 $(CC
) 2kprime.o
$(LIBNAME
) -o
2kprime
45 $(CC
) mont.o
$(LIBNAME
) -o mont
49 rm -f
*.log
*.o
*.obj
*.exe pprime tune mersenne drprime tune86 tune86l mont
2kprime pprime.dat \