diff options
author | prigaux <[email protected]> | 2007-02-11 20:00:15 +0000 |
---|---|---|
committer | prigaux <[email protected]> | 2007-02-11 20:00:15 +0000 |
commit | a74fd5a1ec37e53fe7008f022639af6ede0e82c9 (patch) | |
tree | 0a6a32640a840b72653149aa11efa264674df976 /Makefile | |
parent | f45dfeb2afb1b0bf46054959e8ea9494f3b7d14f (diff) |
Merge the 0.8.0_mpeg4ip branch into the trunk
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@285 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..ed1f05384 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 |