summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoshua Liu <joshua.liu@sourceobby.com>2025-06-24 17:41:59 -0400
committerJoshua Liu <joshua.liu@sourceobby.com>2025-06-24 17:41:59 -0400
commitba41680682bda8ef1014d84479aa5f1d09ea2c3d (patch)
tree7617ea7ab56a805c234af8e43f86d7e870ba88b7 /Makefile
parentf8854643de2cd7b0d52d993899651a00eab7604f (diff)
feat: created Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..352fb13
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+CCFLAGS=-O2 -Wall -c
+DEBUGFLAGS=-g -Werror
+CC=gcc
+LDLIBS=-lusb
+BACKEND="streamdeck.c"
+UTIL="functions.c util.c devdetails.c"
+OBJ="streamdeck.o functions.o util.o devdetails.o"
+.PHONY="all"
+
+all: driver
+
+driver: $(OBJ)
+ $(CC) -o streamdeck $(OBJ)
+
+test: driver
+ $(CC) -o test test.c $(OBJ)
+
+clean:
+ rm $(OBJ)
+
+%.o: %.c
+ $(CC) $(CCFLAGS) $<
+