NWGNUenvironment.inc revision 09a1167b8cb70e15be9f661f9e83ee33cfe062de
7abe86bacd7821fb83a784398037defc64060a2emanoj# Setup needed Tools and Libraries
809c98e396829d27f2d9efc0c27f7bb1294381bcgsteinifeq "$(wildcard $(AP_WORK)\NWGNUcustom.ini)" "$(AP_WORK)\NWGNUcustom.ini"
7abe86bacd7821fb83a784398037defc64060a2emanojinclude $(AP_WORK)\NWGNUcustom.ini
cd47196ef7dd7647418fa9b9cb8297cfa614c100rbbCUSTOM_INI = $(AP_WORK)\NWGNUcustom.ini
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzifndef VERBOSE
5f4f0143cfe4e4a74195441b3c9dba4662a7788dniq# Treat like an include
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzifndef EnvironmentDefined
367d146f245f3b1c9f77c18e6ec591b52e0b344cbnicholes# simple macros for parsing makefiles
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzSPACE := $(EMPTY) $(EMPTY)
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz# Base environment
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz# Try and handle case issues
84572252cfafd33c91d893b34dec34fcbca34371ndifndef NOVELLLIBC
6c47a7d40935c5508868904cba1e87ca783ec386niqifdef NovellLibC
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzNOVELLLIBC = $(NovellLibC)
367d146f245f3b1c9f77c18e6ec591b52e0b344cbnicholesifndef NOVELLLIBC
367d146f245f3b1c9f77c18e6ec591b52e0b344cbnicholesNOVELLLIBC = C:/novell/ndk/libc
480706fbb16436bfdff23c83c8993875ae7ece92minfrinifneq "$(wildcard $(NOVELLLIBC)/include/ndkvers.h)" "$(NOVELLLIBC)/include/ndkvers.h"
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sf$(error NOVELLLIBC does not point to a valid Novell LIBC SDK)
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sfifndef LDAPSDK
4726a8c69bfb6a4666875b83dc25f6d2738c3dc4rjungLDAPSDK = C:/novell/ndk/cldapsdk/NetWare/libc
4726a8c69bfb6a4666875b83dc25f6d2738c3dc4rjungifneq "$(wildcard $(LDAPSDK)/inc/ldap.h)" "$(LDAPSDK)/inc/ldap.h"
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sf$(error LDAPSDK does not point to a valid Novell CLDAP SDK)
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sfifndef PCRESRC
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sfifeq "$(wildcard $(AP_WORK)/srclib/pcre/pcre-config.in)" "$(AP_WORK)/srclib/pcre/pcre-config.in"
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sfPCRESRC = $(AP_WORK)/srclib/pcre
480706fbb16436bfdff23c83c8993875ae7ece92minfrinifneq "$(wildcard $(PCRESRC)/pcre-config.in)" "$(PCRESRC)/pcre-config.in"
50cfe8bbbaf4279375802531268e2bf0155215fetrawick$(error PCRESRC does not point to a valid PCRE source tree)
50cfe8bbbaf4279375802531268e2bf0155215fetrawick# This is a placeholder
e684537a0db1085ac01f3743e1630ebe9bfdaf10bnicholes# ifndef ZLIBSDK
e684537a0db1085ac01f3743e1630ebe9bfdaf10bnicholes# ZLIBSDK = C:/novell/ndk/zlibsdk
482ac4a7875bf582690164f70e868508c17f6b87bnicholesifndef METROWERKS
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzMETROWERKS = C:\Program Files\Metrowerks\CodeWarrior
306e22b1e932824368f6d9df002f72fb00e70ecdrjung# If LM_LICENSE_FILE isn't defined, define a variable that can be used to
e9f8410b788ef1e6f1baed6c706ffdf3da395a16jerenkrantz# restart make with it defined
7416a4d524cc7456c90a155e06fae5ac6c2d0288trawickifndef LM_LICENSE_FILE
7416a4d524cc7456c90a155e06fae5ac6c2d0288trawickNO_LICENSE_FILE = NO_LICENSE_FILE
7416a4d524cc7456c90a155e06fae5ac6c2d0288trawick# Set the Release type that you want to build, possible values are:
7abe86bacd7821fb83a784398037defc64060a2emanoj# debug - full debug switches are set
306e22b1e932824368f6d9df002f72fb00e70ecdrjung# noopt - normal switches are set
132ee6ac1c26d6e8953836316ba50734eefab47bsf# release - optimization switches are set (default)
3a330c2331fc04f7d3f0ce7741bb52b5823f97e1wroweifdef reltype
3a330c2331fc04f7d3f0ce7741bb52b5823f97e1wroweRELEASE = $(reltype)
$(INSTDIRS) \