Browse Source

SPIDriver Makefile

James Bowman 6 years ago
parent
commit
1d0764d3ba
1 changed files with 19 additions and 0 deletions
  1. 19 0
      pc/Makefile

+ 19 - 0
pc/Makefile

@@ -0,0 +1,19 @@
+D=$(HOME)/Arduino/libraries/Gameduino2
+
+all: $(foreach s, \
+  helloworld fizz blobs simon jpeg \
+  logo walk tiled mono slotgag reflection \
+  sketch tilt noisy song \
+  viewer radarchart \
+  cobra jnr kenney sprites widgets \
+  nightstrike chess frogger \
+  video1 video2 cube cube2 \
+  , build/$(s))
+
+clean:
+	rm -rf build/*
+
+build/%: examples/%.ino GD2.cpp GD2.h transports/*
+	g++ -g -o $@ -g  -D TEENSYDUINO=1 -DARDUINO_ARCH_STM32L4=1 -DSPIDRIVER=1 \
+          -I pc/ -I converted-assets/ -I $D -x c++ $< pc/main.cpp pc/spidriver.cpp GD2.cpp
+