[Pkg-wmaker-commits] [wmbubble] 08/207: Allow CFLAGS to be overridden (debian)

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:17:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbubble.

commit ba14f218c144e81ac4264b5cdf9db07a94c62662
Author: Robert Jacobs <rnjacobs at mit.edu>
Date:   Mon Aug 29 19:22:50 2011 -0700

    Allow CFLAGS to be overridden (debian)
---
 Makefile | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 7c35349..ee9ad52 100644
--- a/Makefile
+++ b/Makefile
@@ -11,11 +11,13 @@ PREFIX = /usr/local
 # no user serviceable parts below
 EXTRA += $(WMAN)
 # optimization cflags
-CFLAGS = -O3 -ansi -Wall `gtk-config --cflags` ${EXTRA}
+USER_CFLAGS = -O3 -ansi -Wall
 # profiling cflags
-# CFLAGS = -ansi -Wall -pg -O3 `gtk-config --cflags` ${EXTRA} -DPRO
+# USER_CFLAGS = -ansi -Wall -pg -O3 -DPRO
 # test coverage cflags
-# CFLAGS = -fprofile-arcs -ftest-coverage -Wall -ansi -g `gtk-config --cflags` ${EXTRA} -DPRO
+# USER_CFLAGS = -fprofile-arcs -ftest-coverage -Wall -ansi -g -DPRO
+BUILD_CFLAGS = `gtk-config --cflags`
+CFLAGS = $(USER_CFLAGS) $(BUILD_CFLAGS) ${EXTRA}
 
 BINARY=bubblemon
 SHELL=sh
@@ -55,13 +57,13 @@ ifeq ($(OS), SunOS)
     # if not, fix up CC and the CFLAGS for the Sun compiler
     ifeq ($(COMPILER), suncc)
 	CC=cc
-	CFLAGS=-v -xO3
+	USER_CFLAGS=-v -xO3
     endif
 
     ifeq ($(COMPILER), gcc)
-	CFLAGS=-O3 -Wall
+	USER_CFLAGS=-O3 -Wall
     endif
-    CFLAGS +=`gtk-config --cflags` ${EXTRA}
+    CFLAGS = $(USER_CFLAGS) $(BUILD_CFLAGS) ${EXTRA}
     OBJS += sys_sunos.o
     LIBS = `gtk-config --libs` -lkstat -lm
     INSTALL = -m 755

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git



More information about the Pkg-wmaker-commits mailing list