Customizing CFLAGS in Makefile.config
- From: Marcus von Appen <mva@xxxxxxxxxxxx>
- To: emelfm2 <emelfm2@xxxxxxxxxxxxx>
- Date: Mon, 4 Jun 2007 12:51:40 +0200
Hi,
attached you'll find a small patch, which lets one override the CFLAGS
defined in Makefile.config. The patch was made against the 0.3.4 release.
Regards
Marcus
--- Makefile.config.orig Sun May 13 04:39:01 2007
+++ Makefile.config Mon Jun 4 12:46:40 2007
@@ -137,9 +137,9 @@
ifeq ($(DEBUG), 1)
#additional CFLAGS -g -O0 will always be added when in debug mode
#CFLAGS = -Wall -Wextra -Wno-unused -Winline
-CFLAGS = -Wall -Winline
+CFLAGS ?= -Wall -Winline
else
-CFLAGS = -O2 -Wall
+CFLAGS ?= -O2 -Wall
#CFLAGS = -O3 -Wall -march=athlon-tbird -mtune=athlon-tbird
#CFLAGS = -O3 -Wall -march=pentium -mtune=pentium4
endif
- Follow-Ups:
- Re: Customizing CFLAGS in Makefile.config
- From: tpgww
Other related posts:
- » Customizing CFLAGS in Makefile.config
- » Re: Customizing CFLAGS in Makefile.config
- » Re: Customizing CFLAGS in Makefile.config
- Re: Customizing CFLAGS in Makefile.config
- From: tpgww