[svn-inject] Forking suphp source to Trunk
[manu/suphp.git] / src / apache / Makefile
1 SHELL = /bin/sh
2
3 top_srcdir = ../..
4 srcdir = .
5
6 prefix = /usr/local
7 exec_prefix = ${prefix}
8 sbindir = ${exec_prefix}/sbin
9 CC = gcc -s
10 CFLAGS = -g -O2
11 DEFS = -DHAVE_CONFIG_H
12 LDFLAGS = 
13
14 INSTALL = /bin/install -c
15 INSTALL_PROGRAM = ${INSTALL}
16 APXS = /notfound/
17
18 DESTDIR =
19
20 MAKEDEFS = CC='$(CC)' DEFS='$(DEFS)' CFLAGS='$(CFLAGS)' \
21            LDFLAGS='$(LDFLAGS)' prefix='$(prefix)' \
22            sbindir='$(sbindir)' DESTDIR='$(DESTDIR)' \
23            srcdir='$(srcdir)'
24
25 RM = rm -f
26 INCLUDES = -I$(top_srcdir)/src
27 EXTRADEFS = -DPATH_TO_SUPHP=\\\"$(sbindir)/suphp\\\"
28
29 all: suphp.mod
30
31 suphp.mod: mod_suphp.c
32         $(APXS) -c $(DEFS) $(EXTRADEFS) $(INCLUDES) -Wc,"$(CFLAGS)" mod_suphp.c
33
34 install: suphp.mod
35         $(APXS) -i -a mod_suphp.so
36
37 clean:
38         $(RM) mod_suphp.so mod_suphp.o
39