2003-02-28 16:02:06 +00:00
|
|
|
CC = gcc
|
2003-02-28 16:04:58 +00:00
|
|
|
CFLAGS += -DDEBUG -Wall -W -O3 -fomit-frame-pointer -funroll-loops
|
2003-02-28 16:02:06 +00:00
|
|
|
|
2003-02-28 16:05:52 +00:00
|
|
|
VERSION=0.07
|
2003-02-28 16:02:06 +00:00
|
|
|
|
|
|
|
default: test
|
|
|
|
|
2003-02-28 16:04:58 +00:00
|
|
|
test: bn.o demo.o
|
2003-02-28 16:02:06 +00:00
|
|
|
$(CC) bn.o demo.o -o demo
|
2003-02-28 16:04:58 +00:00
|
|
|
cd mtest ; gcc -O3 -fomit-frame-pointer -funroll-loops mtest.c -o mtest.exe -s
|
2003-02-28 16:02:06 +00:00
|
|
|
|
|
|
|
docdvi: bn.tex
|
|
|
|
latex bn
|
|
|
|
|
|
|
|
docs: docdvi
|
|
|
|
pdflatex bn
|
|
|
|
rm -f bn.log bn.aux bn.dvi
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.exe mtest/*.exe bn.log bn.aux bn.dvi *.s
|
|
|
|
|
|
|
|
zipup: clean docs
|
|
|
|
chdir .. ; rm -rf ltm* libtommath-$(VERSION) ; mkdir libtommath-$(VERSION) ; \
|
|
|
|
cp -R ./libtommath/* ./libtommath-$(VERSION)/ ; tar -c libtommath-$(VERSION)/* > ltm-$(VERSION).tar ; \
|
|
|
|
bzip2 -9vv ltm-$(VERSION).tar ; zip -9 -r ltm-$(VERSION).zip libtommath-$(VERSION)/*
|