File: Makefile

package info (click to toggle)
libapache-mod-cgi-debug 0.7-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 88 kB
  • ctags: 40
  • sloc: ansic: 350; sh: 87; makefile: 63
file content (45 lines) | stat: -rw-r--r-- 1,015 bytes parent folder | download | duplicates (3)
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
##
##  Makefile -- Build procedure for sample cgi_debug Apache module
##  Autogenerated via ``apxs -n cgi_debug -g''.
##

#   the used tools
APXS=apxs
APACHECTL=apachectl

#   additional user defines, includes and libraries
#DEF=-Dmy_define=my_value
#INC=-Imy/include/dir
#LIB=-Lmy/lib/dir -lmylib

#   the default target
all: mod_cgi_debug.so

#   compile the DSO file
mod_cgi_debug.so: mod_cgi_debug.c
	$(APXS) -c $(DEF) $(INC) $(LIB) mod_cgi_debug.c

#   install the DSO file into the Apache installation
#   and activate it in the Apache configuration
install: all
	$(APXS) -i -S LIBEXECDIR=$(DESTDIR)/usr/lib/apache/1.3 -n 'cgi_debug' mod_cgi_debug.so

#   cleanup
clean:
	-rm -f mod_cgi_debug.o mod_cgi_debug.so

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

#   reload the module by installing and restarting Apache
reload: install restart

#   the general Apache start/restart/stop procedures
start:
	$(APACHECTL) start
restart:
	$(APACHECTL) restart
stop:
	$(APACHECTL) stop