libtommath/etc/makefile.icc

68 lines
1.7 KiB
Plaintext
Raw Normal View History

2004-08-09 22:15:59 +00:00
CC = icc
CFLAGS += -I../
# optimize for SPEED
#
# -mcpu= can be pentium, pentiumpro (covers PII through PIII) or pentium4
# -ax? specifies make code specifically for ? but compatible with IA-32
# -x? specifies compile solely for ? [not specifically IA-32 compatible]
#
2019-05-07 09:55:43 +00:00
# where ? is
2004-08-09 22:15:59 +00:00
# K - PIII
# W - first P4 [Williamette]
# N - P4 Northwood
# P - P4 Prescott
# B - Blend of P4 and PM [mobile]
#
# Default to just generic max opts
2005-08-01 16:37:28 +00:00
CFLAGS += -O3 -xP -ip
2004-08-09 22:15:59 +00:00
# default lib name (requires install with root)
# LIBNAME=-ltommath
# libname when you can't install the lib with install
LIBNAME=../libtommath.a
#provable primes
pprime: pprime.o
$(CC) pprime.o $(LIBNAME) -o pprime
tune: tune.o
$(CC) $(CFLAGS) tune.o $(LIBNAME) -o tune
2019-05-07 09:55:43 +00:00
./tune_it.sh
2004-08-09 22:15:59 +00:00
# same app but using RDTSC for higher precision [requires 80586+], coff based gcc installs [e.g. ming, cygwin, djgpp]
tune86: tune.c
nasm -f coff timer.asm
$(CC) -DX86_TIMER $(CFLAGS) tune.c timer.o $(LIBNAME) -o tune86
2019-05-07 09:55:43 +00:00
2004-08-09 22:15:59 +00:00
# for cygwin
tune86c: tune.c
nasm -f gnuwin32 timer.asm
$(CC) -DX86_TIMER $(CFLAGS) tune.c timer.o $(LIBNAME) -o tune86
#make tune86 for linux or any ELF format
tune86l: tune.c
nasm -f elf -DUSE_ELF timer.asm
$(CC) -DX86_TIMER $(CFLAGS) tune.c timer.o $(LIBNAME) -o tune86l
2019-05-07 09:55:43 +00:00
2004-08-09 22:15:59 +00:00
# spits out mersenne primes
mersenne: mersenne.o
$(CC) mersenne.o $(LIBNAME) -o mersenne
# fines DR safe primes for the given config
drprime: drprime.o
$(CC) drprime.o $(LIBNAME) -o drprime
2019-05-07 09:55:43 +00:00
2004-08-09 22:15:59 +00:00
# fines 2k safe primes for the given config
2kprime: 2kprime.o
$(CC) 2kprime.o $(LIBNAME) -o 2kprime
mont: mont.o
$(CC) mont.o $(LIBNAME) -o mont
2019-05-07 09:55:43 +00:00
2004-08-09 22:15:59 +00:00
clean:
rm -f *.log *.o *.obj *.exe pprime tune mersenne drprime tune86 tune86l mont 2kprime pprime.dat *.il tuning_list