-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
28 lines (20 loc) · 778 Bytes
/
Copy pathmakefile
File metadata and controls
28 lines (20 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CC = gcc
BI = bison -d -r all --verbose
FL = flex
OBJ = main.o epic_bison.tab.o lex.yy.o printer.o symbolTable.o graph/graph.o graph/block.o graph/cfg_creatttor.o graph/cfg_printer.o graph/list.o timer.o graph/liveliness.o hashset/hashset.o
HEADERS = epic_bison.tab.h printer.h symbolTable.h graph/cfg_creatttor.h graph/graph.h graph/block.h graph/cfg_printer.h graph/list.h timer.h graph/liveliness.h hashset/hashset.h
all: epic_bison.tab.h epic_parser clean
epic_parser: $(OBJ)
$(CC) -o $@ $(OBJ) -g -lfl
epic_bison.tab.c: epic_bison.y
$(BI) epic_bison.y
epic_bison.tab.h: epic_bison.y
$(BI) epic_bison.y
%.o: %.c $(HEADERS)
$(CC) -c $< -o $@
lex.yy.c: flex.l
$(FL) -l $<
lex.yy.o: lex.yy.c
$(CC) -c $< -o $@
clean:
rm -f $(OBJ) *.tab.c *.tab.h *.yy.c *.output