2009-04-05 00:18:26 +02:00
|
|
|
tobj ?= $(shell pwd)
|
|
|
|
tsrc ?= $(shell pwd)
|
2009-04-04 20:24:21 +02:00
|
|
|
|
2009-04-14 21:48:32 +02:00
|
|
|
TARGETS += $(tobj)/cbfs-mkstage $(tobj)/cbfs-mkpayload
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-14 21:48:32 +02:00
|
|
|
tools: $(tobj)/cbfs-mkstage $(tobj)/cbfs-mkpayload
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-05 00:55:49 +02:00
|
|
|
include $(tsrc)/lzma/Makefile
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-05 00:18:26 +02:00
|
|
|
COMMON = common.o compress.o $(LZMA_OBJ)
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-14 21:48:32 +02:00
|
|
|
$(tobj)/cbfs-mkstage: $(tobj)/cbfs-mkstage.o $(patsubst %,$(tobj)/%,$(COMMON))
|
2009-04-05 00:18:26 +02:00
|
|
|
$(CXX) $(CFLAGS) -o $@ $^
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-14 21:48:32 +02:00
|
|
|
$(tobj)/cbfs-mkpayload: $(tobj)/cbfs-mkpayload.o $(patsubst %,$(tobj)/%,$(COMMON))
|
2009-04-05 00:18:26 +02:00
|
|
|
$(CXX) $(CFLAGS) -o $@ $^
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-05 00:18:26 +02:00
|
|
|
$(tobj)/%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-05 00:18:26 +02:00
|
|
|
tools-clean:
|
2009-04-14 21:48:32 +02:00
|
|
|
rm -f $(tobj)/cbfs-mkpayload.o $(tobj)/cbfs-mkstage.o $(patsubst %,$(tobj)/%,$(COMMON))
|
|
|
|
rm -f $(tobj)/cbfs-mkpayload $(tobj)/cbfs-mkstage
|
2009-04-04 20:24:21 +02:00
|
|
|
|