-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
44 lines (25 loc) · 1.04 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
FORMULAFILES = formula/aalta_formula.cpp formula/olg_formula.cpp formula/olg_item.cpp
PARSERFILES = ltlparser/ltl_formula.c ltlparser/ltllexer.c ltlparser/ltlparser.c ltlparser/trans.c
UTILFILES = util/utility.cpp utility.cpp
SOLVER = minisat/core/Solver.cc aaltasolver.cpp solver.cpp carsolver.cpp
CHECKING = ltlfchecker.cpp carchecker.cpp
OTHER = evidence.cpp
ALLFILES = $(CHECKING) $(SOLVER) $(FORMULAFILES) $(PARSERFILES) $(UTILFILES) $(OTHER) main.cpp
CC = g++
FLAG = -I./ -I./minisat/ -D __STDC_LIMIT_MACROS -D __STDC_FORMAT_MACROS -fpermissive
DEBUGFLAG = -D DEBUG -g -pg
RELEASEFLAG = -O2
aaltaf : release
ltlparser/ltllexer.c :
ltlparser/grammar/ltllexer.l
flex ltlparser/grammar/ltllexer.l
ltlparser/ltlparser.c :
ltlparser/grammar/ltlparser.y
bison ltlparser/grammar/ltlparser.y
.PHONY : release debug clean
release : $(ALLFILES)
$(CC) $(FLAG) $(RELEASEFLAG) $(ALLFILES) -lz -o aaltaf
debug : $(ALLFILES)
$(CC) $(FLAG) $(DEBUGFLAG) $(ALLFILES) -lz -o aaltaf
clean :
rm -f *.o *~ aaltaf