diff options
Diffstat (limited to 'util/romtool/tools/Makefile')
-rw-r--r-- | util/romtool/tools/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/util/romtool/tools/Makefile b/util/romtool/tools/Makefile new file mode 100644 index 0000000000..1d1912a4f7 --- /dev/null +++ b/util/romtool/tools/Makefile @@ -0,0 +1,27 @@ +CC=gcc +CFLAGS=-Wall -Werror -g + +LZMA_OBJ := lzma/LZMAEncoder.o lzma/LZInWindow.o +LZMA_OBJ += lzma/RangeCoderBit.o lzma/StreamUtils.o +LZMA_OBJ += lzma/OutBuffer.o lzma/Alloc.o +LZMA_OBJ += lzma/CRC.o +LZMA_OBJ += lzma/lzma-compress.o + +COMMON= common.o compress.o $(LZMA_OBJ) + +all: rom-mkstage rom-mkpayload + +rom-mkstage: rom-mkstage.o $(COMMON) + $(CXX) -g -o $@ rom-mkstage.o $(COMMON) + +rom-mkpayload: rom-mkpayload.o $(COMMON) + $(CXX) -o $@ rom-mkpayload.o $(COMMON) + +include lzma/Makefile + +%.o: %.c + $(CC) -Wall -Werror -g -c -o $@ $< + +clean: + @ rm -f rom-mkpayload.o rom-mkstage.o $(COMMON) + @ rm -f rom-mkpayload rom-mkstage |