a b/Makefile
1
all: c99
2
3
c99: lex.yy.c y.tab.c
4
    gcc -o $@ $^
5
6
lex.yy.c: c99.l
7
    flex $^
8
9
y.tab.c: c99.y
10
    yacc -d $^
11
12
test: c99
13
    ./c99 < test.c
14
15
test2: c99
16
    ./c99 < test2.c
17
18
test3: c99
19
    ./c99 < test3.c
20