495 lines
13 KiB
Makefile
495 lines
13 KiB
Makefile
##############################################################################
|
|
#
|
|
# (C) Copyright 2003 Novell, Inc.
|
|
# All Rights Reserved.
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
# License as published by the Free Software Foundation.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, contact Novell, Inc.
|
|
#
|
|
# To contact Novell about this file by physical or electronic mail,
|
|
# you may find current contact information at www.novell.com
|
|
#
|
|
##############################################################################
|
|
|
|
###########################################################################
|
|
# This defines what MODULES are being built for this LIBRARY
|
|
#
|
|
# $Author: bbhanuprakash $
|
|
# $Date: 2008-03-04 15:24:09 +0530 (Tue, 04 Mar 2008) $
|
|
#
|
|
# $RCSfile$
|
|
# $Revision: 2291 $
|
|
#
|
|
###########################################################################
|
|
MODULE_VERSION=15
|
|
|
|
TMPSUBSCRIPT:=/tmp/$${USER}.library.$${PPID}
|
|
|
|
#--------------------------------------------------------------------------
|
|
# If the version number is not defined here, the general product version
|
|
# number will be used (defined in bldVersion.bld)
|
|
#
|
|
# major version 1 to 99
|
|
# minor version 1 to 99
|
|
# sub version 1 to 26
|
|
#--------------------------------------------------------------------------
|
|
#MAJOR_VERSION=
|
|
#MINOR_VERSION=
|
|
#SUB_VERSION=
|
|
|
|
#--------------------------------------------------------------------------
|
|
# Build OPTIONS
|
|
#--------------------------------------------------------------------------
|
|
BUILD_WITH_KERNEL_FLAGS=1
|
|
|
|
#set to 0 if you are NOT using source code control
|
|
IS_USING_SOURCE_CONTROL=1
|
|
|
|
#Set to ONE if you want the linked files to be copied to the SDK/BIN directory.
|
|
COPY_TO_SDK_BIN=1
|
|
|
|
#set to ONE if you only want to copy the OPTIMIZED version to SDK/BIN.
|
|
COPY_OPTIMIZED_ONLY=0
|
|
|
|
#Set this to ONE if you are building a NETWARE version independent NLM
|
|
#(not NETWARE version specific)
|
|
NETWARE_VERSION_INDEPENDENT=1
|
|
|
|
#if ONE include the NETWARE .H files in the compiler search paths.
|
|
USE_NETWARE_INCLUDES=1
|
|
|
|
#if ONE include the NETWARE import file at LINK time
|
|
USE_NETWARE_IMPORTS=1
|
|
|
|
#If ONE IMPORT the LIBNSS APIs and include in the search path SDK/LIBRARY
|
|
#and SDK/PUBLIC
|
|
IMPORT_INDEPENDENT_LIBNSS=1
|
|
|
|
#If ONE include in the search path SDK/LIBRARY and SDK/PUBLIC
|
|
USE_LIBNSS_INCLUDES=1
|
|
|
|
#If ONE then LINK with the NSS library and include all of the NSS library
|
|
#directories in the compiler search paths. This includes the SDK/PUBLIC,
|
|
#SDK/INCLUDE, SDK/INTERNAL, LIBRARY/SRC directories.
|
|
LINK_WITH_NSSLIB=0
|
|
|
|
#if ONE then IMPORT the NSS library and COMN layer APIS and include the
|
|
#SDK/PUBLIC directory in the compiler search paths.
|
|
IMPORT_NSSLIB=1
|
|
|
|
#If ONE and (LINK_WITH_NSSLIB==1 or IMPORT_NSSLIB==1) then do the same
|
|
#operation to the NSSLIB area you are doing to the local area.
|
|
CHECK_NSSLIB=0
|
|
|
|
#If ONE and (CHECK_NSSLIB==1) then we will clean the NSSLIB area when we
|
|
#clean the local area.
|
|
CLEAN_NSSLIB=0
|
|
|
|
#if ONE and (IMPORT_NSSLIB==1) then include the SDK/INCLUDE directory in
|
|
#the compiler search paths
|
|
USE_NSS_SDK_INCLUDES=1
|
|
|
|
#if ONE and (IMPORT_NSSLIB==1) then include the SDK/COMNSA directory in
|
|
#the compiler search paths
|
|
USE_NSS_SDK_COMNSA_INCLUDES=1
|
|
|
|
#if ONE and (IMPORT_NSSLIB==1) then include the SDK/INTERNAL directory in
|
|
#the compiler search paths
|
|
USE_NSS_SDK_INTERNAL_INCLUDES=1
|
|
|
|
|
|
#if ONE then do NOT import the NSS COMMON layer APIs
|
|
DONT_IMPORT_COMMON_LAYER=1
|
|
|
|
#if ONE, compile and link with the NETWARE sdk environment.
|
|
USE_NETWARE_SDK=1
|
|
|
|
#if ONE, include DS headers.
|
|
USE_NDS_INCLUDES=1
|
|
|
|
#if ONE, do LANGUAGE ENABLING processing
|
|
DO_LANGUAGE_ENABLING=1
|
|
|
|
#Set to null (i.e. no value) to not add XDC data to the NLM. For most
|
|
#NetWare 5.0 NLMs, the value should be -u.
|
|
MOAB_XDC_TOOL_OPTION=-n
|
|
|
|
#**************************************************************************
|
|
# Global NAME and DIRECTORY definitions
|
|
#**************************************************************************
|
|
SOURCE_DIRECTORIES=\
|
|
debug \
|
|
id \
|
|
eDir \
|
|
fsm \
|
|
guid \
|
|
latch \
|
|
linux \
|
|
misc \
|
|
os \
|
|
parse \
|
|
stdio \
|
|
stdlib \
|
|
unicode \
|
|
utc \
|
|
wio
|
|
|
|
# tstlib\
|
|
|
|
#**************************************************************************
|
|
# Source Modules for NSS Library (.C .386)
|
|
#**************************************************************************
|
|
DEBUG_SRC=\
|
|
debug/assert.c \
|
|
debug/warn.c \
|
|
debug/dbginit.c \
|
|
debug/dbgerror.c \
|
|
debug/dbgfatal.c \
|
|
debug/enterDebug.c \
|
|
debug/DebugPrintf.c \
|
|
debug/DebugHexDump.c \
|
|
debug/ncpTrace.c \
|
|
debug/otherErrorTables.c \
|
|
debug/snp.c \
|
|
debug/dfi.c \
|
|
debug/sdNSS.c \
|
|
debug/sdBasic.c \
|
|
debug/pssDebug.c
|
|
|
|
ID_SRC=\
|
|
id/id.c
|
|
|
|
EDIR_SRC=\
|
|
eDir/getDSGuid.c \
|
|
eDir/parseDSObjectName.c
|
|
|
|
FSM_SRC=\
|
|
fsm/fsmnw.c
|
|
|
|
GUID_SRC=\
|
|
guid/guid.c
|
|
|
|
LATCH_SRC=\
|
|
latch/intlatch.c \
|
|
latch/latch.c
|
|
|
|
MISC_SRC=\
|
|
misc/displayVersion.c \
|
|
misc/format.c \
|
|
misc/GetInstLen.c \
|
|
misc/histogram.c \
|
|
misc/lbVolume.c \
|
|
misc/nssErrorTable.c \
|
|
misc/NW_NCPFuncBoundaryError.c \
|
|
misc/NW_NCPLengthError.c \
|
|
misc/NW_NCPSubFuncLengthError.c \
|
|
misc/NW_WriteBranchTableEntry.c \
|
|
misc/sysimp.c \
|
|
misc/register.c \
|
|
misc/xmlNSS2.c
|
|
|
|
OS_SRC=\
|
|
os/alarm.c \
|
|
os/config.c \
|
|
os/crthread.c \
|
|
os/delay.c \
|
|
os/inst.c \
|
|
os/mailbox.c \
|
|
os/pssmpk.c \
|
|
os/snooze.c \
|
|
os/worktodo.c \
|
|
os/ZOS_IsNLMLoaded.c
|
|
|
|
LINUX_SRC=\
|
|
linux/napiFormatDateAndTime.c \
|
|
linux/napiUnitTests.c
|
|
|
|
PARSE_SRC=\
|
|
parse/pcmdline.c
|
|
|
|
STDIO_SRC=\
|
|
stdio/aprintf.c \
|
|
stdio/errprintf.c \
|
|
stdio/getchar.c \
|
|
stdio/gets.c \
|
|
stdio/printf.c \
|
|
stdio/snprintf.c \
|
|
stdio/sprintf.c \
|
|
stdio/vaprintf.c \
|
|
stdio/vprintf.c \
|
|
stdio/vsprintf.c
|
|
|
|
STDLIB_SRC=\
|
|
stdlib/exit.c \
|
|
stdlib/free.c \
|
|
stdlib/freeForNCPReply.c \
|
|
stdlib/freePage.c \
|
|
stdlib/malloc.c \
|
|
stdlib/mallocForNCPReply.c \
|
|
stdlib/mallocPage.c \
|
|
stdlib/mallocPageWithFlags.c \
|
|
stdlib/realloc.c \
|
|
stdlib/zalloc.c \
|
|
stdlib/zallocPage.c \
|
|
stdlib/zrealloc.c
|
|
|
|
UNICODE_SRC=\
|
|
unicode/ByteToUnicode.c \
|
|
unicode/componentUnicpy.c \
|
|
unicode/componentUnilen.c \
|
|
unicode/getMacCodePageName.c \
|
|
unicode/getNssUnicodeVersion.c \
|
|
unicode/LenByteToUnicode.c \
|
|
unicode/LenMacByteToUnicode.c \
|
|
unicode/MacByteToUnicode.c \
|
|
unicode/RegisterUnicodeConverter.c \
|
|
unicode/unicat.c \
|
|
unicode/unicmp.c \
|
|
unicode/unicodeInit.c \
|
|
unicode/unicodeParse.c \
|
|
unicode/UnicodeToByte.c \
|
|
unicode/UnicodeToMacByte.c \
|
|
unicode/UnicodeToUntermByte.c \
|
|
unicode/UnicodeToUntermMacByte.c \
|
|
unicode/unicpy.c \
|
|
unicode/uniicmp.c \
|
|
unicode/uniicmpmac.c \
|
|
unicode/unilen.c \
|
|
unicode/unilwr.c \
|
|
unicode/unimcpy.c \
|
|
unicode/uninicmp.c \
|
|
unicode/unitolower.c \
|
|
unicode/unitoupper.c \
|
|
unicode/uniupr.c \
|
|
unicode/UnRegisterUnicodeConverter.c \
|
|
unicode/utf_tolower.c \
|
|
unicode/utf8ToUniChar.c \
|
|
unicode/utf8LenToUniChar.c
|
|
|
|
UTC_SRC=\
|
|
utc/dos2str.c \
|
|
utc/dost2str.c \
|
|
utc/dosd2str.c \
|
|
utc/dos2utc.c \
|
|
utc/getutctime.c \
|
|
utc/msTime2utc.c \
|
|
utc/sec2utc.c \
|
|
utc/str2dos.c \
|
|
utc/str2dosd.c \
|
|
utc/str2dost.c \
|
|
utc/utc2dos.c \
|
|
utc/utc2local.c \
|
|
utc/utc2msTime.c \
|
|
utc/utc2sec.c \
|
|
utc/utc2str.c \
|
|
utc/str2utc.c \
|
|
utc/utcdata.c \
|
|
utc/secsDiff.c
|
|
|
|
WIO_SRC=\
|
|
wio/wactivate.c \
|
|
wio/waprintf.c \
|
|
wio/wcenter.c \
|
|
wio/wclrscr.c \
|
|
wio/wclose.c \
|
|
wio/wgetc.c \
|
|
wio/wgetdim.c \
|
|
wio/wgets.c \
|
|
wio/wgetpos.c \
|
|
wio/wio.c \
|
|
wio/wlock.c \
|
|
wio/wopen.c \
|
|
wio/wpause.c \
|
|
wio/wprintf.c \
|
|
wio/wpromptYesNo.c \
|
|
wio/wsetpos.c \
|
|
wio/wSetStdio.c \
|
|
wio/wsyncin.c \
|
|
wio/wvprintf.c \
|
|
wio/wWrapString.c \
|
|
wio/nssUI.c \
|
|
wio/lnxLog.c
|
|
|
|
#--------------------------------------------------------------------------
|
|
# Source files for LIBRARY
|
|
#-------------------------------------------------------------------------
|
|
SOURCE_FILES=\
|
|
functionPtrs.c \
|
|
libraryVersion.c \
|
|
libraryLKM.c \
|
|
${DEBUG_SRC} \
|
|
${EDIR_SRC} \
|
|
${ID_SRC} \
|
|
${FSM_SRC} \
|
|
${GUID_SRC} \
|
|
${LATCH_SRC} \
|
|
$(LINUX_SRC) \
|
|
${MISC_SRC} \
|
|
${OS_SRC} \
|
|
${PARSE_SRC} \
|
|
${STDIO_SRC} \
|
|
${STDLIB_SRC} \
|
|
${UNICODE_SRC} \
|
|
${UTC_SRC} \
|
|
${WIO_SRC} \
|
|
qdiv.c \
|
|
nssLIBRARYSym.c
|
|
ifndef OPT_ENV
|
|
SOURCE_FILES += unssLIBRARYSym.c
|
|
endif
|
|
|
|
SOURCE_FILES_NODEBUG=
|
|
|
|
#**************************************************************************
|
|
# Include files for LIBRARY
|
|
#*************************************************************************
|
|
INCLUDE_FILES=\
|
|
intlatch.h \
|
|
unicodeInit.h \
|
|
utcData.h
|
|
|
|
#-------------------------------------------------------------------------
|
|
# Additional source files that need to be checked out
|
|
#-------------------------------------------------------------------------
|
|
OTHER_FILES=\
|
|
Module.supported
|
|
|
|
#---------------------------------------------------------------------------
|
|
# This defines what routines are being EXPORTED. You should put .IMP
|
|
# files in the "UTILITY_EXPORTS_VIA_FILE" field because it will properly
|
|
# insert seperators based on what linker you are using and it will make
|
|
# the link dependent on these files.
|
|
#---------------------------------------------------------------------------
|
|
UTILITY_EXPORTS=
|
|
|
|
UTILITY_EXPORTS_VIA_FILE=
|
|
|
|
#---------------------------------------------------------------------------
|
|
# This defines what routines are being IMPORTED. You should put .IMP
|
|
# files in the "UTILITY_IMPORTS_VIA_FILE" field because it will properly
|
|
# insert seperators based on what linker you are using and it will make
|
|
# the link dependent on these files.
|
|
#---------------------------------------------------------------------------
|
|
UTILITY_IMPORTS=
|
|
|
|
UTILITY_IMPORTS_VIA_FILE=
|
|
|
|
#-------------------------------------------------------------------------
|
|
# Library definitions
|
|
# This defines additional libraries to LINK with and additional
|
|
# directories to put on out INCLUDE path.
|
|
#-------------------------------------------------------------------------
|
|
#additional libraries to link with
|
|
EXTRA_LIBRARIES=
|
|
EXTRA_STATIC_LIBRARIES=
|
|
EXTRA_DYNAMIC_LIBRARIES=
|
|
# This is done when USE_NETWARE_SDK is set to 1
|
|
#EXTRA_LIBRARY_INCLPATH=${NWSDK_SRCHPATH}
|
|
EXTRA_LIBRARY_INCLPATH=
|
|
|
|
#-------------------------------------------------------------------------
|
|
# Include path
|
|
# This defines additional include path to compile with
|
|
#-------------------------------------------------------------------------
|
|
#additional include path
|
|
EXTRA_INCLUDE_PATH=\
|
|
${BASEDIR}/public_core/sharedsrc \
|
|
|
|
#-------------------------------------------------------------------------
|
|
# Additional C and ASSEMBLY options to use
|
|
#-------------------------------------------------------------------------
|
|
EXTRA_C_OPTIONS=
|
|
EXTRA_ASM_OPTIONS=
|
|
EXTRA_LINK_OPTIONS=
|
|
|
|
#---------------------------------------------------------------------------
|
|
# Additional module attributes
|
|
#---------------------------------------------------------------------------
|
|
MODULE_DESCRIPTION='NSS API Library'
|
|
MODULE_ADDITIONAL_COPYRIGHT=
|
|
MODULE_OPTIONS=
|
|
MODULE_DEPENDENCIES=
|
|
MODULE_TYPE=
|
|
MODULE_NAME=nsslibrary
|
|
MODULE_EXTENSION=
|
|
MODULE_START_ROUTINE=
|
|
MODULE_EXIT_ROUTINE=
|
|
#set to 1 if you want the optimized NLM to be packed
|
|
MODULE_PACK_NLM=1
|
|
|
|
|
|
#=========================================================================
|
|
#=========================================================================
|
|
# LOCAL BUILD RULES
|
|
#=========================================================================
|
|
#=========================================================================
|
|
|
|
#-------------------------------------------------------------------------
|
|
# Default BUILD rule
|
|
#-------------------------------------------------------------------------
|
|
DEFAULT: DEFAULT_BUILD
|
|
|
|
#-------------------------------------------------------------------------
|
|
# Additional rules
|
|
#-------------------------------------------------------------------------
|
|
#BUILD_GREENRIVER_OPT: \
|
|
# COMPILE_OPT_GREENRIVER \
|
|
# LINK_OPT_GREENRIVER
|
|
|
|
#BUILD_GREENRIVER_UNOPT: \
|
|
# COMPILE_UNOPT_GREENRIVER \
|
|
# LINK_UNOPT_GREENRIVER
|
|
|
|
BUILD_MOAB_MP_UNOPT: \
|
|
COMPILE_UNOPT_MP_MOAB \
|
|
LINK_UNOPT_MP_MOAB
|
|
|
|
BUILD_MOAB_MP_OPT: \
|
|
COMPILE_OPT_MP_MOAB \
|
|
LINK_OPT_MP_MOAB
|
|
|
|
|
|
BUILD_MOAB_SP_UNOPT:
|
|
@echo "...This NLM does not have an UNOPTIMIZED SP specific version"
|
|
|
|
BUILD_MOAB_SP_OPT:
|
|
@echo "...This NLM does not have an OPTIMIZED SP specific version"
|
|
|
|
|
|
#BUILD_MOAB_SP_UNOPT: \
|
|
# COMPILE_UNOPT_SP_MOAB \
|
|
# LINK_UNOPT_SP_MOAB
|
|
#
|
|
#BUILD_MOAB_SP_OPT: \
|
|
# COMPILE_OPT_SP_MOAB \
|
|
# LINK_OPT_SP_MOAB
|
|
|
|
#-------------------------------------------------------------------------
|
|
# Language Enabling rules
|
|
#-------------------------------------------------------------------------
|
|
mdb: \
|
|
DEFAULT_MDB
|
|
|
|
umdb: \
|
|
LOCAL_MDB
|
|
|
|
mdbCreate: \
|
|
DEFAULT_CREATE_MDB_FILE
|
|
|
|
#-------------------------------------------------------------------------
|
|
# Other rules
|
|
#-------------------------------------------------------------------------
|
|
deps: DEFAULT_DEPS
|
|
|
|
cscope: DEFAULT_CSCOPE
|
|
|