File: Makefile

package info (click to toggle)
libapache2-mod-rpaf 0.6-7%2Bwheezy1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 176 kB
  • sloc: ansic: 302; perl: 122; makefile: 49; sh: 33
file content (56 lines) | stat: -rw-r--r-- 1,342 bytes parent folder | download | duplicates (4)
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
50
51
52
53
54
55
56
# Makefile for mod_rpaf.c (gmake)
# $Id: Makefile 16 2007-12-13 03:40:22Z thomas $
APXS=$(shell which apxs) 
APXS2=$(shell which apxs2)

default:
	@echo mod_rpaf:
	@echo nevest version available at http://stderr.net/apache/rpaf/
	@echo
	@echo following options available:
	@echo \"make rpaf\" to compile the 1.3 version
	@echo \"make test\" to test 1.3 version
	@echo \"make install\" to install the 1.3 version
	@echo \"make rpaf-2.0\" to compile the 2.0 version
	@echo \"make test-2.0\" to test 2.0 version
	@echo \"make install-2.0\" to install the 2.0 version
	@echo
	@echo change path to apxs if this is not it: \"$(APXS)\"


rpaf: mod_rpaf.so
	@echo make done
	@echo type \"make test\" to test mod_rpaf
	@echo type \"make install\" to install mod_rpaf

test: rpaf
	@./gen_tests.sh
	cd t && $(MAKE) test
	@echo all done

rpaf-2.0: mod_rpaf-2.0.o
	@echo make done, type \"make install-2.0\" to install mod_rpaf-2.0

test-2.0: rpaf-2.0
	@./gen_tests.sh
	cd t && make test-2.0

mod_rpaf.so: mod_rpaf.c
	$(APXS) -c -o $@ mod_rpaf.c

mod_rpaf.c:

mod_rpaf-2.0.o: mod_rpaf-2.0.c
	$(APXS2) -c -n $@ mod_rpaf-2.0.c

mod_rpaf-2.0.c:

install: mod_rpaf.so
	$(APXS) -i -n mod_rpaf mod_rpaf.so

install-2.0: mod_rpaf-2.0.o
	$(APXS2) -i -n mod_rpaf-2.0.so mod_rpaf-2.0.la

clean:
	rm -rf *~ *.o *.so *.lo *.la *.slo *.loT .libs/ 
	cd t && make clean