summaryrefslogtreecommitdiff
path: root/Makefile
blob: 0b720c0c98310592bec2880403e2360964fbed8a (plain)
1
2
3
4
5
6
7
8
9
10
ALL_CFLAGS=$(CFLAGS) -Wall -Wextra -Wshadow -Wconversion -Wpedantic -pedantic -std=gnu11 \
	-Wno-unused-function -Wno-fixed-enum-extension -Wimplicit-fallthrough
LIBS=-lSDL2 -lGL -ldl -lm
DEBUG_CFLAGS=$(ALL_CFLAGS) -DDEBUG -O0 -g
ted: *.[ch] text.o
	$(CC) main.c text.o -o $@ $(DEBUG_CFLAGS) $(LIBS)
text.o: text.c text.h base.h lib/stb_truetype.h
	$(CC) text.c -c -o $@ $(DEBUG_CFLAGS)
clean:
	rm -f ted *.o