-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (35 loc) · 1.4 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
#--------------------------------------------
# INSTRUCTION
# Quoted strings are to be filled in by student
#
CCC = clang++
CCFLAGS =
OBJS = Automaton.o BinopToken.o BoolToken.o BracketToken.o FloatToken.o IBTLAutomaton.o IDToken.o IntegerToken.o KeywordToken.o Parser.o main.o Scanner.o StrToken.o SymbolTable.o Token.o TypToken.o UnopToken.o Node.o
SOURCE = src/Automaton.cpp src/BinopToken.cpp src/BoolToken.cpp src/BracketToken.cpp src/FloatToken.cpp src/IBTLAutomaton.cpp src/IDToken.cpp src/IntegerToken.cpp src/KeywordToken.cpp src/Parser.cpp src/main.cpp src/Scanner.cpp src/StrToken.cpp src/SymbolTable.cpp src/Token.cpp src/TypToken.cpp src/UnopToken.cpp src/Node.cpp
RUNFLAGS =
TESTFLAGS = a.in b.in c.in d.in e.in f.in g.in h.in j.in k.in l.in m.in n.in o.in p.in q.in r.in s.in t.in u.in v.in w.in x.in y.in z.in
GTESTFILES = ga.in
GBADFILES = gb.in
$(OBJS): $(SOURCE)
$(CCC) $(CCFLAGS) -c $(SOURCE)
compiler: $(OBJS)
$(CCC) $(CCFLAGS) -o compiler $(OBJS)
clean:
rm -f *.o *.out
ls
stutest.out: compiler
-./compiler $(RUNFLAGS) $(TESTFLAGS) > stutest1.out
cat stutest1.out
gforthtest.out: compiler
cat $(GTESTFILES)
./compiler $(RUNFLAGS) $(GTESTFILES) > gforthtest.out
cat gforthtest.out
gforthtest: gforthtest.out
gforth gforthtest.out
typeerrors: compiler
cat $(GBADFILES)
./compiler $(GBADFILES)
proftest.out: compiler
cat $(PROFTEST)
compiler $(PROFTEST) > proftest.out
cat proftest.out