forked from coin-or/Csdp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (50 loc) · 1.18 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
56
#
# This Makefile can be used to automatically build the entire package.
#
# If you make changes in the Makefile or code under any subdirectory, you can
# rebuild the system with "make clean" followed by "make all".
#
#
# You can change the C compiler by setting CC=...
#
# CC=gcc
#
# CFLAGS settings for 64 bit Linux/unix systems.
#
export CFLAGS=-m64 -march=native -mtune=native -Ofast -fopenmp -ansi -Wall -DBIT64 -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include
#
# LIBS settings for 64 bit Linux/unix systems.
#
export LIBS=-static -L../lib -lsdp -llapack -lblas -lm
#
#
# On most systems, this should handle everything.
#
all:
cd lib; make libsdp.a
cd solver; make csdp
cd theta; make all
cd example; make all
#
# Perform a unitTest
#
unitTest:
cd test; make all
#
# Install the executables in /usr/local/bin.
#
install:
cp -f solver/csdp /usr/local/bin
cp -f theta/theta /usr/local/bin
cp -f theta/graphtoprob /usr/local/bin
cp -f theta/complement /usr/local/bin
cp -f theta/rand_graph /usr/local/bin
#
# Clean out all of the directories.
#
clean:
cd lib; make clean
cd solver; make clean
cd theta; make clean
cd test; make clean
cd example; make clean