Line 0
Link Here
|
|
|
1 |
--- makefile.orig Mon Jun 27 08:08:34 2005 |
2 |
+++ makefile Tue Jul 5 13:44:01 2005 |
3 |
@@ -15,7 +15,7 @@ |
4 |
#ARFLAGS=r |
5 |
|
6 |
# Compilation flags. Note the += does not write over the user's CFLAGS! |
7 |
-CFLAGS += -c -I./testprof/ -I./src/headers/ -Wall -Wsign-compare -W -Wshadow -Wno-unused-parameter |
8 |
+CFLAGS += -c -I./testprof/ -I./src/headers/ -Wall -Wsign-compare -W -Wshadow |
9 |
|
10 |
# additional warnings (newer GCC 3.4 and higher) |
11 |
#CFLAGS += -Wsystem-headers -Wdeclaration-after-statement -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wmissing-prototypes \ |
12 |
@@ -24,10 +24,10 @@ |
13 |
ifndef IGNORE_SPEED |
14 |
|
15 |
# optimize for SPEED |
16 |
-CFLAGS += -O3 -funroll-loops |
17 |
+CFLAGS += |
18 |
|
19 |
-# add -fomit-frame-pointer. hinders debugging! |
20 |
-CFLAGS += -fomit-frame-pointer |
21 |
+# add . hinders debugging! |
22 |
+CFLAGS += |
23 |
|
24 |
# optimize for SIZE |
25 |
#CFLAGS += -Os -DLTC_SMALL_CODE |
26 |
@@ -57,9 +57,9 @@ |
27 |
#INCPATH-The directory to install the header files for libtomcrypt. |
28 |
#DATAPATH-The directory to install the pdf docs. |
29 |
DESTDIR= |
30 |
-LIBPATH=/usr/lib |
31 |
-INCPATH=/usr/include |
32 |
-DATAPATH=/usr/share/doc/libtomcrypt/pdf |
33 |
+LIBPATH=${PREFIX}/lib |
34 |
+INCPATH=${PREFIX}/include |
35 |
+DATAPATH=${PREFIX}/share/doc/libtomcrypt/pdf |
36 |
|
37 |
#Who do we install as? |
38 |
ifdef INSTALL_USER |
39 |
@@ -237,12 +237,16 @@ |
40 |
#This rule installs the library and the header files. This must be run |
41 |
#as root in order to have a high enough permission to write to the correct |
42 |
#directories and to set the owner and group to root. |
43 |
-install: library docs |
44 |
+install_lib: library |
45 |
+ install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH) |
46 |
+ install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH) |
47 |
+ |
48 |
+install_withdocs: library |
49 |
+ install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH) |
50 |
+ install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH) |
51 |
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH) |
52 |
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH) |
53 |
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(DATAPATH) |
54 |
- install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH) |
55 |
- install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH) |
56 |
install -g $(GROUP) -o $(USER) doc/crypt.pdf $(DESTDIR)$(DATAPATH) |