# 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:: subdirs

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

# Override and define new variables
ZK_SUB_PROJECTS_Client := \
	libs \
	client \
	$(END_OF_LIST)


ZK_SUB_PROJECTS_Server := \
	include \
	libs \
	ndb \
	admin \
	fmg \
	frloded \
	frpostnews \
	frrandd \
	generic \
	keysplit \
	keyutils \
	kqd \
	laip \
	mail2news \
	maip \
	ndbutil \
	nidb \
	niqs \
	niss \
	nntpserver \
	nymtool \
	scalper.cgi \
	tools \
	wormhole \
	zkdbsrv \
	zkfingerd \
	zkidentd \
	zkinfod \
	zkkeyd \
	zknsa \
	zkshim \
	zkxfer \
	$(END_OF_LIST)

ZK_SUB_PROJECTS_AIP := \
	libs \
	admin \
	aip \
	zkinfod \
	$(END_OF_LIST)

# Only need to compile popmail on linux for now
ifneq (,$(findstring linux,$(ZK_ARCH)))
   ZK_SUB_PROJECTS_Server += popmail aip
endif

ZK_SUB_PROJECTS := $(ZK_SUB_PROJECTS_$(ZK_PROJECT))

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

# Add new targets or complement default target using :: rules
clean::
	-rm -rf $(ZK_PUBLIC_FREEDOM_INCLUDEDIR) $(ZK_PRIVATE_FREEDOM_INCLUDEDIR)
