26 lines
393 B
Makefile
26 lines
393 B
Makefile
|
|
all: linux avr
|
|
|
|
linux:
|
|
@echo make linux
|
|
@make -f linux.Makefile linux
|
|
|
|
avr: lib/libssd1306.a
|
|
@echo make avr
|
|
@make -f avr.Makefile avr
|
|
|
|
lib/libssd1306.a:
|
|
@cd deps/ssd1306/src/; make -f Makefile.avr
|
|
@mkdir -p lib
|
|
@cp deps/ssd1306/bld/libssd1306.a lib/libssd1306.a
|
|
|
|
flash: avr
|
|
@make -f avr.Makefile flash
|
|
|
|
run: linux
|
|
@make -f linux.Makefile run
|
|
|
|
|
|
clean:
|
|
@rm -r build
|
|
@echo clean all
|