2
# Setup needed Tools and Libraries
5
ifeq "$(wildcard $(APR_WORK)\build\NWGNUcustom.inc)" "$(APR_WORK)\build\NWGNUcustom.inc"
6
include $(APR_WORK)\build\NWGNUcustom.inc
7
CUSTOM_INI = $(AP_WORK)\NWGNUcustom.ini
15
# Treat like an include
17
ifndef EnvironmentDefined
20
# simple macros for parsing makefiles
25
SPACE := $(EMPTY) $(EMPTY)
31
# Try and handle case issues
34
NOVELLLIBC = $(NovellLibC)
39
NOVELLLIBC = C:/novell/ndk/libc
42
# This is a placeholder
44
# LDAPSDK = C:/novell/ndk/cldapsdk
48
METROWERKS = C:\Program Files\Metrowerks\CodeWarrior
51
# If LM_LICENSE_FILE isn't defined, define a variable that can be used to
52
# restart make with it defined
53
ifndef LM_LICENSE_FILE
54
NO_LICENSE_FILE = NO_LICENSE_FILE
58
# Set the Release type that you want to build, possible values are:
60
# debug - full debug switches are set
61
# noopt - normal switches are set (default)
62
# optimized - optimization switches are set
92
ifeq "$(RELEASE)" "debug"
96
ifeq "$(RELEASE)" "noopt"
100
ifeq "$(RELEASE)" "optimized"
105
# Setup compiler information
108
# MetroWerks NLM tools
112
LIB = mwldnlm -type library -w nocmdline
114
NOVI = $(NOVELLLIBC)\imports
116
INCDIRS = $(NOVELLLIBC)\include;$(NOVELLLIBC)\include\nks;$(NOVELLLIBC)\include\winsock;
124
# MetroWerks static Libraries
126
CLIB3S = $(METROWERKS)\Novell Support\Metrowerks Support\Libraries\Runtime\mwcrtl.lib
128
PLIB3S = $(METROWERKS)\Novell Support\Metrowerks Support\Libraries\MSL C++\MWCPP.lib
131
# and prefix or precompiled header added here.
133
# The default flags are as follows:
135
# -c compile only, no link
136
# -nosyspath treat #include <...> like #include "..."
137
# -Cpp_exceptions off disable C++ exceptions
138
# -RTTI off disable C++ run-time typing information
139
# -align 4 align on 4 byte bounderies
140
# -w nocmdline disable command-line driver/parser warnings
141
# -proc PII generate code base on Pentium II instruction set
142
# -inst mmx use MMX extensions (not used)
144
CFLAGS = -c -nosyspath -Cpp_exceptions off -RTTI off -align 4 -w nocmdline -proc PII
146
# -g generate debugging information
147
# -O0 level 0 optimizations
149
ifeq "$(RELEASE)" "debug"
153
# -O4,p level 4 optimizations, optimize for speed
154
ifeq "$(RELEASE)" "optimized"
158
# -prefix apr_arch_pre_nw.h #include pre_nw.h for all files
160
CFLAGS += -prefix apr_arch_pre_nw.h
163
PATH:=$(PATH);$(METROWERKS)\bin;$(METROWERKS)\Other Metrowerks Tools\Command Line Tools
166
# Declare major project deliverables output directories here
171
ifeq (\, $(findstring \,$(INSTALL)))
178
ifeq (\, $(findstring \,$(INSTALL)))
184
INSTALL = $(APR_WORK)\Dist
185
INSTDIRS = $(APR_WORK)\Dist
188
# Add support for building IPV6 alongside
190
DEFINES += -DNW_BUILD_IPV6
191
INCDIRS := $(NOVELLLIBC)\include\winsock\IPV6;$(INCDIRS)
193
ifneq "$(findstring IPV6,$(OBJDIR))" "IPV6"
194
OBJDIR := $(OBJDIR)_IPV6
197
ifneq "$(findstring IPV6,$(INSTALL))" "IPV6"
198
INSTALL := $(INSTALL)_IPV6
201
ifneq "$(findstring IPV6,$(INSTDIRS))" "IPV6"
202
INSTDIRS := $(INSTDIRS)_IPV6
208
INSTALLBASE := $(INSTALL)\Apache2
213
$(INSTALLBASE)\include \
220
INSTALLBASE := $(INSTALL)\apr
225
$(INSTALLBASE)\include \
234
# Declare Command and tool macros here
237
# Os2LibPath is an extra check to see if we are on NT
242
ifeq "$(OS)" "Windows_NT"
245
CHKNOT=cmd /C if not exist
247
DELTREE = cmd /C rd /s/q
252
CHK=command /C if exist
253
CHKNOT=command /C if not exist
261
# Setup base C compiler flags
269
APRTEST = $(APR_WORK)/test
270
APRUTIL = $(APR_WORK)/../apr-util
277
APRLIB = $(APR)/$(OBJDIR)/aprlib.lib
278
APRUTLIB = $(APRUTIL)/$(OBJDIR)/aprutil.lib
279
XMLLIB = $(XML)/$(OBJDIR)/xmllib.lib
282
# Additional general defines
285
EnvironmentDefined = 1
286
endif # ifndef EnvironmentDefined
288
# This is always set so that it will show up in lower directories