Commit 04449b44 authored by Karel Slaný's avatar Karel Slaný

Merge branch 'develop'

parents c7b889e5 afaacd28
V2.x.x / (release date)
V2.2.0.2 / 15.5.2015
- Applied a hotfix from Joe Kucera fixing occasional Firefox crash.
- Fixed some javascript compatibility issues with new Firefox versions.
- Build system moved to autotools.
- Fixed Polish translation.
- The js-ctypes libraries are first sought in local extension directory
rather than in the system location.
V2.2.0.1 / 9.9.2014
- Bug-fix release for Mozilla Firefox only.
......
# Simple script that will setup some variables to be used for recursive build
# of dependent libraries like openssl, ldns and unbound.
# On Mac, 2.8 is required due to the use of CMAKE_OSX_ARCHITECTURES
# Requirement for 2.8 is specified on Mac branch below.
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(C++)
## Variables set by this script:
# OPENSSL_ARGS - args passed to openssl's ./Configure
# CONFIGURE_ARGS - args passed to autotools' ./configure (for ldns and unbound)
# LIB_CFLAGS - CFLAGS for dependent libraries
# OS_TARGET - target OS name build is made for
# STATIC_LINKING - whether to statically link openssl, ldns and unbound
# INCLUDE_LOC - where to search for header files
# LIBRARY_LOC - where to search for libraries
SET(LIB_CFLAGS "${LIB_CFLAGS} -fPIC")
SET(BUILD_MAC96 0)
SET(MAKE_CMD "make")
# If build arch is not explicitly set, use current
IF(NOT DEFINED TARGET_ARCH)
SET(TARGET_ARCH "${CMAKE_SYSTEM_PROCESSOR}")
SET(BUILD_MAC96 1)
SET(LIB_CFLAGS_MAC ${LIB_CFLAGS})
ENDIF()
# Set flags for dependent libraries, if/else hell on wheels
IF(TARGET_ARCH STREQUAL "amd64")
SET(LIB_CFLAGS "${LIB_CFLAGS} -m64")
SET(BUILD_64BIT 1)
ELSEIF(TARGET_ARCH STREQUAL "x86_64")
SET(LIB_CFLAGS "${LIB_CFLAGS} -m64")
SET(BUILD_64BIT 1)
ELSEIF(TARGET_ARCH MATCHES "^(i.86|x86)$")
SET(LIB_CFLAGS "${LIB_CFLAGS} -m32")
SET(BUILD_64BIT 0)
ELSE()
MESSAGE(SEND_ERROR "Unsupported architecture - '${TARGET_ARCH}'")
ENDIF()
# Check whether to disable static linking. Default is on.
IF(STATIC_LINKING STREQUAL "no")
MESSAGE("Linking dynamically")
ELSE()
SET(STATIC_LINKING "yes")
MESSAGE("Linking statically")
ENDIF()
IF(WIN32)
SET(OS_TARGET "WINDOWS")
SET(OPENSSL_ARGS "mingw ${LIB_CFLAGS}")
SET(CONFIGURE_ARGS "--cross-compile-prefix=i586-mingw32msvc-")
MESSAGE("WIN")
ELSEIF(UNIX)
IF(APPLE)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
SET(OS_TARGET "MAC")
SET(OSNAME "Darwin")
SET(OSNAME_LC "darwin")
IF(BUILD_MAC96)
SET(LIB_CFLAGS "${LIB_CFLAGS_MAC} -arch i386 -arch x86_64")
SET(OPENSSL_ARGS "darwin64-x86_64-cc ${LIB_CFLAGS}")
SET(CMAKE_OSX_ARCHITECTURES "i386;x86_64")
MESSAGE("APPLE i386;x86_64")
ELSEIF(BUILD_64BIT)
SET(OPENSSL_ARGS "darwin64-x86_64-cc ${LIB_CFLAGS}")
SET(CONFIGURE_ARGS "--target=x86_64-apple-darwin11")
SET(CMAKE_OSX_ARCHITECTURES "x86_64")
MESSAGE("APPLE x86_64")
ELSE()
SET(OPENSSL_ARGS "darwin-i386-cc ${LIB_CFLAGS}")
SET(CONFIGURE_ARGS "--target=i686-apple-darwin11")
SET(CMAKE_OSX_ARCHITECTURES "i386")
MESSAGE("APPLE i386")
ENDIF()
ELSE() # Linux
SET(OS_TARGET "UNIX")
IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
SET(MAKE_CMD "gmake")
SET(OSNAME "FreeBSD")
SET(OSNAME_LC "freebsd")
IF(BUILD_64BIT)
SET(OPENSSL_ARGS "BSD-x86_64 ${LIB_CFLAGS}")
SET(CONFIGURE_ARGS "--target=x86_64-pc-freebsd")
MESSAGE("FREEBSD x86_64")
ELSE()
ENDIF()
ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
SET(MAKE_CMD "make")
SET(OSNAME "Linux")
SET(OSNAME_LC "linux")
IF(BUILD_64BIT)
SET(OPENSSL_ARGS "linux-x86_64 ${LIB_CFLAGS}")
SET(CONFIGURE_ARGS "--target=x86_64-pc-linux-gnu")
MESSAGE("LINUX x86_64")
ELSE()
SET(OPENSSL_ARGS "linux-elf ${LIB_CFLAGS}")
SET(CONFIGURE_ARGS "--target=i686-pc-linux-gnu")
MESSAGE("LINUX x86")
ENDIF()
ELSE()
MESSAGE(SEND_ERROR "Unsupported *NIX derivative '${${CMAKE_SYSTEM_NAME}}'.")
ENDIF()
ENDIF()
ELSE()
MESSAGE(SEND_ERROR "Unsupported OS")
ENDIF()
# Recursive build using Makefile.main is the target
ADD_CUSTOM_TARGET(RecursiveBuild ALL)
# Calling Makefile.main passing the set variables on command line
ADD_CUSTOM_COMMAND(TARGET RecursiveBuild
COMMAND ${MAKE_CMD}
ARGS -f Makefile.main
LIB_CFLAGS=${LIB_CFLAGS}
OPENSSL_ARGS=${OPENSSL_ARGS}
CONFIGURE_ARGS=${CONFIGURE_ARGS}
OS_TARGET=${OS_TARGET}
CMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}
XPI_ARCH=${TARGET_ARCH}
BUILD_64BIT=${BUILD_64BIT}
BUILD_MAC96=${BUILD_MAC96}
OSNAME=${OSNAME}
OSNAME_LC=${OSNAME_LC}
MAKE_CMD=${MAKE_CMD}
STATIC_LINKING=${STATIC_LINKING}
INCLUDE_LOC=${INCLUDE_LOC}
LIBRARY_LOC=${LIBRARY_LOC}
)
## Process this file with automake to produce Makefile.in
# Scan for additional macro definitions.
#ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
SUBDIRS = \
static-libs \
core_js-ctypes \
core_native-msg \
core_npapi \
add-on
DOCUMENTS = \
Doc/DANE-TLSA_Validator_2.x-specification.odt \
Doc/DNSSEC_Validator_2.0-specification.odt \
Doc/DNSSEC_Validator_2.0-specification.pdf \
Doc/DNSSEC_Validator_2.0_validation_flowchart.dia \
Doc/DNSSEC_Validator_2.0_validation_flowchart.png
EXTRA_DIST = \
$(DOCUMENTS) \
Build \
CHANGELOG \
MSVS-build.bat \
authors.info \
autogen.sh \
build_osx_fat_autotools.sh \
scripts/install_chrome_add_payload.sh \
scripts/install_chrome_stub.sh \
install_osx_safari_add_payload.sh \
install_osx_safari_stub.sh
# ***** BEGIN LICENSE BLOCK *****
# Copyright 2011, 2012 CZ.NIC, z.s.p.o.
#
# Authors: Martin Straka <martin.straka@nic.cz>
#
# This file is part of DNSSEC Validator 2.0 Add-on.
#
# DNSSEC Validator 2.0 Add-on is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# DNSSEC Validator 2.0 Add-on is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# DNSSEC Validator 2.0 Add-on. If not, see <http://www.gnu.org/licenses/>.
# ***** END LICENSE BLOCK *****
OSNAME = FreeBSD
# Lower case.
OSNAME_LC = freebsd
MAKE_CMD = gmake
SHELL_CMD = bash
include Makefile.unix
# ***** BEGIN LICENSE BLOCK *****
# Copyright 2011, 2012 CZ.NIC, z.s.p.o.
#
# Authors:
# Karel Slany <karel.slany@nic.cz>
# Martin Straka <martin.straka@nic.cz>
#
# This file is part of DNSSEC Validator 2.0 Add-on.
#
# DNSSEC Validator 2.0 Add-on is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# DNSSEC Validator 2.0 Add-on is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# DNSSEC Validator 2.0 Add-on. If not, see <http://www.gnu.org/licenses/>.
# ***** END LICENSE BLOCK *****
# Defines the location of important files and directories.
# OSNAME -- Name of the operating system.
# OSNAME_LC -- Lower case operating system name.
BASEDIR := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
LIBS_ARCHIVE_DIR = libs-archives
LIBS_SRC_DIR = libs-src
#LIBS_BUILT_DIR ?= libs-built-$(OSNAME_LC)-$(HWARCH)
LIBS_BUILT_DIR ?= libs-built
OPENSSL_TARBALL = $(BASEDIR)/$(LIBS_ARCHIVE_DIR)/openssl.tar.gz
LDNS_TARBALL = $(BASEDIR)/$(LIBS_ARCHIVE_DIR)/ldns.tar.gz
UNBOUND_TARBALL = $(BASEDIR)/$(LIBS_ARCHIVE_DIR)/unbound.tar.gz
OPENSSL_DIR = $(BASEDIR)/$(LIBS_SRC_DIR)/openssl-1.0.1i
LDNS_DIR = $(BASEDIR)/$(LIBS_SRC_DIR)/ldns-1.6.17
UNBOUND_DIR = $(BASEDIR)/$(LIBS_SRC_DIR)/unbound-1.4.22
OPENSSL_LIB = $(BASEDIR)/$(LIBS_BUILT_DIR)/openssl
LDNS_LIB = $(BASEDIR)/$(LIBS_BUILT_DIR)/ldns
UNBOUND_LIB = $(BASEDIR)/$(LIBS_BUILT_DIR)/unbound
FIREBREATH_DIR = $(BASEDIR)/FireBreath
FIREBREATH_TAG = firebreath-1.6.0
PLUGIN_BUILD_DIR = $(FIREBREATH_DIR)/build
# ***** BEGIN LICENSE BLOCK *****
# Copyright 2011, 2012 CZ.NIC, z.s.p.o.
#
# Authors:
# Karel Slany <karel.slany@nic.cz>
# Martin Straka <martin.straka@nic.cz>
#
# This file is part of DNSSEC Validator 2.0 Add-on.
#
# DNSSEC Validator 2.0 Add-on is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# DNSSEC Validator 2.0 Add-on is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# DNSSEC Validator 2.0 Add-on. If not, see <http://www.gnu.org/licenses/>.
# ***** END LICENSE BLOCK *****
.PHONY: all clean-libwin postcompile scour-libwin
# Override default settings.
LIBS_BUILT_DIR = libs-win
include Makefile.static_libs
X86_MINGV_HOST = i586-mingw32msvc
X86_MINGW_PREFIX = $(X86_MINGV_HOST)-
X86_MINGW_CC = $(X86_MINGV_HOST)-gcc
X86_MINGW_LD = $(X86_MINGV_HOST)-ld
X86_MINGW_STRIP = $(X86_MINGV_HOST)-strip
X86_MINGW_RANLIB = $(X86_MINGV_HOST)-ranlib
MAKE_CMD = make
# Set cross-compilation flags
CROSSCOMPILE_OPENSSL_FLAGS = --cross-compile-prefix=$(X86_MINGW_PREFIX) mingw enable-static-engine
CROSSCOMPILE_PREPARATION_EXPORTS = export CC="$(X86_MINGW_CC)" && export LD="$(X86_MINGW_LD)" &&
CROSSCOMPILE_HOST_FLAGS = --host=$(X86_MINGV_HOST)
all: $(BUILD_STATIC_STEPS) postcompile
postcompile:
mkdir -p $(BASEDIR)/$(LIBS_BUILT_DIR)/windows/x86
cp $(OPENSSL_LIB)/lib/libcrypto.a $(BASEDIR)/$(LIBS_BUILT_DIR)/windows/x86
cp $(OPENSSL_LIB)/lib/libssl.a $(BASEDIR)/$(LIBS_BUILT_DIR)/windows/x86
cp $(LDNS_LIB)/lib/libldns.a $(BASEDIR)/$(LIBS_BUILT_DIR)/windows/x86
cp $(UNBOUND_LIB)/lib/libunbound.a $(BASEDIR)/$(LIBS_BUILT_DIR)/windows/x86
mkdir -p $(BASEDIR)/$(LIBS_BUILT_DIR)/windows/x86/ldns
cp $(LDNS_DIR)/ldns/config.h $(BASEDIR)/$(LIBS_BUILT_DIR)/windows/x86/ldns
cp $(LDNS_DIR)/ldns/net.h $(BASEDIR)/$(LIBS_BUILT_DIR)/windows/x86/ldns
# Clean those flags.
OPENSSL_ARGS =
clean-libwin: clean-static-libs
scour-libwin: scour-static-libs
# ***** BEGIN LICENSE BLOCK *****
# Copyright 2011, 2012 CZ.NIC, z.s.p.o.
#
# Authors: Martin Straka <martin.straka@nic.cz>
#
# This file is part of DNSSEC Validator Add-on.
#
# DNSSEC Validator Add-on is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# DNSSEC Validator Add-on is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# DNSSEC Validator Add-on. If not, see <http://www.gnu.org/licenses/>.
# ***** END LICENSE BLOCK *****
.PHONY: all libs-build sys_windows_openssl sys_windows_ldns_pre sys_windows_ldns_post sys_windows_unbound_pre sys_windows_unbound_post
OPENSSL = openssl-1.0.1h
LDNS = ldns-1.6.17
UNBOUND = unbound-1.4.22
LIBS_SOURCE = libs-source
OPENSSL_TARBALL = $(LIBS_SOURCE)/openssl.tar.gz
LDNS_TARBALL = $(LIBS_SOURCE)/ldns.tar.gz
UNBOUND_TARBALL = $(LIBS_SOURCE)/unbound.tar.gz
BASEDIR := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
OPENSSL_DIR := $(BASEDIR)/libswin/openssl-1.0.1h
LDNS_DIR := $(BASEDIR)/libswin/ldns-1.6.17
UNBOUND_DIR := $(BASEDIR)/libswin/unbound-1.4.22
OPENSSL_LIB := $(BASEDIR)/libswin/openssl
LDNS_LIB := $(BASEDIR)/libswin/ldns
UNBOUND_LIB := $(BASEDIR)/libswin/unbound
X86_MINGV_HOST = i586-mingw32msvc
X86_MINGW_PREFIX = i586-mingw32msvc-
X86_MINGW_CC = i586-mingw32msvc-gcc
X86_MINGW_LD = i586-mingw32msvc-ld
X86_MINGW_STRIP = i586-mingw32msvc-strip
X86_MINGW_RANLIB = i586-mingw32msvc-ranlib
all: libs-build sys_windows_openssl sys_windows_ldns_pre sys_windows_ldns_post sys_windows_unbound_pre sys_windows_unbound_post
libs-build: submodules libswin $(OPENSSL_DIR) $(LDNS_DIR) $(UNBOUND_DIR)
submodules:
git clone https://gitlab.labs.nic.cz/mstraka/dnssec-libs.git $(LIBS_SOURCE)
libswin:
mkdir libswin
## openssl
$(OPENSSL_DIR): $(OPENSSL_TARBALL)
tar xzf $< -C libswin
## ldns
$(LDNS_DIR): $(LDNS_TARBALL)
tar xzf $< -C libswin
## unbound
$(UNBOUND_DIR): $(UNBOUND_TARBALL)
tar xzf $< -C libswin
sys_windows_openssl:
@echo '### Compiling library for Windows... ###'
rm -rf libswin/windows
cd libswin && mkdir windows && cd windows && mkdir x86 && cd x86 && mkdir ldns && cd .. && cd ..
cd libswin && cd $(OPENSSL) && ./Configure --cross-compile-prefix=$(X86_MINGW_PREFIX) mingw enable-static-engine && make && ln -s . lib && cd .. && ln -s $(OPENSSL) openssl && cp $(OPENSSL)/libssl.a windows/x86 && cp $(OPENSSL)/libcrypto.a windows/x86
sys_windows_ldns_pre:
cd libswin && cd $(LDNS) && export CC="$(X86_MINGW_CC)" && export LD="$(X86_MINGW_LD)" && ./configure --disable-shared --with-ssl=../$(OPENSSL) --host=$(X86_MINGV_HOST) && make -i || @echo 'Continue if error...'
sys_windows_ldns_post:
cd libswin && ln -s $(LDNS) ldns && cd $(LDNS) && $(X86_MINGW_RANLIB) .libs/libldns.a && cp .libs/libldns.a ../windows/x86 && cp ldns/config.h ../windows/x86/ldns && cp ldns/net.h ../windows/x86/ldns && cd ..
sys_windows_unbound_pre:
cd libswin && cd $(UNBOUND) && export CC="$(X86_MINGW_CC)" && export LD="$(X86_MINGW_LD)" && ./configure --disable-shared --with-libunbound-only --with-ssl=../$(OPENSSL) --with-ldns=../$(LDNS) --host=$(X86_MINGV_HOST) && make -i || @echo 'Continue if error...'
sys_windows_unbound_post:
cd libswin && ln -s $(UNBOUND) unbound && cd $(UNBOUND) && $(X86_MINGW_RANLIB) .libs/libunbound.a && cp .libs/libunbound.a ../windows/x86 && cd ..
@echo '### Now you can build the library for Windows... ###'
clean:
rm -rf libswin
# ***** BEGIN LICENSE BLOCK *****
# Copyright 2011, 2012 CZ.NIC, z.s.p.o.
#
# Authors: Martin Straka <martin.straka@nic.cz>
#
# This file is part of DNSSEC Validator 2.0 Add-on.
#
# DNSSEC Validator 2.0 Add-on is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# DNSSEC Validator 2.0 Add-on is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# DNSSEC Validator 2.0 Add-on. If not, see <http://www.gnu.org/licenses/>.
# ***** END LICENSE BLOCK *****
OSNAME = Linux
# Lower case.
OSNAME_LC = linux
MAKE_CMD = make
SHELL_CMD = bash
include Makefile.unix
This diff is collapsed.
.PHONY: all clean download-git-firebreath scour plugin
all: download-git-firebreath plugin
CFLAGS=-fPIC
export CFLAGS
# Sets location variables.
include Makefile.layout
# Different NPAPI plugin names based on OS
# PLUGIN_BINARY_TREE is necessary because Mac has dirtree structure instead of
# a single file.
MAKE_CMD ?= make
OSNAME ?= UNIX
OSNAME_LC ?= unix
HWARCH = default
CORE_TGT = sys_unknown
XPI_TGT = xpi_unknown
ifeq ($(OS_TARGET),UNIX)
MAKE_OS := Makefile.unix
ifeq ($(BUILD_64BIT),1)
HWARCH = x86_64
CORE_TGT := sys_$(OSNAME)_$(HWARCH)
XPI_TGT = xpi_$(HWARCH)
CFLAGS = -m64
else
HWARCH = x86
CORE_TGT := sys_$(OSNAME)_$(HWARCH)
XPI_TGT = xpi_$(HWARCH)
CFLAGS = -m32
endif
endif
ifeq ($(OS_TARGET),MAC)
MAKE_OS := Makefile.mac
ifeq ($(BUILD_MAC96),1)
CORE_TGT := sys_Darwin
XPI_TGT := xpi
CFLAGS = -arch i386 -arch x86_64
else
ifeq ($(BUILD_64BIT),1)
HWARCH = x86_64
CORE_TGT := sys_Darwin_$(HWARCH)
XPI_TGT = xpi_$(HWARCH)
CFLAGS = -m64 -arch x86_64
else
HWARCH = x86
CORE_TGT := sys_Darwin_$(HWARCH)
XPI_TGT = xpi_$(HWARCH)
CFLAGS = -m32 -arch i386
endif
endif
endif
ifeq ($(OS_TARGET),WINDOWS)
MAKE_OS := Makefile.win
HWARCH = x86
CORE_TGT := sys_WINNT_$(HWARCH)
XPI_TGT = xpi_$(HWARCH)
endif
## uncomment to make plug-in build verbose - shows gcc invocations etc.
#PLUGIN_VERBOSE_BUILD = VERBOSE=1
## Configuration is one of Debug, Release, MinSizeRel and RelWithDebInfo.
## You need to run 'make prepmake' after changing.
PLUGIN_CONFIGURATION ?= MinSizeRel
download-git-firebreath:
rm -rf $(FIREBREATH_DIR)
git clone https://github.com/firebreath/FireBreath.git $(FIREBREATH_DIR)
cd $(FIREBREATH_DIR); git reset --hard 66af0df36be98e9fcf7ee196fe5c275e54752ae8; cd .. # 2014-06-24 17:48:14
#git reset --hard origin/master
cd ..
git submodule update --init --recursive
#(cd $(FIREBREATH_DIR) && git checkout $(FIREBREATH_TAG))
# Build the plug-in.
plugin:
CFLAGS="$(CFLAGS)" $(MAKE_CMD) -f Makefile.static_libs OPENSSL_ARGS="$(OPENSSL_ARGS)" CONFIGURE_ARGS="$(CONFIGURE_ARGS)" OSNAME=$(OSNAME) OSNAME_LC=$(OSNAME_LC) HWARCH=$(HWARCH) MAKE_CMD=$(MAKE_CMD) STATIC_LINKING=$(STATIC_LINKING)
CFLAGS="$(CFLAGS)" $(MAKE_CMD) -f $(MAKE_OS) OSNAME=$(OSNAME) OSNAME_LC=$(OSNAME_LC) HWARCH=$(HWARCH) MAKE_CMD=$(MAKE_CMD) INCLUDE_LOC=$(INCLUDE_LOC) LIBRARY_LOC=$(LIBRARY_LOC) STATIC_LINKING=$(STATIC_LINKING) $(CORE_TGT)
CFLAGS="$(CFLAGS)" $(MAKE_CMD) -f $(MAKE_OS) OSNAME=$(OSNAME) OSNAME_LC=$(OSNAME_LC) HWARCH=$(HWARCH) MAKE_CMD=$(MAKE_CMD) INCLUDE_LOC=$(INCLUDE_LOC) LIBRARY_LOC=$(LIBRARY_LOC) $(XPI_TGT)
# Cleans built files.
clean:
$(MAKE_CMD) -f Makefile.static_libs clean-static-libs
rm -rf $(FIREBREATH_DIR)
rm -rf CMakeCache.txt CMakeFiles/ cmake_install.cmake
# Cleans even more.
scour: clean
$(MAKE_CMD) -f Makefile.static_libs scour-static-libs
# ***** BEGIN LICENSE BLOCK *****
# Copyright 2011, 2012 CZ.NIC, z.s.p.o.
#
# Authors:
# Karel Slany <karel.slany@nic.cz>
# Martin Straka <martin.straka@nic.cz>
#
# This file is part of DNSSEC Validator 2.0 Add-on.
#
# DNSSEC Validator 2.0 Add-on is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# DNSSEC Validator 2.0 Add-on is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# DNSSEC Validator 2.0 Add-on. If not, see <http://www.gnu.org/licenses/>.
# ***** END LICENSE BLOCK *****
.PHONY: all clean-static-libs download-git-libraries scour-static-libs
include Makefile.layout
STATIC_LINKING ?= yes
BUILD_STATIC_STEPS =
ifeq ($(STATIC_LINKING),yes)
# Build static libraries.
BUILD_STATIC_STEPS += download-git-libraries $(OPENSSL_LIB) $(LDNS_LIB) $(UNBOUND_LIB)
endif
all: $(BUILD_STATIC_STEPS)
download-git-libraries:
rm -rf $(LIBS_ARCHIVE_DIR)
git clone https://gitlab.labs.nic.cz/mstraka/dnssec-libs.git $(LIBS_ARCHIVE_DIR)
$(LIBS_SRC_DIR):
mkdir $@
## openssl
$(OPENSSL_LIB): $(OPENSSL_DIR)
# sed on OS X does not handle the 0xA9 (copyright) character well
(cd $< && sed -e 's/\(^"BSD-[^"]*",[^g]*\)gcc\(.*\$\)/\1cc\2/g' < Configure > ConfigureBSD || cp Configure ConfigureBSD; chmod +x ConfigureBSD)
(cd $< && ./ConfigureBSD no-shared no-krb5 --prefix=$@ $(OPENSSL_ARGS) $(CROSSCOMPILE_OPENSSL_FLAGS) && $(MAKE_CMD) -j1 && $(MAKE_CMD) -j1 install && $(MAKE_CMD) clean)
$(OPENSSL_DIR): $(OPENSSL_TARBALL) $(LIBS_SRC_DIR)
tar xzf $< -C $(LIBS_SRC_DIR)
## ldns
$(LDNS_LIB): $(LDNS_DIR) $(OPENSSL_LIB)
(cd $< && $(CROSSCOMPILE_PREPARATION_EXPORTS) \
CFLAGS="$(LIB_CFLAGS)" ./configure --disable-shared $(CROSSCOMPILE_HOST_FLAGS) \
--with-ssl=$(OPENSSL_LIB) --disable-ldns-config --without-pyldnsx \
--with-pic --prefix=$@ $(CONFIGURE_ARGS) && \
CFLAGS="$(CFLAGS)" $(MAKE_CMD) && $(MAKE_CMD) install)
$(LDNS_DIR): $(LDNS_TARBALL) $(LIBS_SRC_DIR)
tar xzf $< -C $(LIBS_SRC_DIR)
## unbound
$(UNBOUND_LIB): $(UNBOUND_DIR) $(LDNS_LIB) $(OPENSSL_LIB)
(cd $< && $(CROSSCOMPILE_PREPARATION_EXPORTS) \
CFLAGS="$(LIB_CFLAGS)" ./configure --disable-shared $(CROSSCOMPILE_HOST_FLAGS) \
--with-ssl=$(OPENSSL_LIB) --with-ldns=$(LDNS_LIB) --without-libevent \
--with-pic --prefix=$@ $(CONFIGURE_ARGS) --with-libunbound-only && \
CFLAGS="$(CFLAGS)" $(MAKE_CMD) && $(MAKE_CMD) install)
$(UNBOUND_DIR): $(UNBOUND_TARBALL) $(LIBS_SRC_DIR)
tar xzf $< -C $(LIBS_SRC_DIR)
clean-static-libs:
rm -rf $(LIBS_BUILT_DIR)
rm -rf $(LIBS_SRC_DIR)
scour-static-libs: clean-static-libs
rm -rf $(LIBS_ARCHIVE_DIR)
This diff is collapsed.
This diff is collapsed.
@PACKAGE_VERSION@
#ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
TARGETS = $(EMPTY)
WORKDIRS = $(EMPTY)
BUILT_SOURCES = $(EMPTY)
CLEANFILES = $(EMPTY)
DIST_FILES = $(EMPTY)
do_subst = sed \
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
-e 's,[@]OS_TARGET[@],$(OS_TARGET),g' \
-e 's,[@]VERSION[@],$(PACKAGE_VERSION),g' \
-e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
-e 's,[@]XPCOM_ABI_SUFF[@],$(XPCOM_ABI_SUFF),g'
include Makefile.content
include Makefile.mozz
include Makefile.cr_dnssec
include Makefile.cr_tlsa
include Makefile.saf
if EXTPKG_CR_NM
TARGETS += \
install_chrome_variables.sh
install_chrome_variables.sh: install_chrome_variables.sh.in Makefile
$(do_subst) < $< > $@
endif
EXTRA_DIST = \
install_chrome_variables.sh.in \
Makefile.content \
Makefile.mozz \
Makefile.cr_dnssec \
Makefile.cr_tlsa \
Makefile.saf \
$(DIST_FILES)
clean-local:
for d in $(WORKDIRS); do \
rm -rf $$d; \
done
all: $(TARGETS)
This diff is collapsed.
dnssec_cs_CZ_LOCALE_CR = \
$(top_srcdir)/add-on/chrome-dnssec/common/_locales/cs/messages.json
dnssec_de_DE_LOCALE_CR = \
$(top_srcdir)/add-on/chrome-dnssec/common/_locales/de/messages.json
dnssec_en_US_LOCALE_CR = \
$(top_srcdir)/add-on/chrome-dnssec/common/_locales/en/messages.json
dnssec_pl_PL_LOCALE_CR = \
$(top_srcdir)/add-on/chrome-dnssec/common/_locales/pl/messages.json
dnssec_validator_LOCALES_CR = \
$(dnssec_cs_CZ_LOCALE_CR) \
$(dnssec_de_DE_LOCALE_CR) \
$(dnssec_en_US_LOCALE_CR) \
$(dnssec_pl_PL_LOCALE_CR)
dnssec_validator_CONTENT_CR = \
$(top_srcdir)/add-on/chrome-dnssec/common/detail-info.html \
$(top_srcdir)/add-on/chrome-dnssec/common/dnssec_action.gif \
$(top_srcdir)/add-on/chrome-dnssec/common/dnssec_action.png \
$(top_srcdir)/add-on/chrome-dnssec/common/dnssec_bogus.png \
$(top_srcdir)/add-on/chrome-dnssec/common/dnssec_error.png \
$(top_srcdir)/add-on/chrome-dnssec/common/dnssec_init.png \
$(top_srcdir)/add-on/chrome-dnssec/common/dnssec_ip.png \
$(top_srcdir)/add-on/chrome-dnssec/common/dnssec_no.png \
$(top_srcdir)/add-on/chrome-dnssec/common/dnssec_off.png \
$(top_srcdir)/add-on/chrome-dnssec/common/dnssec_orange.png \
$(top_srcdir)/add-on/chrome-dnssec/common/dnssec_valid.png \
$(top_srcdir)/add-on/chrome-dnssec/common/icon.png \
$(top_srcdir)/add-on/chrome-dnssec/common/popup.html \
$(top_srcdir)/add-on/chrome-dnssec/common/popup.js \
$(top_srcdir)/add-on/chrome-dnssec/common/popup2.js
dnssec_validator_BALLAST_CR = \
$(top_srcdir)/add-on/chrome-dnssec/common/COPYING
if EXTPKG_CR_NM
TARGETS += \
dvcnm-directory-stamp