-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (21 loc) · 1.17 KB
/
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
all: main
ast_construction.o: ast_construction.c type_ast.h
gcc -g -Wall -c ast_construction.c
ast_parcours.o: ast_parcours.c type_ast.h ast_construction.h table_symbole.h
gcc -g -Wall -c ast_parcours.c
essai_ast.o: essai_ast.c ast_construction.h ast_parcours.h type_ast.h
gcc -g -Wall -c essai_ast.c
main: analyse_syntaxique.o analyse_lexicale.o lecture_caracteres.o main.o ast_parcours.o ast_construction.o table_symbole.o
gcc -g -Wall -o main analyse_syntaxique.o analyse_lexicale.o lecture_caracteres.o main.o ast_parcours.o ast_construction.o table_symbole.o
analyse_syntaxique.o: analyse_syntaxique.c analyse_syntaxique.h analyse_lexicale.h lecture_caracteres.h type_ast.h ast_construction.h table_symbole.h
gcc -g -Wall -c analyse_syntaxique.c
analyse_lexicale.o: analyse_lexicale.c analyse_lexicale.h lecture_caracteres.h
gcc -g -Wall -c analyse_lexicale.c
lecture_caracteres.o: lecture_caracteres.h lecture_caracteres.c
gcc -g -Wall -c lecture_caracteres.c
main.o : analyse_syntaxique.h analyse_lexicale.h type_ast.h ast_parcours.h
gcc -g -Wall -c main.c
table_symbole.o : table_symbole.c table_symbole.h
gcc -g -Wall -c table_symbole.c
clean:
rm -f *.o main