blob: ed1f05384b1a7a45825f217b41a1dfae62d1b214 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
SYSTEM = $(shell uname -s)
# Special case for Mac OS X: everything is handled from the Xcode project
ifeq ($(SYSTEM),Darwin)
all: clean app release
app:
(./DownloadMacOsXContribBinaries.sh ; cd macosx ; xcodebuild -alltargets -configuration UB build | sed '/^$$/d' ; cd .. ; ./macosx/localize.sh MediaFork.app)
clean:
(cd macosx ; xcodebuild -alltargets -configuration UB clean | sed '/^$$/d' )
mrproper:
(rm -rf contrib/*tar.gz contrib/include contrib/lib contrib/DarwinContribVersion.txt ; cd macosx ; xcodebuild -alltargets -configuration UB clean | sed '/^$$/d' )
release:
(rm -rf MediaFork MediaFork.dmg ; mkdir -p MediaFork/api MediaFork/doc; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS MediaFork/doc ; cp -rp *MediaFork.app MediaFork ; cp -rp libmediafork/libmediafork.dylib MediaFork/api ; cp -rp libmediafork/mediafork.h libmediafork/common.h libmediafork/ports.h MediaFork/api ; cp -rp MediaForkCLI MediaFork ; hdiutil create -srcfolder MediaFork -format UDBZ MediaFork.dmg ; rm -rf MediaFork )
endif
ifeq ($(SYSTEM),Linux)
all: contrib/lib libmediafork/libmediafork.a MediaForkCLI
contrib/lib:
(./configure ; cd contrib ; cp -f ../config.jam . ; jam ; cd ..)
libmediafork/libmediafork.a:
@$(MAKE) --no-print-directory -C libmediafork all
MediaForkCLI:
@$(MAKE) --no-print-directory -C test all
clean:
@$(MAKE) --no-print-directory -C libmediafork clean
@$(MAKE) --no-print-directory -C test clean
mrproper: clean
(rm -rf contrib/lib ; rm -rf contrib/include/* )
endif
ifeq ($(SYSTEM),CYGWIN_NT-5.1)
all: contrib/lib libmediafork/libmediafork.a MediaForkCLI
contrib/lib:
(./configure ; cd contrib ; cp -f ../config.jam . ; jam.exe ; cd ..)
libmediafork/libmediafork.a:
@$(MAKE) --no-print-directory -C libmediafork all
MediaForkCLI:
@$(MAKE) --no-print-directory -C test all
clean:
@$(MAKE) --no-print-directory -C libmediafork clean
@$(MAKE) --no-print-directory -C test clean
mrproper: clean
(rm -rf contrib/lib ; rm -rf contrib/include/* )
endif
|