forked from matsumotory/mod_process_security
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (39 loc) · 1.06 KB
/
Makefile
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 mod_process_security Apache module
## MATSUMOTO, Ryosuke
##
# target module source
TARGET=mod_process_security.c
# the used tools
APXS=apxs
APACHECTL=apachectl
#APXS=/usr/local/apache2.4/bin/apxs
#APACHECTL=/usr/local/apache2.4/bin/apachectl
# additional user defines, includes and libraries
#DEF=-DSYSLOG_NAMES
INC=
LIB=-lcap
WC=-Wc,-std=c99
# the default target
all: mod_process_security.so
# compile the DSO file
mod_process_security.so: $(TARGET)
$(APXS) -c $(DEF) $(INC) $(LIB) $(WC) $(TARGET)
# install the DSO file into the Apache installation
# and activate it in the Apache configuration
install: all
$(APXS) -i -a -n 'process_security' .libs/mod_process_security.so
# cleanup
clean:
-rm -rf .libs *.o *.so *.lo *.la *.slo *.loT
start:
$(APACHECTL) -k start
restart:
$(APACHECTL) -k restart
stop:
$(APACHECTL) -k stop
test:
cd test/ && git clone --depth=1 git://github.com/mruby/mruby.git
cd test/mruby && MRUBY_CONFIG=../build_config.rb rake
cd test/ && ./mruby/bin/mruby test.rb
.PHONY: test