NWGNUenvironment.inc revision cfb941e9ad5276eef7bc8f3eedcd270f30cfec35
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Setup needed Tools and Libraries
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifeq "$(wildcard $(AP_WORK)\NWGNUcustom.ini)" "$(AP_WORK)\NWGNUcustom.ini"
9512fe850e98fdd448c638ca63fdd92a8a510255ahlinclude $(AP_WORK)\NWGNUcustom.ini
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCUSTOM_INI = $(AP_WORK)\NWGNUcustom.ini
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifndef VERBOSE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Treat like an include
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifndef EnvironmentDefined
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# simple macros for parsing makefiles
9512fe850e98fdd448c638ca63fdd92a8a510255ahlSPACE := $(EMPTY) $(EMPTY)
23b5c241225a8ade2b6b9f06ebb891ee459e3b02tomee# Base environment
23b5c241225a8ade2b6b9f06ebb891ee459e3b02tomee# Try and handle case issues
23b5c241225a8ade2b6b9f06ebb891ee459e3b02tomeeifndef NOVELLLIBC
23b5c241225a8ade2b6b9f06ebb891ee459e3b02tomeeifdef NovellLibC
9512fe850e98fdd448c638ca63fdd92a8a510255ahlNOVELLLIBC = $(NovellLibC)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifndef NOVELLLIBC
9512fe850e98fdd448c638ca63fdd92a8a510255ahlNOVELLLIBC = C:/novell/ndk/libc
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifneq "$(wildcard $(NOVELLLIBC)/include/ndkvers.h)" "$(NOVELLLIBC)/include/ndkvers.h"
9512fe850e98fdd448c638ca63fdd92a8a510255ahl$(error NOVELLLIBC does not point to a valid Novell LIBC SDK)
23b5c241225a8ade2b6b9f06ebb891ee459e3b02tomeeifndef LDAPSDK
9512fe850e98fdd448c638ca63fdd92a8a510255ahlLDAPSDK = C:/novell/ndk/cldapsdk/NetWare/libc
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifneq "$(wildcard $(LDAPSDK)/inc/ldap.h)" "$(LDAPSDK)/inc/ldap.h"
9512fe850e98fdd448c638ca63fdd92a8a510255ahl$(error LDAPSDK does not point to a valid Novell CLDAP SDK)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifndef PCRESRC
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifeq "$(wildcard $(AP_WORK)/srclib/pcre/pcre.in)" "$(AP_WORK)/srclib/pcre/pcre.in"
9512fe850e98fdd448c638ca63fdd92a8a510255ahlPCRESRC = $(AP_WORK)/srclib/pcre
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifneq "$(wildcard $(PCRESRC)/pcre.in)" "$(PCRESRC)/pcre.in"
9512fe850e98fdd448c638ca63fdd92a8a510255ahl$(error PCRESRC does not point to a valid PCRE source tree)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# This is a placeholder
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# ifndef ZLIBSDK
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# ZLIBSDK = C:/novell/ndk/zlibsdk
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifndef METROWERKS
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert MustacchiMETROWERKS = C:\Program Files\Metrowerks\CodeWarrior
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# If LM_LICENSE_FILE isn't defined, define a variable that can be used to
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# restart make with it defined
23b5c241225a8ade2b6b9f06ebb891ee459e3b02tomeeifndef LM_LICENSE_FILE
9512fe850e98fdd448c638ca63fdd92a8a510255ahlNO_LICENSE_FILE = NO_LICENSE_FILE
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# Set the Release type that you want to build, possible values are:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# debug - full debug switches are set
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# noopt - normal switches are set
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# release - optimization switches are set (default)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifdef reltype
23b5c241225a8ade2b6b9f06ebb891ee459e3b02tomeeRELEASE = $(reltype)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifdef RELTYPE
9512fe850e98fdd448c638ca63fdd92a8a510255ahlRELEASE = $(RELTYPE)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifdef debug
9512fe850e98fdd448c638ca63fdd92a8a510255ahlRELEASE = debug
9512fe850e98fdd448c638ca63fdd92a8a510255ahlifdef DEBUG
9512fe850e98fdd448c638ca63fdd92a8a510255ahlRELEASE = debug
$(INSTDIRS) \