diff options
author | Mattia Dongili <malattia@linux.it> | 2006-03-27 21:47:26 +0200 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-03-31 18:27:25 +0200 |
commit | f7c6789238ed300ea8ffe24b9b863daff80dfb34 (patch) | |
tree | d9e4dbe82a2d66aad41eb138994bdad6a14619e8 | |
parent | 8915e9b4e6267dba51220b29869f48e8ddd7700f (diff) | |
download | cpufrequtils-f7c6789238ed300ea8ffe24b9b863daff80dfb34.tar.gz |
[PATCH] cpufrequtils-001 released
The current Makefile doesn't allow an user to define his own CFLAGS
without breaking the build completely. The attached patch addresses it
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -125,16 +125,16 @@ LIB_HEADERS = lib/cpufreq.h lib/interfaces.h LIB_OBJS = lib/cpufreq.c lib/proc.c lib/sysfs.c LIB_PARTS = lib/cpufreq.lo -CFLAGS := -pipe +CFLAGDEF += -pipe ifeq ($(strip $(PROC)),true) LIB_PARTS += lib/proc.lo - CFLAGS += -DINTERFACE_PROC + CFLAGDEF += -DINTERFACE_PROC endif ifeq ($(strip $(SYSFS)),true) LIB_PARTS += lib/sysfs.lo - CFLAGS += -DINTERFACE_SYSFS + CFLAGDEF += -DINTERFACE_SYSFS LDFLAGS = -lsysfs endif @@ -158,10 +158,10 @@ endif # if DEBUG is enabled, then we do not strip or optimize ifeq ($(strip $(DEBUG)),true) - CFLAGS += -O1 -g -DDEBUG + CFLAGDEF += -O1 -g -DDEBUG STRIPCMD = /bin/true -Since_we_are_debugging else - CFLAGS += $(OPTIMIZATION) -fomit-frame-pointer + CFLAGDEF += $(OPTIMIZATION) -fomit-frame-pointer STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment endif @@ -177,7 +177,7 @@ ccdv: @$(HOSTCC) -O1 build/ccdv.c -o build/ccdv %.lo: $(LIB_OBJS) $(LIB_HEADERS) - $(QUIET) $(LIBTOOL) $(LIBTOOL_OPT) --mode=compile $(CC) $(CFLAGS) -o $@ -c $*.c + $(QUIET) $(LIBTOOL) $(LIBTOOL_OPT) --mode=compile $(CC) $(CFLAGDEF) $(CFLAGS) -o $@ -c $*.c libcpufreq.la: $(LIB_OBJS) $(LIB_HEADERS) $(LIB_PARTS) Makefile @if [ $(strip $(SYSFS)) != true -a $(strip $(PROC)) != true ]; then \ |