summaryrefslogtreecommitdiff
path: root/Makefile
blob: 852598eae9a1733c4ad9f4d5b016c70bff852ef0 (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
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 authn_yubikey Apache module
##  Autogenerated via ``apxs -n authn_yubikey -g''.
##

builddir=.
top_srcdir=../../apache228-install
top_builddir=../../apache228-install
include ../../apache228-install/build/special.mk

#   the used tools
APXS=apxs
APACHECTL=apachectl

#   additional defines, includes and libraries
#DEFS=-Dmy_define=my_value
DEFS=-DYK_PACKAGE=\"mod_authn_yubikey\" -DYK_PACKAGE_VERSION=\"0.1\"

#INCLUDES=-Imy/include/dir
#LIBS=-Lmy/lib/dir -lmylib
LIBS=-lcurl

#   the default target
all: local-shared-build install

#   install the shared object file into Apache 
install: install-modules-yes

#   cleanup
clean:
	-rm -f mod_authn_yubikey.o mod_authn_yubikey.lo mod_authn_yubikey.slo mod_authn_yubikey.la 

#   simple test
test: reload
	lynx -mime_header http://localhost/authn_yubikey

#   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