Skip to content

Commit

Permalink
Plugin: Makefile abstracted openssl builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hbeni committed Jul 31, 2023
1 parent 5d4165b commit e82886a
Showing 1 changed file with 8 additions and 32 deletions.
40 changes: 8 additions & 32 deletions client/mumble-plugin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -156,49 +156,25 @@ plugin-macOS: outname=fgcom-mumble-macOS.bundle
plugin-macOS: openssl-macOS
make CC=$(CC) outname=$(outname) plugin

# OpenSSL (static build)
# OpenSSL
# The sources are located under lib/openssl as git submodule, and supposed to point to the latest stable head
# Info on configure options: https://wiki.openssl.org/index.php/Compilation_and_Installation
openssl-win:
ifdef SSLFLAGS
@echo "BUILD OpenSSL"
git submodule init
git submodule update
cd lib/openssl/ && git reset --hard
cd lib/openssl/ && ./Configure mingw64 -static no-pinshared no-weak-ssl-ciphers no-ssl2 no-ssl3 no-idea no-dtls1 --cross-compile-prefix=x86_64-w64-mingw32- && make clean && make -j4
else
@echo "Skipping building OpenSSL"
endif
openssl-win: openSSLBuildOpts=mingw64 -static
openssl-win: openssl

openssl-win32:
ifdef SSLFLAGS
@echo "BUILD OpenSSL"
git submodule init
git submodule update
cd lib/openssl/ && git reset --hard
cd lib/openssl/ && ./Configure mingw -static no-pinshared no-weak-ssl-ciphers no-ssl2 no-ssl3 no-idea no-dtls1 --cross-compile-prefix=i686-w64-mingw32- && make clean && make -j4
else
@echo "Skipping building OpenSSL"
endif
openssl-win32: openSSLBuildOpts=mingw -static
openssl-win32: openssl

openssl-macOS:
ifdef SSLFLAGS
@echo "BUILD OpenSSL"
git submodule init
git submodule update
cd lib/openssl/ && git reset --hard
cd lib/openssl/ && ./Configure no-pinshared no-weak-ssl-ciphers no-ssl3 no-idea no-dtls1 && make clean && make -j4
else
@echo "Skipping building OpenSSL"
endif
openssl-macOS: openSSLBuildOpts=
openssl-macOS: openssl

openssl:
ifdef SSLFLAGS
@echo "BUILD OpenSSL"
git submodule init
git submodule update
cd lib/openssl/ && git reset --hard
cd lib/openssl/ && ./Configure -static no-pinshared no-weak-ssl-ciphers no-ssl3 no-idea no-dtls1 && make clean && make -j4
cd lib/openssl/ && ./Configure $(openSSLBuildOpts) no-pinshared no-weak-ssl-ciphers no-ssl3 no-idea no-dtls1 && make clean && make -j4
else
@echo "Skipping building OpenSSL"
endif

0 comments on commit e82886a

Please sign in to comment.