aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 9ffca330a4a8870fae8a47caab53c6e8103fe065 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
CC = gcc
CFLAGS += -Wall -Wextra -pedantic
BISONFLAGS += --color=auto -d --header=y.tab.h -o y.tab.c 

ibpc: lex.yy.c y.tab.c
	$(CC) $(CFLAGS) lex.yy.c y.tab.c -o ibpc

lex.yy.c: ibpc.l
	lex ibpc.l

y.tab.c: ibpc.y
	bison $(BISONFLAGS) ibpc.y