summaryrefslogtreecommitdiff
path: root/math/tomsfastmath/files/patch-makefile
blob: 953cd98b809fbe59fa8b8342560e687e217b74d8 (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
36
37
38
39
40
--- makefile.orig	Wed Apr 12 13:16:32 2006
+++ makefile	Wed Apr 12 13:16:48 2006
@@ -11,7 +11,7 @@ endif
 
 ifndef IGNORE_SPEED
 
-CFLAGS += -O3 -funroll-loops
+CFLAGS += -funroll-loops
 
 #profiling
 #PROF=-pg -g
@@ -52,11 +52,11 @@ HEADERS=src/headers/tfm.h 
 #END_INS
 
 ifndef LIBPATH
-   LIBPATH=/usr/lib
+   LIBPATH=${PREFIX}/lib
 endif
 
 ifndef INCPATH
-   INCPATH=/usr/include
+   INCPATH=${PREFIX}/include
 endif
 
 ifndef INSTALL_GROUP
@@ -82,10 +82,10 @@ $(LIBNAME): $(OBJECTS)
 	ranlib $@
 
 install: $(LIBNAME)
-	install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
-	install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
-	install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH)
-	install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
+	install -d $(DESTDIR)$(LIBPATH)
+	install -d $(DESTDIR)$(INCPATH)
+	install -m 644 $(LIBNAME) $(DESTDIR)$(LIBPATH)
+	install -m 644 $(HEADERS) $(DESTDIR)$(INCPATH)
 
 mtest/mtest: mtest/mtest.o
 	cd mtest ; CFLAGS="$(CFLAGS) -I../" MAKE=${MAKE} ${MAKE} mtest