summaryrefslogtreecommitdiff
path: root/math/csdp/files/patch-Makefile
blob: 6bff733238d23f35dc84c04f852390e6883b76d8 (plain) (blame)
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
- replacement of -ansi with -std=c99 is to work around https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260136

--- Makefile.orig	2017-07-25 18:44:57 UTC
+++ Makefile
@@ -11,11 +11,11 @@
 #
 # 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
+CFLAGS=$(FREEBSD_CFLAGS) -fopenmp -std=c99 -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
+LIBS=$(FREEBSD_LIBS) -L../lib -lsdp -llapack -lblas -lm
 #
 #
 # On most systems, this should handle everything.
@@ -38,11 +38,11 @@ unitTest:
 #
 
 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
+	cp -f solver/csdp $(DESTDIR)$(PREFIX)/bin
+	cp -f theta/theta $(DESTDIR)$(PREFIX)/bin
+	cp -f theta/graphtoprob $(DESTDIR)$(PREFIX)/bin
+	cp -f theta/complement $(DESTDIR)$(PREFIX)/bin
+	cp -f theta/rand_graph $(DESTDIR)$(PREFIX)/bin
 
 #
 # Clean out all of the directories.