-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (30 loc) · 969 Bytes
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
# /*---------------------------*/
# /* -->> Grupo I <<-- */
# /* Thiago Haab */
# /* Henrique Vazatta */
# /*---------------------------*/
ETAPA = 5
DELIVERABLE_FILES = main.c ast.c ast.h lexical_value.c lexical_value.h symbol_table.c symbol_table.h common_types.h errors.h iloc_generator.c iloc_generator.h parser.y scanner.l ilocsim.py Makefile README.md
all: bison flex main ast lexical_value symbol_table iloc_generator
gcc main.o lex.yy.o parser.tab.o lexical_value.o ast.o symbol_table.o iloc_generator.o -o etapa$(ETAPA)
bison:
bison -d parser.y
gcc -c parser.tab.c
flex:
flex scanner.l
gcc -c lex.yy.c
main:
gcc -c main.c
lexical_value:
gcc -c lexical_value.c
ast:
gcc -c ast.c
symbol_table:
gcc -c symbol_table.c
iloc_generator:
gcc -c iloc_generator.c
deliverable:
make clean
tar --exclude='.*' -cvzf etapa$(ETAPA).tgz ${DELIVERABLE_FILES}
clean:
rm -rf *.o *.yy.* *.tab.* etapa$(ETAPA).* ./etapa$(ETAPA)