OSDN Git Service

libhb: Fix linux compilation. Only set the pthread mutex type on cygwin since it...
[handbrake-jp/handbrake-jp-git.git] / contrib / Makefile
1 # Contrib Makefile
2
3 SYSTEM = $(shell uname -s)
4
5 # Special case for Mac OS X: everything is handled from the Xcode project
6 ifeq ($(SYSTEM),Darwin)
7
8 all:    .contrib
9
10 .contrib:
11         ( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; ../jam )
12
13 clean:  
14         ( echo "Do a make mrproper to remove the contrib libraries )
15
16 mrproper: 
17         (rm -rf lib ; rm -rf include )
18
19 endif
20
21 ifeq ($(SYSTEM),Linux)
22
23 all:    .contrib
24
25 .contrib:
26         ( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; jam )
27
28 clean:  
29         ( echo "Do a make mrproper to remove the contrib libraries )
30
31 mrproper: 
32         (rm -rf lib ; rm -rf include )
33
34 endif
35
36 ifeq ($(findstring CYGWIN_NT,$(SYSTEM)),CYGWIN_NT)
37
38 all:    .contrib
39
40 .contrib:    
41         ( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; jam.exe )
42
43 clean:
44         ( echo "Do a make mrproper to remove the contrib libraries )
45
46 mrproper: clean
47         (rm -rf lib ; rm -rf include ; rm -f .contrib)
48
49 endif