summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-11-20 16:58:59 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-11-20 16:58:59 -0500
commitc3fd9dfa23969c842991da4cd852330288889463 (patch)
tree1a2e390ae57109febea9a5853ef9f04559d1f820 /Makefile
parentc376f6f53f737d6220206baa323c0bc62d48a9f0 (diff)
started text rendering
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ad7b1d1..42064a0 100644
--- a/Makefile
+++ b/Makefile
@@ -2,5 +2,7 @@ ALL_CFLAGS=$(CFLAGS) -Wall -Wextra -Wshadow -Wconversion -Wpedantic -pedantic -s
-Wno-unused-function -Wno-fixed-enum-extension -Wimplicit-fallthrough
LIBS=-lSDL2 -lGL -ldl
DEBUG_CFLAGS=$(ALL_CFLAGS) $(LIBS) -DDEBUG -O0 -g
-ted: *.[ch]
- $(CC) main.c -o $@ $(DEBUG_CFLAGS)
+ted: *.[ch] text.o
+ $(CC) main.c text.o -o $@ $(DEBUG_CFLAGS)
+%.o: %.c
+ $(CC) $< -c -o $@ $(DEBUG_CFLAGS)