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