From a08072d35cf47d81b8cc434235ea5289242884be Mon Sep 17 00:00:00 2001
From: Christian Colglazier <christian@cacolglazier.com>
Date: Tue, 29 Sep 2020 20:26:14 -0400
Subject: [PATCH] Wildcard for makefile

---
 Makefile | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile
index 78b51f2..7a649e8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,7 @@
 TARGET = cascade
 
-CPP_SOURCES = src/main.cpp \
-              src/util.cpp \
-              src/menu.cpp \
-              src/droplets/droplet.cpp \
-              src/droplets/noise_droplet.cpp \
-              src/droplets/vco_droplet.cpp \
-              src/graphics/sprite.cpp \
-              src/graphics/wave.cpp
+SRC_DIR := ./src
+CPP_SOURCES := $(wildcard $(SRC_DIR)/*.cpp $(SRC_DIR)/*/*.cpp)
 
 LIBDAISY_DIR = ./lib/libDaisy
 DAISYSP_DIR = ./lib/daisySP