aboutsummaryrefslogtreecommitdiff
path: root/util/cbfstool/Makefile
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2013-03-28 16:51:45 -0700
committerRonald G. Minnich <rminnich@gmail.com>2013-04-03 02:35:28 +0200
commitaa3f7ba36ebe3a933aa664f826382f60b31e86f1 (patch)
treed5db7081e310d418322f1ecc519439c488a9f4fd /util/cbfstool/Makefile
parent60a4a73fcd7babd4819853542a5566293a097ed4 (diff)
cbfstool: Replace C++ code with C code
cbfstool was using a C++ wrapper around the C written LZMA functions. And a C wrapper around those C++ functions. Drop the mess and rewrite the functions to be all C. Change-Id: Ieb6645a42f19efcc857be323ed8bdfcd9f48ee7c Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/3010 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util/cbfstool/Makefile')
-rw-r--r--util/cbfstool/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/util/cbfstool/Makefile b/util/cbfstool/Makefile
index a51e6de590..a0de08d2f7 100644
--- a/util/cbfstool/Makefile
+++ b/util/cbfstool/Makefile
@@ -1,6 +1,5 @@
obj ?= $(shell pwd)
-HOSTCXX ?= g++
HOSTCC ?= gcc
CFLAGS ?= -g -Wall -Werror
CFLAGS += -D_7ZIP_ST
@@ -20,9 +19,6 @@ all: dep $(BINARY)
$(obj)/%.o: %.c
$(HOSTCC) $(CFLAGS) -c -o $@ $<
-$(obj)/%.o: %.cc
- $(HOSTCXX) $(CFLAGS) -c -o $@ $<
-
clean:
rm -f $(COMMON) $(BINARY)
@@ -30,11 +26,11 @@ tags:
ctags *.[ch]
$(obj)/cbfstool:$(COMMON)
- $(HOSTCXX) $(CFLAGS) -o $@ $^
+ $(HOSTCC) $(CFLAGS) -o $@ $^
dep:
@$(HOSTCC) $(CFLAGS) -MM *.c > .dependencies
- @$(HOSTCC) $(CFLAGS) -MM lzma/*.cc >> .dependencies
+ @$(HOSTCC) $(CFLAGS) -MM lzma/*.c >> .dependencies
@$(HOSTCC) $(CFLAGS) -MM lzma/C/*.c >> .dependencies
-include .dependencies