diff options
| author | iamcheeseman <[email protected]> | 2026-05-22 11:02:36 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-22 11:02:36 -0400 |
| commit | 0d07ba17500b6c44d17b6465c303e46175507557 (patch) | |
| tree | c1c4e40b5c10c7b0f316f07849bbbc0ba0eb3bf9 /config.def.mk | |
| parent | e375289782c924c0c382a752498fbd348ea7f918 (diff) | |
switch to a makefile
Diffstat (limited to 'config.def.mk')
| -rw-r--r-- | config.def.mk | 22 |
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 |
