mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
8dbb308e81
PR: ports/73543 Submitted by: Olivier Beyssac <ob-ports@r14.freenix.org>
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
--- Makefile.orig Thu Jan 13 22:04:47 2000
|
|
+++ Makefile Thu Nov 4 22:36:55 2004
|
|
@@ -3,16 +3,17 @@
|
|
# Date created: 13 January 2000
|
|
# Whom: Bill Ross <bross@nas.nasa.gov> <ross@cgl.ucsf.edu>
|
|
#
|
|
-CC= cc
|
|
+CC?= cc
|
|
+CFLAGS?= -O -pipe
|
|
|
|
all: libavltree.a
|
|
|
|
libavltree.a: avltree.o
|
|
$(AR) r libavltree.a avltree.o
|
|
- strip libavltree.a
|
|
+ ranlib libavltree.a
|
|
|
|
avltree.o: avltree.c avltree.h
|
|
- $(CC) -c avltree.c
|
|
+ $(CC) $(CFLAGS) -c avltree.c
|
|
|
|
install: libavltree.a
|
|
install -c libavltree.a $(PREFIX)/lib
|
|
@@ -25,16 +26,16 @@
|
|
extras: test bench1 bench2
|
|
|
|
test: test.o libavltree.a
|
|
- $(CC) -o test test.o libavltree.a
|
|
+ $(CC) $(CFLAGS) -o test test.o libavltree.a
|
|
|
|
bench1: avl_bench.o libavltree.a
|
|
- $(CC) -o bench1 avl_bench.o libavltree.a
|
|
+ $(CC) $(CFLAGS) -o bench1 avl_bench.o libavltree.a
|
|
|
|
bench2: avl_bench.o db_avl.o
|
|
- $(CC) -o bench2 avl_bench.o db_avl.o
|
|
+ $(CC) $(CFLAGS) -o bench2 avl_bench.o db_avl.o
|
|
|
|
bench3: avl_bench.o bp_avl.o
|
|
- $(CC) -o bench3 avl_bench.o bp_avl.o bplus.a
|
|
+ $(CC) $(CFLAGS) -o bench3 avl_bench.o bp_avl.o bplus.a
|
|
|
|
#
|
|
##################
|