-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile22
50 lines (39 loc) · 982 Bytes
/
Makefile22
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
##
## Makefile -- Build procedure for sample tsa Apache module
## Autogenerated via ``apxs -n tsa -g''.
##
builddir=.
top_srcdir=/app/apache
top_builddir=/app/apache
include /app/apache/build/special.mk
# the used tools
APACHECTL=apachectl
# additional defines, includes and libraries
DEFS=-DHTTPD22
INCLUDES=-I./hiredis
#LIBS=-Lmy/lib/dir -lmylib
# the default target
#all: version local-shared-build
all: local-shared-build
# version.c
version:
./create_version.pl 1.0
# install the shared object file into Apache
install: install-modules-yes
# cleanup
clean:
-rm -f mod_tsa.o mod_tsa.lo mod_tsa.slo mod_tsa.la *.o
# simple tsa
tsa: reload
lynx -mime_header http://localhost/tsa
# install and activate shared object by reloading Apache to
# force a reload of the shared object file
reload: install restart
# the general Apache start/restart/stop
# procedures
start:
$(APACHECTL) start
restart:
$(APACHECTL) restart
stop:
$(APACHECTL) stop