aboutsummaryrefslogtreecommitdiff
path: root/example/Makefile
blob: d9b0158c81c51d8c028e1cc0c718e268d16670cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CFLAGS = -Wall -Wextra -g -O2

all: exec

exec: bcode.o main.o
	$(CC) $(CFLAGS) $^ -o $@

bcode.o: bcode.c
	$(CC) $(CFLAGS) -c $^ -o $@

bcode.c: rules.py
	../bcgen rules.py

.PHONY: clean
clean:
	rm -rf *.o exec