aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorClaudio Fontana <claudio.fontana@huawei.com>2013-09-24 15:23:27 +0200
committerPeter Maydell <peter.maydell@linaro.org>2014-04-25 13:07:15 +0100
commitf39cb1b246bcf2e843af69e89d5c6b8acff61ec4 (patch)
treefd3771debe2356ce5ee85bdedd70437d98200965 /Makefile
parentee7a43e9f0830dc567eddb7d9fe1bb748e03776f (diff)
configure: add -h,--help text, also add CPPFLAGS
Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 711a908..08dd3ad 100644
--- a/Makefile
+++ b/Makefile
@@ -25,10 +25,10 @@ OBJS=$(SRCS:.c=.o)
all: $(PROG) $(BINS)
$(PROG): $(OBJS)
- $(CC) $(CFLAGS) -o $@ $^
+ $(CC) -o $@ $^
%.o: %.c $(HDRS)
- $(CC) $(CFLAGS) -o $@ -c $<
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
%_$(ARCH).bin: %_$(ARCH).elf
$(OBJCOPY) -O binary $< $@