forked from meakitfed/ProjetMort
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 739 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (26 loc) · 739 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
29
30
31
32
33
34
35
36
OBJ=tp.o tp_l.o tp_y.o verif.o code.o
CC=gcc
CFLAGS=-Wall -ansi -I./ -g
LDFLAGS= -g -ll
tp : $(OBJ)
$(CC) -o tp $(OBJ) $(LDFLAGS)
tp.c :
echo ''
tp.o: tp.c tp_y.h tp.h
$(CC) $(CFLAGS) -c tp.c
verif.o: verif.c tp_y.h tp.h
$(CC) $(CFLAGS) -c verif.c
code.o: code.c tp_y.h tp.h
$(CC) $(CFLAGS) -c code.c
tp_l.o: tp_l.c tp_y.h
$(CC) $(CFLAGS) -Wno-unused-function -Wno-implicit-function-declaration -c tp_l.c
tp_l.c : tp.l tp_y.h tp.h
flex --yylineno -otp_l.c tp.l
tp_y.o : tp_y.c
$(CC) $(CFLAGS) -c tp_y.c
tp_y.h tp_y.c : tp.y tp.h
bison -v -b tp_y -o tp_y.c -d tp.y
.Phony: clean
clean:
rm -f *~ tp.exe* ./tp *.o tp_l.* tp_y.* genCode
rm -f test/*~ test/*.out test/*/*~ test/*/*.out