1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/math/libtommath/files/patch-makefile
Pietro Cerutti 210eca65be - Remove unused PLIST_SUB variables
- Add regression-test target

Feature safe:	yes
2013-04-18 13:27:18 +00:00

58 lines
1.7 KiB
Plaintext

--- makefile.bak 2010-07-30 12:05:21.219322050 +0200
+++ makefile 2010-07-30 12:07:19.588144344 +0200
@@ -14,7 +14,7 @@
ifndef IGNORE_SPEED
#for speed
-CFLAGS += -O3 -funroll-loops
+CFLAGS += -funroll-loops
#for size
#CFLAGS += -Os
@@ -53,9 +53,9 @@
#INCPATH-The directory to install the header files for libtommath.
#DATAPATH-The directory to install the pdf docs.
DESTDIR=
-LIBPATH=/usr/lib
-INCPATH=/usr/include
-DATAPATH=/usr/share/doc/libtommath/pdf
+LIBPATH=${PREFIX}/lib
+INCPATH=${PREFIX}/include
+DATAPATH=${DOCSDIR}/pdf
OBJECTS=bncore.o bn_mp_init.o bn_mp_clear.o bn_mp_exch.o bn_mp_grow.o bn_mp_shrink.o \
bn_mp_clamp.o bn_mp_zero.o bn_mp_set.o bn_mp_set_int.o bn_mp_init_size.o bn_mp_copy.o \
--- makefile.shared.orig 2010-07-23 16:27:20.000000000 +0200
+++ makefile.shared 2013-04-18 15:26:25.000000000 +0200
@@ -10,7 +10,7 @@
ifndef IGNORE_SPEED
#for speed
-CFLAGS += -O3 -funroll-loops
+CFLAGS += -funroll-loops
#for size
#CFLAGS += -Os
@@ -48,9 +48,9 @@
#INCPATH-The directory to install the header files for libtommath.
#DATAPATH-The directory to install the pdf docs.
DESTDIR=
-LIBPATH=/usr/lib
-INCPATH=/usr/include
-DATAPATH=/usr/share/doc/libtommath/pdf
+LIBPATH=${PREFIX}/lib
+INCPATH=${PREFIX}/include
+DATAPATH=${DOCSDIR}/pdf
OBJECTS=bncore.o bn_mp_init.o bn_mp_clear.o bn_mp_exch.o bn_mp_grow.o bn_mp_shrink.o \
bn_mp_clamp.o bn_mp_zero.o bn_mp_set.o bn_mp_set_int.o bn_mp_init_size.o bn_mp_copy.o \
@@ -93,7 +93,7 @@
test: $(LIBNAME) demo/demo.o
gcc $(CFLAGS) -c demo/demo.c -o demo/demo.o
- libtool --mode=link gcc -o test demo/demo.o $(LIBNAME_S)
+ libtool --mode=link gcc -o test demo/demo.o .libs/$(LIBNAME_S)
mtest: test
cd mtest ; gcc $(CFLAGS) mtest.c -o mtest