# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
# 
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
# 
# The Original Code is Freedom(R) code.
# 
# The Initial Developer of the Original Code is Zero-Knowledge(R) Systems,
# Inc.  Portions created by Zero-Knowledge are Copyright (C) 2000
# Zero-Knowledge Systems, Inc.  All Rights Reserved.
# 
# Contributor(s):

# 
# Default target
#

default::  libs

# Get the variables definition
include $(ZK_ROOT)/freedom/makefiles/Makefile.vars

# Override and define new variables
ZK_DSPS := frkeyqry.dsp
ZK_PUBLIBS := libfrkeyqry.a

ZK_INCS := \
	-I$(ZK_FREEDOM_ROOT)libs$(/)frcrypt$(/)include \
	-I$(ZK_ROOT)libzkrand$(/)include \
	-I$(ZK_FREEDOM_ROOT)libs$(/)frent$(/)include \
	-I$(ZK_FREEDOM_ROOT)libs$(/)frpktfmt$(/)include \
	-I$(ZK_FREEDOM_ROOT)libs$(/)frsec$(/)include \
	-I$(ZK_FREEDOM_ROOT)ndb$(/)include \
	-I$(ZK_ROOT)lib3rd$(/)openssl$(/)include \
	-I$(ZK_ROOT)libzk$(/)include \
	$(ZK_INCS) \
	$(END_OF_LIST)

ZK_ALL_SRCFILES_Server := \
	keydb.c \
	$(END_OF_LIST)

ZK_ALL_SRCFILES := \
	$(ZK_ALL_SRCFILES_$(ZK_PROJECT)) \
	getkey.c \
	getkey2.c \
	mkdb.c \
	qry.c \
	srv.c \
	updcli.c \
	updcom.c \
	updsrv.c \
	vrfy.c \
	$(END_OF_LIST)

PKG_TMPL =         \
	pubkeydb-nuked.local.conf.tmpl \
	pubkeydb-nuked.remote.conf.tmpl \
	pubkeydb.local.conf.tmpl \
	pubkeydb.remote.conf.tmpl \
	pubkeydb-kqd.local.conf.tmpl \
	pubkeydb-kqd.remote.conf.tmpl \
	$(END_OF_LIST)

# Get the target rules
include $(ZK_ROOT)/freedom/makefiles/Makefile.targs

# Add new targets or complement default target using :: rules
template: default
	@$(ZK_SCRIPTDIR)/promoteFiles.pl . $(ZK_PKG_FREEDOM_ROOT)/etc/db $(PKG_TMPL)

package:: template
solpkg: template

# Specify dependencies
$(ZK_BUILDDIR_PUBLIB)/libfrkeyqry.a: $(ZK_FULLCOBJS)


