-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (36 loc) · 1.41 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
## File generated by the BNF Converter (bnfc 2.9.4).
CC=g++ -g
CCFLAGS=--ansi -W -Wall -Wsign-conversion -Wno-unused-parameter -Wno-unused-function -Wno-unneeded-internal-declaration
FLEX=flex
FLEX_OPTS=-Pjavalette_
BISON=bison
BISON_OPTS=-t -pjavalette_
OBJS=Absyn.o Buffer.o Lexer.o Parser.o Printer.o
.PHONY : clean distclean
all : TestJavalette
clean :
rm -f *.o TestJavalette Javalette.aux Javalette.log Javalette.pdf Javalette.dvi Javalette.ps Javalette
distclean : clean
rm -f Absyn.C Absyn.H Buffer.C Buffer.H Test.C Bison.H Parser.C Parser.H ParserError.H Javalette.y Lexer.C Javalette.l Skeleton.C Skeleton.H Printer.C Printer.H Makefile Javalette.tex
TestJavalette : ${OBJS} Test.o
@echo "Linking TestJavalette..."
${CC} ${OBJS} Test.o -o TestJavalette
Absyn.o : Absyn.C Absyn.H
${CC} ${CCFLAGS} -c Absyn.C
Buffer.o : Buffer.C Buffer.H
${CC} ${CCFLAGS} -c Buffer.C
Lexer.C : Javalette.l
${FLEX} ${FLEX_OPTS} -oLexer.C Javalette.l
Parser.C Bison.H : Javalette.y
${BISON} ${BISON_OPTS} Javalette.y -o Parser.C
Lexer.o : CCFLAGS+=-Wno-sign-conversion
Lexer.o : Lexer.C Bison.H
${CC} ${CCFLAGS} -c Lexer.C
Parser.o : Parser.C Absyn.H Bison.H
${CC} ${CCFLAGS} -c Parser.C
Printer.o : Printer.C Printer.H Absyn.H
${CC} ${CCFLAGS} -c Printer.C
Skeleton.o : Skeleton.C Skeleton.H Absyn.H
${CC} ${CCFLAGS} -Wno-unused-parameter -c Skeleton.C
Test.o : Test.C Parser.H Printer.H Absyn.H
${CC} ${CCFLAGS} -c Test.C