summaryrefslogtreecommitdiff
path: root/www/mod_myvhost/files/patch-Makefile
blob: e5f73f410039d1bca0303287fc3d355b5ed5d89c (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
--- ./Makefile.orig	2014-03-09 18:49:26.000000000 +0100
+++ ./Makefile	2014-03-09 18:51:04.000000000 +0100
@@ -16,10 +16,15 @@
 CP = /bin/cp -f
 
 CFLAGS = -Wc,-W -Wc,-Wall
+.if defined(WITH_DEBUG)
 CFLAGS+= -DDEBUG
+.endif
+.if defined(WITH_PHP)
 CFLAGS+= -DWITH_PHP
+.endif
 #CFLAGS+= -DWITH_PHP -DWITH_UID_GID -DWITH_CACHE
 LDFLAGS = 
+APXS_STAGE=	@APXS_STAGE@
 
 default: all
 
@@ -28,8 +33,8 @@
 $(APACHE_MODULE): $(SRCS)
 	$(APXS) -c $(CFLAGS) $(LDFLAGS) $(SRCS)
 
-install: all
-	$(APXS) -i -a -n $(NAME) $(MODULE_LA)
+install: $(MODULE_LA)
+	$(APXS) $(APXS_STAGE) -i -n $(NAME) $(MODULE_LA)
 
 clean:
 	$(RM) $(OBJS) $(APACHE_MODULE) *.slo *.lo mod_myvhost.la .libs