Makefile revision 1bed1e203acaf911cbb9635756652870ede766ff
c81d47afd05baeb768e2f032636019b717899efdceastha# The contents of this file are subject to the terms of the Common Development and
c81d47afd05baeb768e2f032636019b717899efdceastha# Distribution License (the License). You may not use this file except in compliance with the
c81d47afd05baeb768e2f032636019b717899efdceastha# You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
c81d47afd05baeb768e2f032636019b717899efdceastha# specific language governing permission and limitations under the License.
c81d47afd05baeb768e2f032636019b717899efdceastha# When distributing Covered Software, include this CDDL Header Notice in each file and include
c81d47afd05baeb768e2f032636019b717899efdceastha# the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
c81d47afd05baeb768e2f032636019b717899efdceastha# Header, with the fields enclosed by brackets [] replaced by your own identifying
c81d47afd05baeb768e2f032636019b717899efdceastha# information: "Portions copyright [year] [name of copyright owner]".
c81d47afd05baeb768e2f032636019b717899efdceastha# Copyright 2014 - 2015 ForgeRock AS.
c81d47afd05baeb768e2f032636019b717899efdceastha# make options:
c81d47afd05baeb768e2f032636019b717899efdceastha# 64=1 builds 64bit binary
c81d47afd05baeb768e2f032636019b717899efdceastha# DEBUG=1 builds debug binary version
c81d47afd05baeb768e2f032636019b717899efdceastha REVISION := $(shell svn info . | findstr "Revision:")
c81d47afd05baeb768e2f032636019b717899efdceastha IDENT_DATE := $(shell powershell get-date -format "{dd.MM.yyyy}")
PATHSEP=/
SUB=%
COMPILEOPTS=-c -o $@
OBJ=o
SED_ROPT := r
OS_ARCH_EXT :=
OS_BITS :=
CFLAGS := $(COMPILEFLAG)I.$(PS)source $(COMPILEFLAG)I.$(PS)zlib $(COMPILEFLAG)I.$(PS)expat $(COMPILEFLAG)I.$(PS)pcre \
SOURCES := $(filter-out $(ADMIN_SOURCES), $(wildcard source/*.c)) $(wildcard expat/*.c) $(wildcard pcre/*.c) $(wildcard zlib/*.c)
$(TEST_OBJECTS): CFLAGS += $(COMPILEFLAG)I.$(PS)cmocka $(COMPILEFLAG)I.$(PS)tests $(COMPILEFLAG)I.$(PS)$(OBJDIR)$(PS)tests \
SED_ROPT := E
VERSION_NUM := $(shell $(ECHO) $(VERSION) | $(SED) -$(SED_ROPT) "s/^([.0-9]*)-.*/\1/g" | $(SED) -$(SED_ROPT) "s/\./\,/g")
$(SED) -$(SED_ROPT) "/.*static.+/d" $(TEST_FILES) | $(SED) -$(SED_ROPT)n "/.*\(void[ \t]*\*\*[ \t]*state\)/p" | sed -$(SED_ROPT) "s/\{/\;/g" > $(OBJDIR)$(PS)tests$(PS)tests.h.template
$(SED) -$(SED_ROPT)n "s/void (test_.*[^\(])\(.*/cmocka_unit_test(\1),/p" $(OBJDIR)$(PS)tests$(PS)tests.h.template >> $(OBJDIR)$(PS)tests$(PS)tests.h
$(CD) $(OBJDIR) && $(EXEC)agentadmin --a Apache_v24_$(OS_ARCH)$(OS_ARCH_EXT)$(OS_BITS)_$(VERSION).zip web_agents
$(CD) $(OBJDIR) && $(EXEC)agentadmin --a Apache_v22_$(OS_ARCH)$(OS_ARCH_EXT)$(OS_BITS)_$(VERSION).zip web_agents
$(CD) $(OBJDIR) && $(EXEC)agentadmin --a Varnish_v4_$(OS_ARCH)$(OS_ARCH_EXT)$(OS_BITS)_$(VERSION).zip web_agents
-$(CP) $(OBJDIR)$(PS)web_agents$(PS)varnish3_agent$(PS)config$(PS)agent.vcl3.template $(OBJDIR)$(PS)web_agents$(PS)varnish3_agent$(PS)config$(PS)agent.vcl.template
$(CD) $(OBJDIR) && $(EXEC)agentadmin --a Varnish_v3_$(OS_ARCH)$(OS_ARCH_EXT)$(OS_BITS)_$(VERSION).zip web_agents