summaryrefslogtreecommitdiff
path: root/www/mod_authenticache/files/patch-Makefile
blob: e35c93ca4801dde99e0f7ac56834b58ac061c633 (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
--- Makefile.orig	Sat Mar  6 02:03:42 2004
+++ Makefile	Sat Mar 20 12:43:15 2004
@@ -3,25 +3,27 @@
 NAME = mod_authenticache
 VERSION = 2.0.8
 
-CC = `apxs -q CC`
+CC = `${APXS} -q CC`
 DEFS = -DVERSION=\"$(VERSION)\"
-INCS = -I`apxs -q INCLUDEDIR`
-FLGS = -s -O3 -Wall -pipe
+INCS = -I`${APXS} -q INCLUDEDIR`
+FLGS = ${CFLAGS}
 OBJS = $(NAME).o
 #EXPS = /u/webs/ap-home/modules/httpd.exp /u/webs/ap-home/lib/apr.exp /u/webs/ap-home/lib/aprutil.exp
 #LIBS = -L../truerand -lrand
 
+all: $(NAME).so
+
 $(NAME).so: $(OBJS) $(EXPS)
-	$(CC) $(FLGS) -fpic -shared -o $@ $^ $(LIBS)
+	$(CC) $(FLGS) -fPIC -shared -o $@ $^ $(LIBS)
 
 .c.o: $<
-	$(CC) $(FLGS) -c $< $(INCS) $(DEFS)
+	$(CC) $(FLGS) -fPIC -c $< $(INCS) $(DEFS)
 	
 clean:
 	-rm -f *.o *.so
 
 install: $(NAME).so
-	-cp -p $(NAME).so `apxs -q LIBEXECDIR`
+	-cp -p $(NAME).so `${APXS} -q LIBEXECDIR`
 
 dist: clean
 	( cd ..; \