diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-06-12 07:49:08 +1000 |
---|---|---|
committer | Josh Boyer <jwboyer@gmail.com> | 2008-06-18 08:58:52 -0400 |
commit | a8523b2d61e2eb750447c57bff1f5fcae33ef8fc (patch) | |
tree | 7d7bef5378d7bc5673c12f47db0ab0ba5e3b957a /ubi-utils | |
parent | b1da3d54f1dd2e1dc0316480cb0b6376d37e1cb5 (diff) |
respect CFLAGS/CPPFLAGS from build environment
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
Diffstat (limited to 'ubi-utils')
-rw-r--r-- | ubi-utils/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ubi-utils/Makefile b/ubi-utils/Makefile index 0394eee..3e6203f 100644 --- a/ubi-utils/Makefile +++ b/ubi-utils/Makefile @@ -2,7 +2,6 @@ # Makefile for ubi-utils # -OPTFLAGS := -O2 -g -Wall KERNELHDR := ../include DESTDIR := /usr/local SBINDIR=/usr/sbin @@ -10,8 +9,10 @@ MANDIR=/usr/share/man INCLUDEDIR=/usr/include CC := $(CROSS)gcc -CFLAGS := -I./inc -I./src -I$(KERNELHDR) $(OPTFLAGS) -Werror \ - -Wwrite-strings -W -std=gnu99 -DPACKAGE_VERSION=\"1.0\" +CFLAGS ?= -O2 -g -Werror +CFLAGS += -Wall -Wwrite-strings -W +CPPFLAGS += -I./inc -I./src -I$(KERNELHDR) \ + -std=gnu99 -DPACKAGE_VERSION=\"1.0\" PERLPROGS = mkpfi ubicrc32.pl @@ -26,7 +27,7 @@ vpath %.c ./src $(CC) $(LDFLAGS) -g -o $@ $^ %.o: %.c - $(CC) $(CFLAGS) -g -c -o $@ $< -g -Wp,-MD,.$(shell basename $<).dep + $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< -g -Wp,-MD,.$(shell basename $<).dep all: $(TARGETS) make -C new-utils |