summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2007-12-27 21:03:40 +0000
committersr55 <[email protected]>2007-12-27 21:03:40 +0000
commit78e44333de5428afae0bbccb05eaa7c31d7cbb3e (patch)
treee04b4a451344b4deeba53f1972827414bf7c0491
parent966a6c6a61fc6e15e0ec71553b77d18cf04f9182 (diff)
Updated makefile for cygwin builds
app = download contrib binary package and compile source all = use Jam to build the source Works the same way as linux does now. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1149 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--Makefile23
1 files changed, 14 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 8d9f1e268..67e6ccebe 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,9 @@ SYSTEM = $(shell uname -s)
# Special case for Mac OS X: everything is handled from the Xcode project
+#
+# Darwin
+#
ifeq ($(SYSTEM),Darwin)
all: clean app
@@ -40,12 +43,14 @@ cli-release:
endif
+#
+# Linux
+#
ifeq ($(SYSTEM),Linux)
all: contrib/.contrib libhb/libhb.a HandBrakeCLI
(rm -rf HandBrake HandBrake*.tar.gz ; mkdir -p HandBrake/api HandBrake/doc; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/doc ; cp -rp libhb/libhb.so HandBrake/api ; cp -rp libhb/hb.h libhb/common.h libhb/ports.h HandBrake/api ; cp -rp HandBrakeCLI HandBrake ; tar zcvf HandBrake-$(HB_VERSION)_i386.tar.gz HandBrake ; rm -rf HandBrake )
-
contrib/.contrib:
@$(MAKE) --no-print-directory -C contrib all
@@ -64,27 +69,27 @@ mrproper: clean
endif
+#
+# Cygwin
+#
ifeq ($(findstring CYGWIN_NT,$(SYSTEM)),CYGWIN_NT)
-all: contrib/.contrib libhb/libhb.a
+all: contrib/.contrib libhb/libhb.a HandBrakeCLI
+app: contribPack libhb/libhb.a HandBrakeCLI
-app:
+contribPack:
(./DownloadCygWinContribBinaries.sh)
-HandbrakeCLI: app libhb/libhb.a
-
-
+
contrib/.contrib:
@$(MAKE) --no-print-directory -C contrib all
libhb/libhb.a:
@$(MAKE) --no-print-directory -C libhb all
-HandbrakeCLI:
+HandBrakeCLI:
@$(MAKE) --no-print-directory -C test all
-
-
clean:
@$(MAKE) --no-print-directory -C libhb clean
@$(MAKE) --no-print-directory -C test clean