-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·42 lines (30 loc) · 828 Bytes
/
Makefile
File metadata and controls
executable file
·42 lines (30 loc) · 828 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
37
38
39
40
41
42
OBJ=tp.o tp_l.o tp_y.o verif.o env.o print.o code.o
CC=gcc
CFLAGS=-Wall -ansi -I./ -g -std=c99
LDFLAGS=-g -lfl
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
env.o: env.c tp_y.h tp.h
$(CC) $(CFLAGS) -c env.c
code.o: code.c tp_y.h tp.h
$(CC) $(CFLAGS) -c code.c
print.o: print.c tp_y.h tp.h
$(CC) $(CFLAGS) -c print.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.*
rm -f test/*~ test/*.out test/*/*~ test/*/*.out