9dd27bc03a
Kconfig) Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4384 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
26 lines
672 B
Makefile
26 lines
672 B
Makefile
tobj ?= $(shell pwd)
|
|
tsrc ?= $(shell pwd)
|
|
|
|
CFLAGS=-g -Wall
|
|
|
|
TARGETS += $(tobj)/cbfs-mkstage $(tobj)/cbfs-mkpayload
|
|
|
|
tools: $(tobj)/cbfs-mkstage $(tobj)/cbfs-mkpayload
|
|
|
|
include $(tsrc)/lzma/Makefile
|
|
|
|
COMMON = common.o compress.o $(LZMA_OBJ)
|
|
|
|
$(tobj)/cbfs-mkstage: $(tobj)/cbfs-mkstage.o $(patsubst %,$(tobj)/%,$(COMMON))
|
|
$(HOSTCXX) $(CFLAGS) -o $@ $^
|
|
|
|
$(tobj)/cbfs-mkpayload: $(tobj)/cbfs-mkpayload.o $(patsubst %,$(tobj)/%,$(COMMON))
|
|
$(HOSTCXX) $(CFLAGS) -o $@ $^
|
|
|
|
$(tobj)/%.o: %.c
|
|
$(HOSTCC) $(CFLAGS) -c -o $@ $<
|
|
|
|
tools-clean:
|
|
rm -f $(tobj)/cbfs-mkpayload.o $(tobj)/cbfs-mkstage.o $(patsubst %,$(tobj)/%,$(COMMON))
|
|
rm -f $(tobj)/cbfs-mkpayload $(tobj)/cbfs-mkstage
|
|
|