ports/benchmarks/autobench/files/patch-Makefile
Clement Laforet da03fa1645 - Be nicer with CFLAGS
- Preserve autobench.conf by installing autobench.conf-dist
2005-01-16 18:56:48 +00:00

24 lines
720 B
Text

--- Makefile.orig Thu May 27 18:59:27 2004
+++ Makefile Sun Jan 16 19:44:14 2005
@@ -20,9 +20,9 @@
endif
# Compiler & flags
-CC=gcc
-CFLAGS=-O2 -Wall
-DEBUG_FLAGS=-Wall -g
+CC?=gcc
+CFLAGS+= -Wall
+DEBUG_FLAGS?=-Wall -g
#---------------------------------------------------------------------------
# Release related
@@ -55,7 +55,7 @@
perl -pi -e 's/my \$$MASTER_CONFIG =.*$$/my \$$MASTER_CONFIG = "$$ENV{AB_CFG}";/' autobench
cp crfile autobench autobenchd autobench_admin sesslog bench2graph $(BINDIR)
cp autobenchd.1 autobench_admin.1 crfile.1 autobench.1 sesslog.1 bench2graph.1 $(MANDIR)
- cp autobench.conf $(ETCDIR)
+ cp autobench.conf $(ETCDIR)/autobench.conf-dist
clean:
rm -f crfile sesslog