Respect CC and CFLAGS
This commit is contained in:
parent
486cf10a75
commit
add5e05f94
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57361
1 changed files with 29 additions and 0 deletions
29
benchmarks/dbench/files/patch-ac
Normal file
29
benchmarks/dbench/files/patch-ac
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
--- Makefile.orig Sun Sep 9 21:21:01 2001
|
||||||
|
+++ Makefile Fri Apr 5 23:44:49 2002
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
VERSION = 1.2.01
|
||||||
|
|
||||||
|
-CC = gcc
|
||||||
|
-CFLAGS = -O2 -Wall
|
||||||
|
+CC ?= gcc
|
||||||
|
+CFLAGS ?= -O2 -Wall
|
||||||
|
CPPFLAGS = "-DVERSION=\"$(VERSION)\""
|
||||||
|
|
||||||
|
DB_OBJS = fileio.o util.o dbench.o child.o
|
||||||
|
@@ -11,13 +11,13 @@
|
||||||
|
all: dbench tbench tbench_srv
|
||||||
|
|
||||||
|
dbench: $(DB_OBJS)
|
||||||
|
- $(CC) -o $@ $(DB_OBJS)
|
||||||
|
+ $(CC) $(CFLAGS)-o $@ $(DB_OBJS)
|
||||||
|
|
||||||
|
tbench: $(TB_OBJS)
|
||||||
|
- $(CC) -o $@ $(TB_OBJS)
|
||||||
|
+ $(CC) $(CFLAGS) -o $@ $(TB_OBJS)
|
||||||
|
|
||||||
|
tbench_srv: $(SRV_OBJS)
|
||||||
|
- $(CC) -o $@ $(SRV_OBJS)
|
||||||
|
+ $(CC) $(CFLAGS) -o $@ $(SRV_OBJS)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *.o *~ dbench tbench tbench_srv
|
Loading…
Reference in a new issue