X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/blobdiff_plain/e8563c43527e7f0fcb338069f39d74d252340d28..c346d702533dcb7ed5f4554409cda7cf6867e6a6:/Makefile diff --git a/Makefile b/Makefile index 15de0a8..48f22a4 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,13 @@ -CFLAGS=-Wall -O3 +all: firmware -all: firmware +firmware: src/firmware + ln -sf $^ $@ -firmware: firmware.o rsb-crc.o rsb-lz.o filesystem.o - -firmware.o: firmware.c rsb-crc.h filesystem.h - -rsb-crc.o: rsb-crc.c rsb-crc.h - -rsb-lz.o: rsb-lz.c rsb-lz.h - -filesystem.o: filesystem.c filesystem.h rsb-lz.h +src/firmware: + $(MAKE) -C src firmware clean: - rm -f firmware firmware.o rsb-crc.o rsb-lz.o filesystem.o + rm -f firmware + $(MAKE) -C src clean -.PHONY: all clean +.PHONY: all clean src/firmware