summaryrefslogtreecommitdiffstats
path: root/contrib/Makefile
blob: 1855ed06c2bc7e3615763b6e88c01bf27aaa5621 (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
# Contrib Makefile

SYSTEM = $(shell uname -s)

# Special case for Mac OS X: everything is handled from the Xcode project
ifeq ($(SYSTEM),Darwin)

all:	.contrib

.contrib:
	( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; ../jam )

clean:	
	( echo "Do a make mrproper to remove the contrib libraries )

mrproper: 
	(rm -rf lib ; rm -rf include )

endif

ifeq ($(SYSTEM),Linux)

all:	.contrib

.contrib:
	( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; jam )

clean:	
	( echo "Do a make mrproper to remove the contrib libraries )

mrproper: 
	(rm -rf lib ; rm -rf include )

endif

ifeq ($(findstring CYGWIN_NT,$(SYSTEM)),CYGWIN_NT)

all:	.contrib

.contrib:    
	( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; jam.exe )

clean:
	( echo "Do a make mrproper to remove the contrib libraries )

mrproper: clean
	(rm -rf lib ; rm -rf include ; rm -f .contrib)

endif