aboutsummaryrefslogtreecommitdiffstats
path: root/security/libtomcrypt/files/patch-makefile
blob: b03278144405a76685e638477625b2d50bc08ee6 (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
41
42
43
44
45
46
47
--- makefile.orig   Thu Nov 24 12:55:28 2005
+++ makefile    Fri Dec  2 22:38:47 2005
@@ -24,7 +24,7 @@
 endif
 
 # Compilation flags. Note the += does not write over the user's CFLAGS!
-CFLAGS += -c -I./testprof/ -I./src/headers/ -Wall -Wsign-compare -W -Wshadow -Wno-unused-parameter -DLTC_SOURCE
+CFLAGS += -c -I./testprof/ -I./src/headers/ -Wall -Wsign-compare -W -Wshadow -DLTC_SOURCE -D_WCHAR_T
 
 # additional warnings (newer GCC 3.4 and higher)
 ifdef GCC_34
@@ -35,10 +35,10 @@
 ifndef IGNORE_SPEED
 
 # optimize for SPEED
-CFLAGS += -O3 -funroll-loops
+#CFLAGS += -O3 -funroll-loops
 
 # add -fomit-frame-pointer.  hinders debugging!
-CFLAGS += -fomit-frame-pointer
+#CFLAGS += -fomit-frame-pointer
 
 # optimize for SIZE
 #CFLAGS += -Os -DLTC_SMALL_CODE
@@ -275,11 +275,11 @@
 endif
    install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
    install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
-   install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(DATAPATH)
    install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH)
    install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
 ifndef NODOCS
-   install -g $(GROUP) -o $(USER) doc/crypt.pdf $(DESTDIR)$(DATAPATH)
+   install -d -g $(GROUP) -o $(USER) ${DESTDIR}$(DATAPATH)
+   install -g $(GROUP) -o $(USER) doc/crypt.pdf ${DESTDIR}$(DATAPATH)
 endif
 
 install_test: testprof/$(LIBTEST)
@@ -333,7 +333,7 @@
    latex crypt > /dev/null
    makeindex crypt.idx > /dev/null
    latex crypt > /dev/null
-   dvipdf crypt
+   dvipdft crypt
    mv -ivf crypt.pdf doc/crypt.pdf
    rm -f $(LEFTOVERS)