File: Makefile

package info (click to toggle)
libapache-mod-choke 0.06-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 120 kB
  • ctags: 70
  • sloc: ansic: 764; makefile: 56; sh: 41
file content (31 lines) | stat: -rw-r--r-- 606 bytes parent folder | download | duplicates (2)
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
#   the used tools
APXS=apxs
APACHECTL=apachectl

#   the default target
all: mod_choke.so

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

#   install the DSO file into the Apache installation
#   and activate it in the Apache configuration
install: all
	$(APXS) -i -a mod_choke.so

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

#   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