summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)