aboutsummaryrefslogtreecommitdiffstats
path: root/wlp/Makefile
blob: 7480b4723ac0f3ac542aa2ac5bfdc4c8b1657c96 (plain) (blame)
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
MODULEDIR=module
CSRCDIR=C
BINDIR=..

# modules name without $(MODULEDIR)
SOLIST=test.so



all: bin

bin: initmodule wlp makemodule
	chmod 0644 $(MODULEDIR)/*.so
	mv $(MODULEDIR)/*.so $(BINDIR)

# Init Makefile & Co. file for building python module
initmodule:
	$(MAKE) -C $(MODULEDIR) -f Makefile.pre.in boot

# The White List Parser Module
wlp:
	$(MAKE) -C $(CSRCDIR) archive
	
# Really make python module as .so
makemodule:
	$(MAKE) -C $(MODULEDIR)



clean: cleanmodule cleansrc
	rm -f $(BINDIR)/*.so

cleansrc:
	$(MAKE) -C $(CSRCDIR) clean

cleanmodule:
	@if test -f $(MODULEDIR)/Makefile; then $(MAKE) -C $(MODULEDIR) clean ;fi
	rm -f $(MODULEDIR)/Makefile.pre $(MODULEDIR)/Makefile
	rm -f $(MODULEDIR)/config.c
	rm -f $(MODULEDIR)/sedscript
	rm -f $(MODULEDIR)/Setup