Respect CC and CFLAGS

This commit is contained in:
Kris Kennaway 2002-04-06 07:46:55 +00:00
parent 486cf10a75
commit add5e05f94
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57361

View 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