# 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 code.
# 
# The Initial Developer of the Original Code is Zero-Knowledge 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)/makefiles/Makefile.vars

# Override and define new variables
ZK_DSPS := LibZk.dsp
ZK_PUBLIBS := libzk.a

ZK_CXXFLAGS  += -Wno-shadow

# Needs to be tested under solaris
ifeq (,$(findstring sunos,$(ZK_ARCH)))
   ZK_DEFS += -DZKSHELL_USE_GNU_READLINE=1
endif

ZK_INCS := \
	$(ZK_INCS) \
	$(END_OF_LIST)

ZK_ALL_SRCFILES := \
	net.c \
	zkAlloc.c \
	zkBase64.c \
	zkCStr.c \
	zkClock.c \
	zkCode.c \
	zkConfProto.c \
	zkConfig.c \
	zkDNS.c \
	zkDTStamp.c \
	zkDateTime.c \
	zkDebug.c \
	zkDir.c \
	zkDump.c \
	zkError.c \
	zkExpiryTable.c \
	zkFile.c \
	zkGraph.c \
	zkHash.c \
	zkLib.c \
	zkList.c \
	zkLog.c \
	zkMemBuf.c \
	zkMemPool.c \
	zkNameTable.c \
	zkPFork.c \
	zkQueue.c \
	zkSecure.c \
	zkSharedObject.c \
	zkShell.c \
	zkSignal.c \
	zkString.c \
	zkTrace.c \
	zkallocator.c \
	zkclientconsole.c \
	zkfile_rec.c \
	zkfile_replace.c \
	zkipc.c \
	zknbo.c \
	zks.c \
	zksem.c \
	zksfork.c \
	zkshm.c \
	zksocket.c \
	zkstats.c \
	zktimer.c \
	zkvheap.c \
	zkxml.c \
	zkLock.c \
	zkMutex.cpp \
	zkStatistic.cpp \
	zksmodule.c \
	zkserr.c \
	zkspid.c \
	$(END_OF_LIST)

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

# Add new targets or complement default target using :: rules


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


