-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 688 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 688 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
EXE = minisat
DLL = MiniSatCS
DLL_SRC = solver.cs structs.cs
CSC = gmcs
DOTNET_OPT = mono --optimize=all
DOTNET_DEBUG = mono --debug
all: $(EXE).exe
$(EXE).exe: $(DLL).dll main.cs
$(CSC) /debug+ /define:DEBUG main.cs /r:$(DLL).dll /out:$@
$(DLL).dll: $(DLL_SRC)
$(CSC) /t:library /debug+ /define:DEBUG $(DLL_SRC) /out:$@
$(EXE)-opt.exe: main.cs
$(CSC) /optimize+ main.cs $(DLL_SRC) /out:$@
bench: $(EXE)-opt.exe
for n in 1 2 3 4 5 ; do \
$(DOTNET_OPT) $(EXE)-opt.exe tests/flat200-59.cnf | grep CPU ; \
done
t: $(EXE).exe
@$(DOTNET_DEBUG) $(EXE).exe -s tests/sat/*
@echo " SAT OK"
@mono $(EXE).exe -u tests/unsat/*
@echo " UNSAT OK"
clean:
rm -f *.exe *.mdb *.pdb *.dll