blob: 42064a0cf7c9a964a5cbc55bec748de587746d75 (
plain)
1
2
3
4
5
6
7
8
|
ALL_CFLAGS=$(CFLAGS) -Wall -Wextra -Wshadow -Wconversion -Wpedantic -pedantic -std=gnu11 \
-Wno-unused-function -Wno-fixed-enum-extension -Wimplicit-fallthrough
LIBS=-lSDL2 -lGL -ldl
DEBUG_CFLAGS=$(ALL_CFLAGS) $(LIBS) -DDEBUG -O0 -g
ted: *.[ch] text.o
$(CC) main.c text.o -o $@ $(DEBUG_CFLAGS)
%.o: %.c
$(CC) $< -c -o $@ $(DEBUG_CFLAGS)
|