]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
build DP properly with d0_blind_id
authorRudolf Polzer <divverent@alientrap.org>
Sat, 21 Apr 2012 13:36:20 +0000 (15:36 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 21 Apr 2012 13:36:20 +0000 (15:36 +0200)
Makefile
misc/tools/all/release.subr

index 6f5d56d4c4a82b1c0ae81fc699f1aaf757df666f..79cfa77fe8c8f58c8af2e84f4b97eb701336c9c1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,8 @@ LN ?= ln
 CP ?= cp
 BINARY ?= yes
 SUFFIX ?= $(shell if [ -d .git ]; then echo git; elif [ x"$(BINARY)" = x"yes" ]; then echo zip-binary; else echo zip-source; fi)
+RIJNDAELDETECT_CONFIGURE ?= $(shell if ! [ -f source/d0_blind_id/d0_rijndael.c ]; then echo --disable-rijndael; fi)
+RIJNDAELDETECT_MAKE_DP ?= $(shell if [ -f source/d0_blind_id/d0_rijndael.c ]; then echo DP_CRYPTO_RIJNDAEL_STATIC_LIBDIR=$(CURDIR)/source/d0_blind_id/.libs; fi)
 
 
 .PHONY: all
@@ -24,11 +26,13 @@ all-zip-binary:
 
 .PHONY: all-zip-source
 all-zip-source:
+       ( cd source/d0_blind_id && ./configure --enable-static --disable-shared $(RIJNDAELDETECT_CONFIGURE) )
+       $(MAKE) -C source/d0_blind_id
        $(MAKE) -C source/fteqcc
        $(MAKE) -C source/qcsrc FTEQCC=$(CURDIR)/source/fteqcc/fteqcc.bin
-       $(MAKE) -C source/darkplaces sv-release
-       $(MAKE) -C source/darkplaces cl-release
-       $(MAKE) -C source/darkplaces sdl-release
+       $(MAKE) -C source/darkplaces sv-release DP_CRYPTO_STATIC_LIBDIR=$(CURDIR)/source/d0_blind_id/.libs
+       $(MAKE) -C source/darkplaces cl-release DP_CRYPTO_STATIC_LIBDIR=$(CURDIR)/source/d0_blind_id/.libs
+       $(MAKE) -C source/darkplaces sdl-release DP_CRYPTO_STATIC_LIBDIR=$(CURDIR)/source/d0_blind_id/.libs
 
 
 .PHONY: clean
@@ -39,13 +43,15 @@ clean-git:
        ./all clean
 
 .PHONY: clean-zip
-clean-binary:
+clean-zip-binary:
        @echo Nothing to do
 
 .PHONY: clean-zip
-clean-source:
-       @echo Sorry, this is not implemented yet
-       @false
+clean-zip-source:
+       -$(MAKE) -C source/d0_blind_id distclean
+       $(MAKE) -C source/fteqcc clean
+       $(MAKE) -C source/qcsrc clean
+       $(MAKE) -C source/darkplaces clean
 
 
 .PHONY: install-data
@@ -86,7 +92,7 @@ install-engine-git: all-git
        $(INSTALL) darkplaces/darkplaces-dedicated $(LIBDIR)/xonotic-$(ARCH)-dedicated
 
 .PHONY: install-engine-zip-binary
-install-engine-zip: all-zip
+install-engine-zip-binary: all-zip-binary
        $(INSTALL) -d $(LIBDIR)
        $(INSTALL) xonotic-linux-glx.sh $(LIBDIR)/xonotic-linux-glx.sh
        $(INSTALL) xonotic-linux-sdl.sh $(LIBDIR)/xonotic-linux-sdl.sh
@@ -96,7 +102,7 @@ install-engine-zip: all-zip
        $(INSTALL) xonotic-$(ARCH)-dedicated $(LIBDIR)/xonotic-$(ARCH)-dedicated
 
 .PHONY: install-engine-zip-source
-install-engine-zip: all-zip
+install-engine-zip-source: all-zip-source
        $(INSTALL) -d $(LIBDIR)
        $(INSTALL) xonotic-linux-glx.sh $(LIBDIR)/xonotic-linux-glx.sh
        $(INSTALL) xonotic-linux-sdl.sh $(LIBDIR)/xonotic-linux-sdl.sh
index 465617b4e9b0330b7f4192f31f58b272be651389..975adb63f0746e3b525f9001cf11906e62ef85ff 100644 (file)
@@ -170,7 +170,7 @@ case "$cmd" in
                        verbose date +%Y%m%d > Xonotic/stamp.txt
                        verbose date +%Y%m%d > Xonotic/pk3stamp.txt
                fi
-               release_git_extract_dir "." "Xonotic" Docs misc server xonotic-linux-glx.sh xonotic-linux-sdl.sh xonotic-linux-dedicated.sh misc/buildfiles key_0.d0pk COPYING GPL-2 GPL-3
+               release_git_extract_dir "." "Xonotic" Docs misc server xonotic-linux-glx.sh xonotic-linux-sdl.sh xonotic-linux-dedicated.sh Makefile misc/buildfiles key_0.d0pk COPYING GPL-2 GPL-3
                (
                        verbose cd Xonotic
                        verbose mkdir data fteqcc source source/darkplaces source/fteqcc source/d0_blind_id mapping
@@ -557,6 +557,7 @@ case "$cmd" in
                fi
                # build the archives
                verbose mkzip Xonotic-$stamp-enginesource.zip \
+                       Xonotic/Makefile \
                        Xonotic/source/darkplaces/ \
                        Xonotic/COPYING Xonotic/GPL-2 Xonotic/GPL-3
                verbose cp Xonotic-$stamp-enginesource.zip Xonotic-$stamp-engine.zip