summaryrefslogtreecommitdiff
path: root/Makefile
blob: fd3dfe96d0324ce1d71440949e7d35fae8bd83ba (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 -g
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)