Ronald G. Minnich | 5d01ec0 | 2009-03-31 11:57:36 +0000 | [diff] [blame^] | 1 | CC=gcc |
| 2 | CFLAGS=-Wall -Werror -g |
| 3 | |
| 4 | LZMA_OBJ := lzma/LZMAEncoder.o lzma/LZInWindow.o |
| 5 | LZMA_OBJ += lzma/RangeCoderBit.o lzma/StreamUtils.o |
| 6 | LZMA_OBJ += lzma/OutBuffer.o lzma/Alloc.o |
| 7 | LZMA_OBJ += lzma/CRC.o |
| 8 | LZMA_OBJ += lzma/lzma-compress.o |
| 9 | |
| 10 | COMMON= common.o compress.o $(LZMA_OBJ) |
| 11 | |
| 12 | all: rom-mkstage rom-mkpayload |
| 13 | |
| 14 | rom-mkstage: rom-mkstage.o $(COMMON) |
| 15 | $(CXX) -g -o $@ rom-mkstage.o $(COMMON) |
| 16 | |
| 17 | rom-mkpayload: rom-mkpayload.o $(COMMON) |
| 18 | $(CXX) -o $@ rom-mkpayload.o $(COMMON) |
| 19 | |
| 20 | include lzma/Makefile |
| 21 | |
| 22 | %.o: %.c |
| 23 | $(CC) -Wall -Werror -g -c -o $@ $< |
| 24 | |
| 25 | clean: |
| 26 | @ rm -f rom-mkpayload.o rom-mkstage.o $(COMMON) |
| 27 | @ rm -f rom-mkpayload rom-mkstage |