Makefile revision 2d7e8507f5e77f2dc490708152058063edc313e5
60c9fc413e77110e71b7e8c41ffbc645b4ed90b4Julian Kornberger# The contents of this file are subject to the terms of the Common Development and
88d63c94a94060017febcabb0862b11ed3685f6aDaniel Couto Vale# Distribution License (the License). You may not use this file except in compliance with the
5c4c13ac875d79def115ce3d8443d4ec87b3252aJulian Kornberger# You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
5c4c13ac875d79def115ce3d8443d4ec87b3252aJulian Kornberger# specific language governing permission and limitations under the License.
db7b1bfd41eb01238f00c7df022f4c11d6414e8cEugen Kuksa# When distributing Covered Software, include this CDDL Header Notice in each file and include
0af513ab5680818fba780f05ef7cf16e0c0cb0d8henning mueller# the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
827e98b08be3acd813ab859061f7e6318b7f8abdDaniel Couto Vale# Header, with the fields enclosed by brackets [] replaced by your own identifying
827e98b08be3acd813ab859061f7e6318b7f8abdDaniel Couto Vale# information: "Portions copyright [year] [name of copyright owner]".
827e98b08be3acd813ab859061f7e6318b7f8abdDaniel Couto Vale# Copyright 2014 - 2015 ForgeRock AS.
fb0fc9c7ffa0a722fec20358a243cc42af57a4fbhenning mueller# make options:
5c4c13ac875d79def115ce3d8443d4ec87b3252aJulian Kornberger# 64=1 builds 64bit binary
5c4c13ac875d79def115ce3d8443d4ec87b3252aJulian Kornberger# DEBUG=1 builds debug binary version
0af513ab5680818fba780f05ef7cf16e0c0cb0d8henning mueller REVISION := $(shell svn info . | findstr "Revision:")
0af513ab5680818fba780f05ef7cf16e0c0cb0d8henning mueller IDENT_DATE := $(shell powershell get-date -format "{dd.MM.yyyy}")
88d63c94a94060017febcabb0862b11ed3685f6aDaniel Couto Vale REVISION := $(shell svn info . | grep Revision:)
fe90e1e1ecaa3e8916cdb1bac8cadb8daf9631c3henning muellerCFLAGS := $(COMPILEFLAG)I.$(PS)source $(COMPILEFLAG)I.$(PS)zlib $(COMPILEFLAG)I.$(PS)expat $(COMPILEFLAG)I.$(PS)pcre \
60c9fc413e77110e71b7e8c41ffbc645b4ed90b4Julian Kornberger $(COMPILEFLAG)DHAVE_EXPAT_CONFIG_H $(COMPILEFLAG)DHAVE_PCRE_CONFIG_H
60c9fc413e77110e71b7e8c41ffbc645b4ed90b4Julian KornbergerAPACHE22_SOURCES := source/apache/agent22.c
60c9fc413e77110e71b7e8c41ffbc645b4ed90b4Julian KornbergerADMIN_SOURCES := source/admin.c source/admin_iis.c
60c9fc413e77110e71b7e8c41ffbc645b4ed90b4Julian KornbergerSOURCES := $(filter-out $(ADMIN_SOURCES), $(wildcard source/*.c)) $(wildcard expat/*.c) $(wildcard pcre/*.c) $(wildcard zlib/*.c)
6ccbbaf26068a589a0954998a9398f450f49aa15Julian KornbergerOUT_OBJS := $(addprefix $(OBJDIR)/,$(OBJECTS))
6ccbbaf26068a589a0954998a9398f450f49aa15Julian KornbergerADMIN_OBJECTS := $(ADMIN_SOURCES:.c=.$(OBJ))
fb0fc9c7ffa0a722fec20358a243cc42af57a4fbhenning muellerADMIN_OUT_OBJS := $(addprefix $(OBJDIR)/,$(ADMIN_OBJECTS))
fb0fc9c7ffa0a722fec20358a243cc42af57a4fbhenning muellerAPACHE_OBJECTS := $(APACHE_SOURCES:.c=.$(OBJ))
60c9fc413e77110e71b7e8c41ffbc645b4ed90b4Julian KornbergerAPACHE22_OBJECTS := $(APACHE22_SOURCES:.c=.$(OBJ))
60c9fc413e77110e71b7e8c41ffbc645b4ed90b4Julian KornbergerAPACHE_OUT_OBJS := $(addprefix $(OBJDIR)/,$(APACHE_OBJECTS))
88d63c94a94060017febcabb0862b11ed3685f6aDaniel Couto ValeAPACHE22_OUT_OBJS := $(addprefix $(OBJDIR)/,$(APACHE22_OBJECTS))
60c9fc413e77110e71b7e8c41ffbc645b4ed90b4Julian KornbergerIIS_OUT_OBJS := $(addprefix $(OBJDIR)/,$(IIS_OBJECTS))
60c9fc413e77110e71b7e8c41ffbc645b4ed90b4Julian KornbergerVARNISH_OBJECTS := $(VARNISH_SOURCES:.c=.$(OBJ))
60c9fc413e77110e71b7e8c41ffbc645b4ed90b4Julian KornbergerVARNISH_OUT_OBJS := $(addprefix $(OBJDIR)/,$(VARNISH_OBJECTS))
60c9fc413e77110e71b7e8c41ffbc645b4ed90b4Julian Kornberger$(APACHE_OUT_OBJS): CFLAGS += $(COMPILEFLAG)Iextlib/$(OS_ARCH)/apache24/include $(COMPILEFLAG)Iextlib/$(OS_ARCH)_$(OS_MARCH)/apache24/include -DAPACHE2 -DAPACHE24
60c9fc413e77110e71b7e8c41ffbc645b4ed90b4Julian Kornberger$(VARNISH_OUT_OBJS): CFLAGS += $(COMPILEFLAG)Iextlib/$(OS_ARCH)/varnish/include