-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (37 loc) · 1.19 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
#
# A simple makefile for compiling three java classes
#
# define a makefile variable for the java compiler
#
JCC = javac
# define a makefile variable for compilation flags
# the -g flag compiles with debugging information
#
JFLAGS = -g
# typing 'make' will invoke the first target entry in the makefile
# (the default one in this case)
#
default: Interpreter.class Sexp.class Lexical.class Parse.class Printer.class Evaluator.class Typechecker.class
# this target entry builds the Average class
# the Average.class file is dependent on the Average.java file
# and the rule associated with this entry gives the command to create it
#
Interpreter.class: Interpreter.java
$(JCC) $(JFLAGS) Interpreter.java
Typechecker.class: Typechecker.java
$(JCC) $(JFLAGS) Typechecker.java
Sexp.class: Sexp.java
$(JCC) $(JFLAGS) Sexp.java
Lexical.class: Lexical.java
$(JCC) $(JFLAGS) Lexical.java
Parse.class: Parse.java
$(JCC) $(JFLAGS) Parse.java
Printer.class: Printer.java
$(JCC) $(JFLAGS) Printer.java
Evaluator.class: Evaluator.java
$(JCC) $(JFLAGS) Evaluator.java
# To start over from scratch, type 'make clean'.
# Removes all .class files, so that the next make rebuilds them
#
clean:
$(RM) *.class