aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 7e99a412a851225f0867bc05b4e30d16bce0fef9 (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 widget.h ui.h