aboutsummaryrefslogtreecommitdiff
path: root/config.def.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.mk')
-rw-r--r--config.def.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/config.def.mk b/config.def.mk
new file mode 100644
index 0000000..f2821ab
--- /dev/null
+++ b/config.def.mk
@@ -0,0 +1,22 @@
+CC=cc
+PLATFORM=gl
+
+OUT=demonchime
+
+DBFLAGS=-g -ggdb -rdynamic -DTEENSY_DEBUG
+
+INCS=-Iteensy -Iteensy/platform/${PLATFORM}
+CFLAGS=${INCS} -Wall -Wextra -std=c99 -D_XOPEN_SOURCE=700 -O2
+LDFLAGS=-lm
+
+ifeq (${CONFIG},debug)
+ CFLAGS+=${DBFLAGS}
+endif
+
+ifeq (${PLATFORM},gl)
+ LDFLAGS+=-lglfw
+endif
+
+ifeq (${PLATFORM},x11)
+ LDFLAGS+=-lX11
+endif