You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2002/03/01 23:21:16 UTC

cvs commit: httpd-2.0/build NWGNUhead.inc NWGNUenvironment.inc

bnicholes    02/03/01 14:21:15

  Added:       support  NWGNUhtdigest
               modules/metadata NWGNUheaders NWGNUexpires
               build    NWGNUhead.inc NWGNUenvironment.inc
  Log:
  Switching from a project build file to GNU make files
  
  Revision  Changes    Path
  1.1                  httpd-2.0/support/NWGNUhtdigest
  
  Index: NWGNUhtdigest
  ===================================================================
  #
  # Make sure all needed macro's are defined
  #
  
  #
  # Get the 'head' of the build environment if necessary.  This includes default
  # targets and paths to tools
  #
  
  ifndef EnvironmentDefined
  include $(AP_WORK)\build\NWGNUhead.inc
  endif
  
  #
  # These directories will be at the beginning of the include list, followed by
  # INCDIRS
  #
  XINCDIRS	+= \
  			$(NWOS) \
  			$(AP_WORK)/srclib/apr/include \
  			$(AP_WORK)/srclib/apr-util/include \
  			$(AP_WORK)/srclib/apr/misc/netware \
  			$(AP_WORK)/srclib/apr \
  			$(EOLIST)
  
  #
  # These flags will come after CFLAGS
  #
  XCFLAGS		+= \
  			$(EOLIST)
  
  #
  # These defines will come after DEFINES
  #
  XDEFINES	+= \
  			$(EOLIST)
  
  #
  # These flags will be added to the link.opt file
  #
  XLFLAGS		+= \
  			$(EOLIST)
  
  #
  # These values will be appended to the correct variables based on the value of
  # RELEASE
  #
  ifeq "$(RELEASE)" "debug"
  XINCDIRS	+= \
  			$(EOLIST)
  
  XCFLAGS		+= \
  			$(EOLIST)
  
  XDEFINES	+= \
  			$(EOLIST)
  
  XLFLAGS		+= \
  		   	$(EOLIST)
  endif
  
  ifeq "$(RELEASE)" "noopt"
  XINCDIRS	+= \
  			$(EOLIST)
  
  XCFLAGS		+= \
  			$(EOLIST)
  
  XDEFINES	+= \
  			$(EOLIST)
  
  XLFLAGS		+= \
  		   	$(EOLIST)
  endif
  
  ifeq "$(RELEASE)" "release"
  XINCDIRS	+= \
  			$(EOLIST)
  
  XCFLAGS		+= \
  			$(EOLIST)
  
  XDEFINES	+= \
  			$(EOLIST)
  
  XLFLAGS		+= \
  			$(EOLIST)
  endif
  
  #
  # These are used by the link target if an NLM is being generated
  # This is used by the link 'name' directive to name the nlm.  If left blank
  # TARGET_nlm (see below) will be used.
  #
  NLM_NAME		= htdigest
  
  #
  # This is used by the link '-desc ' directive. 
  # If left blank, NLM_NAME will be used.
  #
  NLM_DESCRIPTION	= HT Digest Utility for NetWare
  
  #
  # This is used by the '-threadname' directive.  If left blank,
  # NLM_NAME Thread will be used.
  #
  NLM_THREAD_NAME	= htdigest
  
  #
  # If this is specified, it will override VERSION value in 
  # $(AP_WORK)\build\NWGNUenvironment.inc
  #
  NLM_VERSION		=
  
  #
  # If this is specified, it will override the default of 64K
  #
  NLM_STACK_SIZE	= 8192
  
  
  #
  # If this is specified it will be used by the link '-entry' directive
  #
  NLM_ENTRY_SYM	= _LibCPrelude
  
  #
  # If this is specified it will be used by the link '-exit' directive
  #
  NLM_EXIT_SYM	= _LibCPostlude
  
  #
  # If this is specified it will be used by the link '-check' directive
  #
  NLM_CHECK_SYM	=
  
  #
  # If these are specified it will be used by the link '-flags' directive
  #
  NLM_FLAGS		= AUTOUNLOAD, PSEUDOPREEMPTION
  
  #
  # If this is specified it will be linked in with the XDCData option in the def 
  # file instead of the default of $(NWOS)/apache.xdc.  XDCData can be disabled
  # by setting APACHE_UNIPROC in the environment
  #
  XDCDATA         = 
  
  #
  # If there is an NLM target, put it here
  #
  TARGET_nlm = \
  	$(OBJDIR)/htdigest.nlm \
  	$(EOLIST)
  
  #
  # If there is an LIB target, put it here
  #
  TARGET_lib = \
  	$(EOLIST)
  
  #
  # These are the OBJ files needed to create the NLM target above.
  # Paths must all use the '/' character
  #
  FILES_nlm_objs = \
  	$(OBJDIR)/htdigest.o \
  	$(EOLIST)
  
  #
  # These are the LIB files needed to create the NLM target above.
  # These will be added as a library command in the link.opt file.
  #
  FILES_nlm_libs = \
     	libcpre.o \
  	$(EOLIST)
  
  #
  # These are the modules that the above NLM target depends on to load.
  # These will be added as a module command in the link.opt file.
  #
  FILES_nlm_modules = \
  	aprlib \
  	libc \
  	$(EOLIST)
  
  #
  # If the nlm has a msg file, put it's path here
  #
  FILE_nlm_msg =
   
  #
  # If the nlm has a hlp file put it's path here
  #
  FILE_nlm_hlp =
  
  #
  # If this is specified, it will override $(NWOS)\copyright.txt.
  #
  FILE_nlm_copyright =
  
  #
  # Any additional imports go here
  #
  FILES_nlm_Ximports = \
  	@$(APR)/aprlib.imp \
  	@libc.imp \
  	$(EOLIST)
   
  #   
  # Any symbols exported to here
  #
  FILES_nlm_exports = \
  	$(EOLIST)
  	
  #   
  # These are the OBJ files needed to create the LIB target above.
  # Paths must all use the '/' character
  #
  FILES_lib_objs = \
  		$(EOLIST)
  
  #
  # implement targets and dependancies (leave this section alone)
  #
  
  libs :: $(OBJDIR) $(TARGET_lib)
  
  nlms :: libs $(TARGET_nlm)
  
  #
  # Updated this target to create necessary directories and copy files to the 
  # correct place.  (See $(AP_WORK)\build\NWGNUhead.inc for examples)
  #
  install :: nlms FORCE
  
  #
  # Any specialized rules here
  #
  
  #
  # Include the 'tail' makefile that has targets that depend on variables defined
  # in this makefile
  #
  
  include $(AP_WORK)\build\NWGNUtail.inc
  
  
  
  
  1.1                  httpd-2.0/modules/metadata/NWGNUheaders
  
  Index: NWGNUheaders
  ===================================================================
  #
  # Make sure all needed macro's are defined
  #
  
  #
  # Get the 'head' of the build environment if necessary.  This includes default
  # targets and paths to tools
  #
  
  ifndef EnvironmentDefined
  include $(AP_WORK)\build\NWGNUhead.inc
  endif
  
  #
  # These directories will be at the beginning of the include list, followed by
  # INCDIRS
  #
  XINCDIRS	+= \
  			$(AP_WORK)/include \
  			$(NWOS) \
  			$(AP_WORK)/modules/arch/netware \
  			$(AP_WORK)/srclib/apr/include \
  			$(AP_WORK)/srclib/apr-util/include \
  			$(AP_WORK)/srclib/apr \
  			$(EOLIST)
  
  #
  # These flags will come after CFLAGS
  #
  XCFLAGS		+= \
  			-prefix pre_nw.h \
  			$(EOLIST)
  
  #
  # These defines will come after DEFINES
  #
  XDEFINES	+= \
  			$(EOLIST)
  
  #
  # These flags will be added to the link.opt file
  #
  XLFLAGS		+= \
  			$(EOLIST)
  
  #
  # These values will be appended to the correct variables based on the value of
  # RELEASE
  #
  ifeq "$(RELEASE)" "debug"
  XINCDIRS	+= \
  			$(EOLIST)
  
  XCFLAGS		+= \
  			$(EOLIST)
  
  XDEFINES	+= \
  			$(EOLIST)
  
  XLFLAGS		+= \
  		   	$(EOLIST)
  endif
  
  ifeq "$(RELEASE)" "noopt"
  XINCDIRS	+= \
  			$(EOLIST)
  
  XCFLAGS		+= \
  			$(EOLIST)
  
  XDEFINES	+= \
  			$(EOLIST)
  
  XLFLAGS		+= \
  		   	$(EOLIST)
  endif
  
  ifeq "$(RELEASE)" "release"
  XINCDIRS	+= \
  			$(EOLIST)
  
  XCFLAGS		+= \
  			$(EOLIST)
  
  XDEFINES	+= \
  			$(EOLIST)
  
  XLFLAGS		+= \
  			$(EOLIST)
  endif
  
  #
  # These are used by the link target if an NLM is being generated
  # This is used by the link 'name' directive to name the nlm.  If left blank
  # TARGET_nlm (see below) will be used.
  #
  NLM_NAME		= headers
  
  #
  # This is used by the link '-desc ' directive. 
  # If left blank, NLM_NAME will be used.
  #
  NLM_DESCRIPTION	= Headers Module
  
  #
  # This is used by the '-threadname' directive.  If left blank,
  # NLM_NAME Thread will be used.
  #
  NLM_THREAD_NAME	= Headers Module
  
  #
  # If this is specified, it will override VERSION value in 
  # $(AP_WORK)\build\NWGNUenvironment.inc
  #
  NLM_VERSION		=
  
  #
  # If this is specified, it will override the default of 64K
  #
  NLM_STACK_SIZE	= 8192
  
  
  #
  # If this is specified it will be used by the link '-entry' directive
  #
  NLM_ENTRY_SYM	= _LibCPrelude
  
  #
  # If this is specified it will be used by the link '-exit' directive
  #
  NLM_EXIT_SYM	= _LibCPostlude
  
  #
  # If this is specified it will be used by the link '-check' directive
  #
  NLM_CHECK_SYM	=
  
  #
  # If these are specified it will be used by the link '-flags' directive
  #
  NLM_FLAGS		=  AUTOUNLOAD, PSEUDOPREEMPTION
  
  #
  # If this is specified it will be linked in with the XDCData option in the def 
  # file instead of the default of $(NWOS)/apache.xdc.  XDCData can be disabled
  # by setting APACHE_UNIPROC in the environment
  #
  XDCDATA         = 
  
  #
  # If there is an NLM target, put it here
  #
  TARGET_nlm = \
  	$(OBJDIR)/headers.nlm \
  	$(EOLIST)
  
  #
  # If there is an LIB target, put it here
  #
  TARGET_lib = \
  	$(EOLIST)
  
  #
  # These are the OBJ files needed to create the NLM target above.
  # Paths must all use the '/' character
  #
  FILES_nlm_objs = \
  	$(OBJDIR)/mod_headers.o \
  	$(EOLIST)
  
  #
  # These are the LIB files needed to create the NLM target above.
  # These will be added as a library command in the link.opt file.
  #
  FILES_nlm_libs = \
     	libcpre.o \
  	$(EOLIST)
  
  #
  # These are the modules that the above NLM target depends on to load.
  # These will be added as a module command in the link.opt file.
  #
  FILES_nlm_modules = \
  	aprlib \
  	libc \
  	$(EOLIST)
  
  #
  # If the nlm has a msg file, put it's path here
  #
  FILE_nlm_msg =
   
  #
  # If the nlm has a hlp file put it's path here
  #
  FILE_nlm_hlp =
  
  #
  # If this is specified, it will override $(NWOS)\copyright.txt.
  #
  FILE_nlm_copyright =
  
  #
  # Any additional imports go here
  #
  FILES_nlm_Ximports = \
  	@$(APR)/aprlib.imp \
  	@$(NWOS)/httpd.imp \
  	@libc.imp \
  	$(EOLIST)
   
  #   
  # Any symbols exported to here
  #
  FILES_nlm_exports = \
  	headers_module \
  	$(EOLIST)
  	
  #   
  # These are the OBJ files needed to create the LIB target above.
  # Paths must all use the '/' character
  #
  FILES_lib_objs = \
  		$(EOLIST)
  
  #
  # implement targets and dependancies (leave this section alone)
  #
  
  libs :: $(OBJDIR) $(TARGET_lib)
  
  nlms :: libs $(TARGET_nlm)
  
  #
  # Updated this target to create necessary directories and copy files to the 
  # correct place.  (See $(AP_WORK)\build\NWGNUhead.inc for examples)
  #
  install :: nlms FORCE
  
  #
  # Any specialized rules here
  #
  
  #
  # Include the 'tail' makefile that has targets that depend on variables defined
  # in this makefile
  #
  
  include $(AP_WORK)\build\NWGNUtail.inc
  
  
  
  
  1.1                  httpd-2.0/modules/metadata/NWGNUexpires
  
  Index: NWGNUexpires
  ===================================================================
  #
  # Make sure all needed macro's are defined
  #
  
  #
  # Get the 'head' of the build environment if necessary.  This includes default
  # targets and paths to tools
  #
  
  ifndef EnvironmentDefined
  include $(AP_WORK)\build\NWGNUhead.inc
  endif
  
  #
  # These directories will be at the beginning of the include list, followed by
  # INCDIRS
  #
  XINCDIRS	+= \
  			$(AP_WORK)/include \
  			$(NWOS) \
  			$(AP_WORK)/modules/arch/netware \
  			$(AP_WORK)/srclib/apr/include \
  			$(AP_WORK)/srclib/apr-util/include \
  			$(AP_WORK)/srclib/apr \
  			$(EOLIST)
  
  #
  # These flags will come after CFLAGS
  #
  XCFLAGS		+= \
  			-prefix pre_nw.h \
  			$(EOLIST)
  
  #
  # These defines will come after DEFINES
  #
  XDEFINES	+= \
  			$(EOLIST)
  
  #
  # These flags will be added to the link.opt file
  #
  XLFLAGS		+= \
  			$(EOLIST)
  
  #
  # These values will be appended to the correct variables based on the value of
  # RELEASE
  #
  ifeq "$(RELEASE)" "debug"
  XINCDIRS	+= \
  			$(EOLIST)
  
  XCFLAGS		+= \
  			$(EOLIST)
  
  XDEFINES	+= \
  			$(EOLIST)
  
  XLFLAGS		+= \
  		   	$(EOLIST)
  endif
  
  ifeq "$(RELEASE)" "noopt"
  XINCDIRS	+= \
  			$(EOLIST)
  
  XCFLAGS		+= \
  			$(EOLIST)
  
  XDEFINES	+= \
  			$(EOLIST)
  
  XLFLAGS		+= \
  		   	$(EOLIST)
  endif
  
  ifeq "$(RELEASE)" "release"
  XINCDIRS	+= \
  			$(EOLIST)
  
  XCFLAGS		+= \
  			$(EOLIST)
  
  XDEFINES	+= \
  			$(EOLIST)
  
  XLFLAGS		+= \
  			$(EOLIST)
  endif
  
  #
  # These are used by the link target if an NLM is being generated
  # This is used by the link 'name' directive to name the nlm.  If left blank
  # TARGET_nlm (see below) will be used.
  #
  NLM_NAME		= expires
  
  #
  # This is used by the link '-desc ' directive. 
  # If left blank, NLM_NAME will be used.
  #
  NLM_DESCRIPTION	= Expires Module
  
  #
  # This is used by the '-threadname' directive.  If left blank,
  # NLM_NAME Thread will be used.
  #
  NLM_THREAD_NAME	= Expires Module
  
  #
  # If this is specified, it will override VERSION value in 
  # $(AP_WORK)\build\NWGNUenvironment.inc
  #
  NLM_VERSION		=
  
  #
  # If this is specified, it will override the default of 64K
  #
  NLM_STACK_SIZE	= 8192
  
  
  #
  # If this is specified it will be used by the link '-entry' directive
  #
  NLM_ENTRY_SYM	= _LibCPrelude
  
  #
  # If this is specified it will be used by the link '-exit' directive
  #
  NLM_EXIT_SYM	= _LibCPostlude
  
  #
  # If this is specified it will be used by the link '-check' directive
  #
  NLM_CHECK_SYM	=
  
  #
  # If these are specified it will be used by the link '-flags' directive
  #
  NLM_FLAGS		=  AUTOUNLOAD, PSEUDOPREEMPTION
  
  #
  # If this is specified it will be linked in with the XDCData option in the def 
  # file instead of the default of $(NWOS)/apache.xdc.  XDCData can be disabled
  # by setting APACHE_UNIPROC in the environment
  #
  XDCDATA         = 
  
  #
  # If there is an NLM target, put it here
  #
  TARGET_nlm = \
  	$(OBJDIR)/expires.nlm \
  	$(EOLIST)
  
  #
  # If there is an LIB target, put it here
  #
  TARGET_lib = \
  	$(EOLIST)
  
  #
  # These are the OBJ files needed to create the NLM target above.
  # Paths must all use the '/' character
  #
  FILES_nlm_objs = \
  	$(OBJDIR)/mod_expires.o \
  	$(EOLIST)
  
  #
  # These are the LIB files needed to create the NLM target above.
  # These will be added as a library command in the link.opt file.
  #
  FILES_nlm_libs = \
     	libcpre.o \
  	$(EOLIST)
  
  #
  # These are the modules that the above NLM target depends on to load.
  # These will be added as a module command in the link.opt file.
  #
  FILES_nlm_modules = \
  	aprlib \
  	libc \
  	$(EOLIST)
  
  #
  # If the nlm has a msg file, put it's path here
  #
  FILE_nlm_msg =
   
  #
  # If the nlm has a hlp file put it's path here
  #
  FILE_nlm_hlp =
  
  #
  # If this is specified, it will override $(NWOS)\copyright.txt.
  #
  FILE_nlm_copyright =
  
  #
  # Any additional imports go here
  #
  FILES_nlm_Ximports = \
  	@$(APR)/aprlib.imp \
  	@$(NWOS)/httpd.imp \
  	@libc.imp \
  	$(EOLIST)
   
  #   
  # Any symbols exported to here
  #
  FILES_nlm_exports = \
  	expires_module \
  	$(EOLIST)
  	
  #   
  # These are the OBJ files needed to create the LIB target above.
  # Paths must all use the '/' character
  #
  FILES_lib_objs = \
  		$(EOLIST)
  
  #
  # implement targets and dependancies (leave this section alone)
  #
  
  libs :: $(OBJDIR) $(TARGET_lib)
  
  nlms :: libs $(TARGET_nlm)
  
  #
  # Updated this target to create necessary directories and copy files to the 
  # correct place.  (See $(AP_WORK)\build\NWGNUhead.inc for examples)
  #
  install :: nlms FORCE
  
  #
  # Any specialized rules here
  #
  
  #
  # Include the 'tail' makefile that has targets that depend on variables defined
  # in this makefile
  #
  
  include $(AP_WORK)\build\NWGNUtail.inc
  
  
  
  
  1.1                  httpd-2.0/build/NWGNUhead.inc
  
  Index: NWGNUhead.inc
  ===================================================================
  #
  # Obtain the global build environment
  #
  
  include $(AP_WORK)\build\NWGNUenvironment.inc
  
  #
  # Define base targets and rules
  # 
  
  TARGETS = libs nlms install clobber_libs clobber_nlms clean installdev
  
  .PHONY : $(TARGETS) default all help $(NO_LICENSE_FILE)
  
  # Here is where we will use the NO_LICENSE_FILE variable to see if we need to
  # restart the make with it defined
  
  ifdef NO_LICENSE_FILE
  
  default: NO_LICENSE_FILE
  
  all: NO_LICENSE_FILE
  
  install :: NO_LICENSE_FILE
  
  installdev :: NO_LICENSE_FILE
  
  NO_LICENSE_FILE :
  	$(MAKE) $(MAKECMDGOALS) -f NWGNUmakefile RELEASE=$(RELEASE) DEST="$(INSTALL)" LM_LICENSE_FILE="$(METROWERKS)\license.dat"
  
  else # LM_LICENSE_FILE must be defined so use the real targets
  
  default: $(SUBDIRS) libs nlms
  
  all: $(SUBDIRS) libs nlms install
  
  $(TARGETS) :: $(SUBDIRS)
  
  install :: nlms $(INSTDIRS)
  
  installdev :: $(INSTDEVDIRS)
  
  $(INSTDIRS) ::
  	$(CHKNOT) $@\NUL mkdir $@
  
  $(INSTDEVDIRS) ::
  	$(CHKNOT) $@\NUL mkdir $@
  
  endif #NO_LICENSE_FILE check
  
  help :
  	@echo targets for RELEASE=$(RELEASE):
  	@echo (default) . . . . libs nlms
  	@echo all . . . . . . . does everything (libs nlms install)
  	@echo libs. . . . . . . builds all libs
  	@echo nlms. . . . . . . builds all nlms
  	@echo install . . . . . builds libs and nlms and copies install files to
  	@echo                   "$(INSTALL)"
  	@echo clean . . . . . . deletes $(OBJDIR) dirs, *.err, and *.map
  	@echo clobber_all . . . deletes all possible output from the make
  	@echo clobber_install . deletes all files in $(INSTALL)
  	@$(CMD) echo.
  	@echo Multiple targets can be used on a single nmake command line -
  	@echo (i.e. $(MAKE) clean all)
  	@$(CMD) echo.
  	@echo You can also specify RELEASE=debug, RELEASE=noopt, or RELEASE=optimized
  	@echo The default is RELEASE=optimized
  
  clobber_all :: clean clobber_install
  
  clobber_install ::
  	-$(DELTREE) $(INSTALL) 2>NUL
  
  #
  # build recursive targets
  #
  
  $(SUBDIRS) : FORCE
  ifneq "$(MAKECMDGOALS)" "clean"
  	$(CMD) echo.
  	@echo Building $(CURDIR)/$@
  endif
  	$(MAKE) -C $@ $(MAKECMDGOALS) -f NWGNUmakefile RELEASE=$(RELEASE) DEST="$(INSTALL)" LM_LICENSE_FILE="$(LM_LICENSE_FILE)"
  	$(CMD) echo.
  
  FORCE:
  
  #
  # Standard targets
  #
  
  clean :: $(SUBDIRS)
  	@echo Cleaning up $(CURDIR)
  	-$(DELTREE) $(OBJDIR) 2> NUL
  	$(CHK) *.err $(DEL) *.err
  	$(CHK) *.map $(DEL) *.map
  	$(CHK) *.d $(DEL) *.d
  	$(CHK) *.tmp $(DEL) *.tmp
  	-$(DELTREE) $(OBJDIR) 2> NUL
  
  $(OBJDIR) ::
  	$(CHKNOT) $(OBJDIR)\nul mkdir $(OBJDIR)
  
  
  
  
  1.1                  httpd-2.0/build/NWGNUenvironment.inc
  
  Index: NWGNUenvironment.inc
  ===================================================================
  #
  # Setup needed Tools and Libraries
  #
  
  ifeq "$(wildcard $(AP_WORK)\NWGNUcustom.ini)" "$(AP_WORK)\NWGNUcustom.ini"
  include $(AP_WORK)\NWGNUcustom.ini
  CUSTOM_INI = $(AP_WORK)\NWGNUcustom.ini
  endif
  
  ifndef VERBOSE
  .SILENT:
  endif
  
  #
  # Treat like an include
  #
  ifndef EnvironmentDefined
  
  #
  # simple macros for parsing makefiles
  #
  EOLIST:=
  EMPTY :=
  COMMA := ,
  SPACE := $(EMPTY) $(EMPTY)
  
  #
  # Base environment
  #
  
  # Try and handle case issues
  ifndef NOVELLLIBC
  ifdef NovellLibC
  NOVELLLIBC = $(NovellLibC)
  endif
  endif
  
  ifndef NOVELLLIBC
  NOVELLLIBC = C:/novell/ndk/libc
  endif
  
  # This is a placeholder
  # ifndef LDAPSDK
  # LDAPSDK = C:/novell/ndk/cldapsdk
  # endif
  
  ifndef METROWERKS
  METROWERKS = C:\Program Files\Metrowerks\CodeWarrior
  endif
  
  # If LM_LICENSE_FILE isn't defined, define a variable that can be used to
  # restart make with it defined
  ifndef LM_LICENSE_FILE
  NO_LICENSE_FILE = NO_LICENSE_FILE
  endif
  
  #
  # Set the Release type that you want to build, possible values are:
  #
  #  debug		- full debug switches are set
  #  noopt		- normal switches are set (default)
  #  optimized	- optimization switches are set
  
  ifdef reltype
  RELEASE=$(reltype)
  endif
  
  ifdef RELTYPE
  RELEASE=$(RELTYPE)
  endif
  
  ifdef debug
  RELEASE=debug
  endif
  
  ifdef DEBUG
  RELEASE=debug
  endif
  
  ifdef optimized
  RELEASE=optimized
  endif
  
  ifdef OPTIMIZED
  RELEASE=optimized
  endif
  
  ifndef RELEASE
  RELEASE = optimized
  endif
  
  ifeq "$(RELEASE)" "debug"
  OBJDIR = Debug
  endif
  
  ifeq "$(RELEASE)" "noopt"
  OBJDIR = Noopt
  endif
  
  ifeq "$(RELEASE)" "optimized"
  OBJDIR = Release
  endif
  
  #
  # Setup compiler information
  #
  
  # MetroWerks NLM tools
  CC		= mwccnlm
  CPP		= mwccnlm
  LINK	= mwldnlm
  LIB		= mwldnlm -type library -w nocmdline
  
  NOVI	= $(NOVELLLIBC)\imports
  
  INCDIRS 	= $(NOVELLLIBC)\include;$(NOVELLLIBC)\include\nks;$(NOVELLLIBC)\include\winsock;
  
  DEFINES		= -DNETWARE
  
  #
  # MetroWerks static Libraries
  
  CLIB3S	= $(METROWERKS)\Novell Support\Metrowerks Support\Libraries\Runtime\mwcrtl.lib
  MATH3S	=
  PLIB3S	= $(METROWERKS)\Novell Support\Metrowerks Support\Libraries\MSL C++\MWCPP.lib
  
  # Base compile flags
  # and prefix or precompiled header added here.
  
  # The default flags are as follows:
  #
  # -c                    compile only, no link
  # -nosyspath            treat #include <...> like #include "..."
  # -Cpp_exceptions off   disable C++ exceptions
  # -RTTI off             disable C++ run-time typing information
  # -align 4              align on 4 byte bounderies
  # -w nocmdline          disable command-line driver/parser warnings
  # -proc PII             generate code base on Pentium II instruction set
  # -inst mmx             use MMX extensions
  
  CFLAGS = -c -nosyspath -Cpp_exceptions off -RTTI off -align 4 -w nocmdline -proc PII -inst mmx
  
  # -g                    generate debugging information
  # -O1                   level 1 optimizations
  
  ifeq "$(RELEASE)" "debug"
  CFLAGS += -g -O1
  endif
  
  # -O4,p                 level 4 optimizations, optimize for speed
  ifeq "$(RELEASE)" "optimized"
  CFLAGS += -O4,p
  endif
  
  # -prefix pre_nw.h      #include pre_nw.h for all files
  
  CFLAGS += -prefix pre_nw.h
  
  
  PATH:=$(PATH);$(METROWERKS)\bin;$(METROWERKS)\Other Metrowerks Tools\Command Line Tools
  
  #
  # Declare major project deliverables output directories here
  #
  
  ifdef DEST
  INSTALL = $(DEST)
  ifeq (\, $(findstring \,$(INSTALL)))
  INSTDIRS = $(DEST)
  endif
  endif
  
  ifdef dest
  INSTALL = $(dest)
  ifeq (\, $(findstring \,$(INSTALL)))
  INSTDIRS = $(dest)
  endif
  endif
  
  ifndef INSTALL
  INSTALL = $(AP_WORK)\..\Dist
  INSTDIRS = $(AP_WORK)\..\Dist
  endif
  
  INSTDEVDIRS := \
      $(INSTDIRS) \
  	$(INSTALL)\Apache2\include \
  	$(INSTALL)\Apache2\lib \
  
  INSTDIRS += \
  	$(INSTALL)\Apache2 \
  	$(INSTALL)\Apache2\cgi-examples \
  	$(INSTALL)\Apache2\conf \
  	$(INSTALL)\Apache2\error \
  	$(INSTALL)\Apache2\error\include \
  	$(INSTALL)\Apache2\htdocs \
  	$(INSTALL)\Apache2\icons \
  	$(INSTALL)\Apache2\icons\small \
  	$(INSTALL)\Apache2\logs \
  	$(INSTALL)\Apache2\man \
  	$(INSTALL)\Apache2\manual \
  	$(INSTALL)\Apache2\manual\developer \
  	$(INSTALL)\Apache2\manual\faq \
  	$(INSTALL)\Apache2\manual\howto \
  	$(INSTALL)\Apache2\manual\images \
  	$(INSTALL)\Apache2\manual\misc \
  	$(INSTALL)\Apache2\manual\mod \
  	$(INSTALL)\Apache2\manual\platform \
  	$(INSTALL)\Apache2\manual\programs \
  	$(INSTALL)\Apache2\manual\search \
  	$(INSTALL)\Apache2\manual\ssl \
  	$(INSTALL)\Apache2\manual\vhosts \
  	$(INSTALL)\Apache2\modules \
  
  #
  # Declare Command and tool macros here
  #
  
  # Os2LibPath is an extra check to see if we are on NT
  ifdef Os2LibPath
  OS = Windows_NT
  endif
  
  ifeq "$(OS)" "Windows_NT"
  CMD=cmd /C
  CHK=cmd /C if exist
  CHKNOT=cmd /C if not exist
  DEL = del /F
  DELTREE = cmd /C rd /s/q
  WINNT=1
  else
  CMD=command /C
  CHK=command /C if exist
  CHKNOT=command /C if not exist
  DEL = del
  DELTREE = deltree /y
  endif
  
  
  #
  # Setup base C compiler flags
  #
  
  #
  # Common directories
  #
  
  STDMOD		= $(AP_WORK)/modules
  NWOS		= $(AP_WORK)/os/netware
  SERVER		= $(AP_WORK)/server
  SRC			= $(AP_WORK)
  APR			= $(AP_WORK)/srclib/apr
  APRUTIL		= $(AP_WORK)/srclib/apr-util
  SUPMOD		= $(AP_WORK)/support
  PCRE		= $(AP_WORK)/srclib/pcre
  APRTEST		= $(AP_WORK)/srclib/apr/test
  HTTPD		= $(AP_WORK)/modules/http
  XML			= $(AP_WORK)/srclib/apr-util/xml
  
  #
  # Internal Libraries
  #
  
  APRLIB		= $(APR)/$(OBJDIR)/aprlib.lib
  APRUTLIB	= $(APRUTIL)/$(OBJDIR)/aprutil.lib
  STMODLIB	= $(STDMOD)/$(OBJDIR)/stdmod.lib
  PCRELIB		= $(PCRE/$(OBJDIR)/pcre.lib
  NWOSLIB		= $(NWOS)/$(OBJDIR)/netware.lib
  SERVLIB		= $(SERVER)/$(OBJDIR)/server.lib
  HTTPDLIB	= $(HTTPD)/$(OBJDIR)/httpd.lib
  XMLLIB		= $(XML)/$(OBJDIR)/xmllib.lib
  
  #
  # Additional general defines
  #
  VERSION		= 2,0,0
  			
  EnvironmentDefined = 1
  endif # ifndef EnvironmentDefined
  
  # This is always set so that it will show up in lower directories
  
  ifdef Path
  Path = $(PATH)
  endif