summaryrefslogtreecommitdiff
path: root/payloads/bayou/util/pbuilder/Makefile
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-04-20 23:04:46 +0000
committerStefan Reinauer <stepan@openbios.org>2010-04-20 23:04:46 +0000
commit7b769126d0065e237eea2fcb0b8218781faf4d1c (patch)
tree1fea98917e80d44ec5aaf2b4f949cad044bbe748 /payloads/bayou/util/pbuilder/Makefile
parentbda29314c25aca190071988ec9adfb42f4ba5114 (diff)
bayou compile fixes
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5468 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/bayou/util/pbuilder/Makefile')
-rw-r--r--payloads/bayou/util/pbuilder/Makefile29
1 files changed, 15 insertions, 14 deletions
diff --git a/payloads/bayou/util/pbuilder/Makefile b/payloads/bayou/util/pbuilder/Makefile
index b317630077..bd26b0c658 100644
--- a/payloads/bayou/util/pbuilder/Makefile
+++ b/payloads/bayou/util/pbuilder/Makefile
@@ -17,10 +17,11 @@
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
-CC=gcc
PBUILDOBJS := config.o create.o show.o main.o
INCLUDES := -Iliblar/
-CFLAGS=-Wall -Werror -g
+HOSTCXX=g++
+HOSTCC=gcc
+HOSTCFLAGS=-Wall -Werror -g
all: pbuilder
@@ -29,39 +30,39 @@ LZMA_OBJ += lzma/StreamUtils.o lzma/OutBuffer.o lzma/Alloc.o lzma/CRC.o
LZMA_OBJ += lzma/lzma-compress.o
lzma/lzma-compress.o: lzma/minilzma.cc
- g++ -o $@ -c -DCOMPACT $<
+ $(HOSTCXX) -o $@ -c -DCOMPACT $<
lzma/%.o: lzma/C/7zip/Compress/LZMA/%.cpp
- g++ -o $@ -c $<
+ $(HOSTCXX) -o $@ -c $<
lzma/%.o: lzma/C/7zip/Compress/LZ/%.cpp
- g++ -o $@ -c $<
+ $(HOSTCXX) -o $@ -c $<
lzma/%.o: lzma/C/7zip/Compress/RangeCoder/%.cpp
- g++ -o $@ -c $<
+ $(HOSTCXX) -o $@ -c $<
lzma/%.o: lzma/C/7zip/Decompress/%.cpp
- g++ -o $@ -c $<
+ $(HOSTCXX) -o $@ -c $<
lzma/%.o: lzma/C/7zip/Common/%.cpp
- g++ -o $@ -c $<
+ $(HOSTCXX) -o $@ -c $<
lzma/%.o: lzma/C/Common/%.cpp
- g++ -o $@ -c $<
+ $(HOSTCXX) -o $@ -c $<
lzma/%.o: lzma/%.cc
- g++ -o $@ -c $<
+ $(HOSTCXX) -o $@ -c $<
pbuilder: $(PBUILDOBJS) $(LZMA_OBJ) liblar/liblar.a
- $(CXX) -o $@ $(PBUILDOBJS) $(LZMA_OBJ) -L ./liblar -llar -lexpat
+ $(HOSTCXX) -o $@ $(PBUILDOBJS) $(LZMA_OBJ) liblar/liblar.a -lexpat
liblar/liblar.a:
- make -C liblar
+ $(MAKE) -C liblar
%.o: %.c
- $(CC) -c $(CFLAGS) $(INCLUDES) -o $@ $<
+ $(HOSTCC) -c $(HOSTCFLAGS) $(INCLUDES) -o $@ $<
clean:
rm -f pbuilder *.o lzma/*.o
- make -C liblar clean
+ $(MAKE) -C liblar clean