summaryrefslogtreecommitdiff
path: root/www/wwwoffle/patches/patch-aa
blob: 307a07eb01a5f97e77331dd40e8b39808ff29083 (plain)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
--- Makefile.orig	Mon Apr  2 16:48:09 2001
+++ Makefile	Mon Apr  2 16:50:24 2001
@@ -18,11 +18,11 @@
 LOCALHOST=localhost:8080
 
 # For UNIX.
-INSTDIR=/usr/local
-SPOOLDIR=/var/spool/wwwoffle
-CONFDIR=/var/spool/wwwoffle
+INSTDIR=${PREFIX}
+SPOOLDIR=/var/wwwoffle
+CONFDIR=${PREFIX}/etc/wwwoffle
 MANDIR=$(INSTDIR)/man
-DOCDIR=$(INSTDIR)/doc/wwwoffle
+DOCDIR=$(INSTDIR)/share/doc/wwwoffle
 
 # For Cygwin (win32).
 #INSTDIR=/wwwoffle
@@ -51,13 +51,13 @@
 ########
 
 CC=gcc
-CFLAGS=-O2 -Wall -g
+CFLAGS=-O2 -Wall
 
 # This is used in the FreeBSD port (http://www.freebsd.org/ports/).
 #CFLAGS=-O2 -Wall
 
 LD=gcc
-LDFLAGS=-g
+LDFLAGS=-s
 
 # For HP/UX this is a good idea.
 #LDFLAGS=
@@ -82,8 +82,8 @@
 # The option to not use zlib for compression.
 #USE_ZLIB=0
 
-INCLUDE=
-LIBRARY=-lz
+#INCLUDE=
+#LIBRARY=-lz
 
 # To compile without zlib
 #LIBRARY=
@@ -153,7 +153,7 @@
 	     configfile.o config.o errors.o io.o misc.o proto.o sockets.o md5.o
 
 wwwoffle : $(WWWOFFLE_OBJ)
-	$(LINK) $(WWWOFFLE_OBJ) -o $@ $(LIBRARY)
+	$(LINK) $(WWWOFFLE_OBJ) -o $@ $(LIBRARY) -lz
 
 ####
 
@@ -165,7 +165,7 @@
 	      configfile.o config.o errors.o io.o misc.o proto.o sockets.o md5.o
 
 wwwoffled : $(WWWOFFLED_OBJ)
-	$(LINK) $(WWWOFFLED_OBJ) -o $@ $(LIBRARY)
+	$(LINK) $(WWWOFFLED_OBJ) -o $@ $(LIBRARY) -lz
 
 ####
 
@@ -176,7 +176,7 @@
 	           configfile.o config.o errors.o io.o misc.o proto.o sockets.o md5.o
 
 wwwoffle-tools : $(WWWOFFLE_TOOLS_OBJ)
-	$(LINK) $(WWWOFFLE_TOOLS_OBJ) -o $@ $(LIBRARY)
+	$(LINK) $(WWWOFFLE_TOOLS_OBJ) -o $@ $(LIBRARY) -lz
 
 ####
 
@@ -184,7 +184,7 @@
 	    configfile.o config.o errors.o io.o misc.o proto-none.o sockets.o spool.o md5.o
 
 convert-cache : $(CONVERT_OBJ)
-	$(LINK) $(CONVERT_OBJ) -o $@ $(LIBRARY)
+	$(LINK) $(CONVERT_OBJ) -o $@ $(LIBRARY) -lz
 
 ####
 
@@ -193,7 +193,7 @@
 	       configfile.o config.o errors.o io.o misc.o proto-none.o sockets.o spool.o md5.o
 
 uncompress-cache : $(UNCOMPRESS_OBJ)
-	$(LINK) $(UNCOMPRESS_OBJ) -o $@ $(LIBRARY)
+	$(LINK) $(UNCOMPRESS_OBJ) -o $@ $(LIBRARY) -lz
 
 ####