e6cc67b07a
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4067 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
25 lines
593 B
Makefile
25 lines
593 B
Makefile
obj ?= $(shell pwd)
|
|
|
|
CC=gcc
|
|
CFLAGS=-Wall -W -Werror -g
|
|
|
|
all: rom-mkstage rom-mkpayload
|
|
|
|
include lzma/Makefile
|
|
|
|
COMMON= common.o compress.o $(LZMA_OBJ)
|
|
|
|
|
|
$(obj)/rom-mkstage: $(obj)/rom-mkstage.o $(patsubst %,$(obj)/%,$(COMMON))
|
|
$(CXX) -g -o $@ $(obj)/rom-mkstage.o $(patsubst %,$(obj)/%,$(COMMON))
|
|
|
|
$(obj)/rom-mkpayload: $(obj)/rom-mkpayload.o $(patsubst %,$(obj)/%,$(COMMON))
|
|
$(CXX) -o $@ $(obj)/rom-mkpayload.o $(patsubst %,$(obj)/%,$(COMMON))
|
|
|
|
$(obj)/%.o: %.c
|
|
$(CC) -Wall -Werror -g -c -o $@ $<
|
|
|
|
clean:
|
|
@ rm -f rom-mkpayload.o rom-mkstage.o $(COMMON)
|
|
@ rm -f rom-mkpayload rom-mkstage
|
|
|