aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 3b04cdafb781dcee7dcc9e2e57211897f40e209d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CFLAGS = -std=c99 -Wall -Wextra -pedantic -Wno-deprecated-declarations
LDFLAGS = -lSDL2 -lSDL2_ttf

SRC = main.c microui.c renderer.c widget.c ui.c
OBJ = ${SRC:.c=.o}

all: volute

clean:
	rm -f volute *.o

volute: ${OBJ}
	${CC} -o $@ $^ ${LDFLAGS}

%.o: %.c
	${CC} -c ${CFLAGS} $<

${OBJ}: microui.h renderer.h atlas.inl widget.h ui.h