summaryrefslogtreecommitdiff
path: root/Makefile
blob: 79cc3c5fc6b58844a29a194fdb19997c96f33114 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
OBJS=gb.o test.o lodepng.o
CFLAGS=-W -Wall -pedantic -Werror -Wextra -std=c11 -O3
APP=./test

.PHONY=all clean test

all: $(APP)

gb.c: ops.yaml
	./gen.rb > gb.c

$(APP): $(OBJS)
	$(CC) -o $(APP) $(OBJS)

%.o: %.c gb.h
	$(CC) -c $(CFLAGS) $<

clean:
	$(RM) $(OBJS) $(APP)