-CFLAGS=-Wall
+CFLAGS=-Wall -O3
all: firmware
-firmware: firmware.o rsb-crc.o
+firmware: firmware.o rsb-crc.o rsb-lz.o extract.o
-firmware.o: firmware.c rsb-crc.h
+firmware.o: firmware.c rsb-crc.h extract.h
rsb-crc.o: rsb-crc.c rsb-crc.h
+rsb-lz.o: rsb-lz.c rsb-lz.h
+
+extract.o: extract.c extract.h rsb-lz.h
+
clean:
- rm -f firmware firmware.o rsb-crc.o
+ rm -f firmware firmware.o rsb-crc.o rsb-lz.o extract.o
.PHONY: all clean