2009-04-04 20:24:21 +02:00
|
|
|
obj ?= $(shell pwd)
|
|
|
|
|
2009-03-31 13:57:36 +02:00
|
|
|
CC=gcc
|
2009-04-04 20:24:21 +02:00
|
|
|
CFLAGS=-Wall -W -Werror -g
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-04 20:24:21 +02:00
|
|
|
all: rom-mkstage rom-mkpayload
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-04 20:24:21 +02:00
|
|
|
include lzma/Makefile
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-04 20:24:21 +02:00
|
|
|
COMMON= common.o compress.o $(LZMA_OBJ)
|
2009-03-31 13:57:36 +02:00
|
|
|
|
|
|
|
|
2009-04-04 20:24:21 +02:00
|
|
|
$(obj)/rom-mkstage: $(obj)/rom-mkstage.o $(patsubst %,$(obj)/%,$(COMMON))
|
|
|
|
$(CXX) -g -o $@ $(obj)/rom-mkstage.o $(patsubst %,$(obj)/%,$(COMMON))
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-04 20:24:21 +02:00
|
|
|
$(obj)/rom-mkpayload: $(obj)/rom-mkpayload.o $(patsubst %,$(obj)/%,$(COMMON))
|
|
|
|
$(CXX) -o $@ $(obj)/rom-mkpayload.o $(patsubst %,$(obj)/%,$(COMMON))
|
2009-03-31 13:57:36 +02:00
|
|
|
|
2009-04-04 20:24:21 +02:00
|
|
|
$(obj)/%.o: %.c
|
2009-03-31 13:57:36 +02:00
|
|
|
$(CC) -Wall -Werror -g -c -o $@ $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@ rm -f rom-mkpayload.o rom-mkstage.o $(COMMON)
|
|
|
|
@ rm -f rom-mkpayload rom-mkstage
|
2009-04-04 20:24:21 +02:00
|
|
|
|