2009-04-05 00:18:26 +02:00
|
|
|
tobj ?= $(shell pwd)
|
|
|
|
tsrc ?= $(shell pwd)
|
2009-04-04 20:24:21 +02:00
|
|
|
|
2009-04-05 00:18:26 +02:00
|
|
|
TARGETS += $(tobj)/rom-mkstage $(tobj)/rom-mkpayload
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-05 00:18:26 +02:00
|
|
|
tools: $(tobj)/rom-mkstage $(tobj)/rom-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-05 00:18:26 +02:00
|
|
|
$(tobj)/rom-mkstage: $(tobj)/rom-mkstage.o $(patsubst %,$(tobj)/%,$(COMMON))
|
|
|
|
$(CXX) $(CFLAGS) -o $@ $^
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-05 00:18:26 +02:00
|
|
|
$(tobj)/rom-mkpayload: $(tobj)/rom-mkpayload.o $(patsubst %,$(tobj)/%,$(COMMON))
|
|
|
|
$(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:
|
|
|
|
rm -f $(tobj)/rom-mkpayload.o $(tobj)/rom-mkstage.o $(patsubst %,$(tobj)/%,$(COMMON))
|
|
|
|
rm -f $(tobj)/rom-mkpayload $(tobj)/rom-mkstage
|
2009-04-04 20:24:21 +02:00
|
|
|
|