mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
romtool by changing the Makefiles to be no longer recursive (once again, recursive make is to be considered harmful). Tried to (quickly) unify most of the Makefile code, but medium-term this is going to be worked on for Kconfig support anyways. Also fix a sign cast error in rom-mkpayload in case people want to compile this with -W -Werror Patch relative to coreboot-v2/util/romtool Signed-off-by: Stefan Reinauer <stepan@coresystems.de> and Acked-by: Stefan Reinauer <stepan@coresystems.de> in order to get the tree working decently asap git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4069 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
24 lines
631 B
Makefile
24 lines
631 B
Makefile
tobj ?= $(shell pwd)
|
|
tsrc ?= $(shell pwd)
|
|
|
|
TARGETS += $(tobj)/rom-mkstage $(tobj)/rom-mkpayload
|
|
|
|
tools: $(tobj)/rom-mkstage $(tobj)/rom-mkpayload
|
|
|
|
include $(tobj)/lzma/Makefile
|
|
|
|
COMMON = common.o compress.o $(LZMA_OBJ)
|
|
|
|
$(tobj)/rom-mkstage: $(tobj)/rom-mkstage.o $(patsubst %,$(tobj)/%,$(COMMON))
|
|
$(CXX) $(CFLAGS) -o $@ $^
|
|
|
|
$(tobj)/rom-mkpayload: $(tobj)/rom-mkpayload.o $(patsubst %,$(tobj)/%,$(COMMON))
|
|
$(CXX) $(CFLAGS) -o $@ $^
|
|
|
|
$(tobj)/%.o: %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
tools-clean:
|
|
rm -f $(tobj)/rom-mkpayload.o $(tobj)/rom-mkstage.o $(patsubst %,$(tobj)/%,$(COMMON))
|
|
rm -f $(tobj)/rom-mkpayload $(tobj)/rom-mkstage
|
|
|