⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nwgnuenvironment.inc

📁 linux subdivision ying gai ke yi le ba
💻 INC
字号:
## Setup needed Tools and Libraries#ifeq "$(wildcard $(APR_WORK)\build\NWGNUcustom.inc)" "$(APR_WORK)\build\NWGNUcustom.inc"include $(APR_WORK)\build\NWGNUcustom.incCUSTOM_INI = $(AP_WORK)\NWGNUcustom.iniendififndef 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 issuesifndef NOVELLLIBCifdef NovellLibCNOVELLLIBC = $(NovellLibC)endifendififndef NOVELLLIBCNOVELLLIBC = C:/novell/ndk/libcendif# This is a placeholder# ifndef LDAPSDK# LDAPSDK = C:/novell/ndk/cldapsdk# endififndef METROWERKSMETROWERKS = C:\Program Files\Metrowerks\CodeWarriorendif# If LM_LICENSE_FILE isn't defined, define a variable that can be used to# restart make with it definedifndef LM_LICENSE_FILENO_LICENSE_FILE = NO_LICENSE_FILEendif## 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 setifdef reltypeRELEASE=$(reltype)endififdef RELTYPERELEASE=$(RELTYPE)endififdef debugRELEASE=debugendififdef DEBUGRELEASE=debugendififdef optimizedRELEASE=optimizedendififdef OPTIMIZEDRELEASE=optimizedendififndef RELEASERELEASE = optimizedendififeq "$(RELEASE)" "debug"OBJDIR = Debugendififeq "$(RELEASE)" "noopt"OBJDIR = Nooptendififeq "$(RELEASE)" "optimized"OBJDIR = Releaseendif## Setup compiler information## MetroWerks NLM toolsCC		= mwccnlmCPP		= mwccnlmLINK	= mwldnlmLIB		= mwldnlm -type library -w nocmdlineNOVI	= $(NOVELLLIBC)\importsINCDIRS 	= $(NOVELLLIBC)\include;$(NOVELLLIBC)\include\nks;$(NOVELLLIBC)\include\winsock;DEFINES		= -DNETWARE## MetroWerks static LibrariesCLIB3S	= $(METROWERKS)\Novell Support\Metrowerks Support\Libraries\Runtime\mwcrtl.libMATH3S	=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 (not used)CFLAGS = -c -nosyspath -Cpp_exceptions off -RTTI off -align 4 -w nocmdline -proc PII# -g                    generate debugging information# -O0                   level 0 optimizationsifeq "$(RELEASE)" "debug"CFLAGS += -g -O0endif# -O4,p                 level 4 optimizations, optimize for speedifeq "$(RELEASE)" "optimized"CFLAGS += -O4,pendif# -prefix apr_arch_pre_nw.h      #include pre_nw.h for all filesCFLAGS += -prefix apr_arch_pre_nw.hPATH:=$(PATH);$(METROWERKS)\bin;$(METROWERKS)\Other Metrowerks Tools\Command Line Tools## Declare major project deliverables output directories here#ifdef DESTINSTALL = $(DEST)ifeq (\, $(findstring \,$(INSTALL)))INSTDIRS = $(DEST)endifendififdef destINSTALL = $(dest)ifeq (\, $(findstring \,$(INSTALL)))INSTDIRS = $(dest)endifendififndef INSTALLINSTALL = $(APR_WORK)\DistINSTDIRS = $(APR_WORK)\Distendif# Add support for building IPV6 alongsideifneq "$(IPV6)" ""DEFINES += -DNW_BUILD_IPV6INCDIRS := $(NOVELLLIBC)\include\winsock\IPV6;$(INCDIRS)ifneq "$(findstring IPV6,$(OBJDIR))" "IPV6"OBJDIR := $(OBJDIR)_IPV6endif        ifneq "$(findstring IPV6,$(INSTALL))" "IPV6"INSTALL := $(INSTALL)_IPV6endif        ifneq "$(findstring IPV6,$(INSTDIRS))" "IPV6"INSTDIRS := $(INSTDIRS)_IPV6endifendififdef DESTINSTALLBASE := $(INSTALL)\Apache2INSTDEVDIRS := \    $(INSTDIRS) \	$(INSTALLBASE) \	$(INSTALLBASE)\include \	$(INSTALLBASE)\lib \INSTDIRS += \	$(INSTALLBASE) \	elseINSTALLBASE := $(INSTALL)\aprINSTDEVDIRS := \    $(INSTDIRS) \	$(INSTALLBASE) \	$(INSTALLBASE)\include \	$(INSTALLBASE)\lib \INSTDIRS += \	$(INSTALLBASE) \	endif	## Declare Command and tool macros here## Os2LibPath is an extra check to see if we are on NTifdef Os2LibPathOS = Windows_NTendififeq "$(OS)" "Windows_NT"CMD=cmd /CCHK=cmd /C if existCHKNOT=cmd /C if not existDEL = del /FDELTREE = cmd /C rd /s/qWINNT=1XCOPYSW = /EelseCMD=command /CCHK=command /C if existCHKNOT=command /C if not existDEL = delDELTREE = deltree /yXCOPYSW = /E /Yendif## Setup base C compiler flags### Common directories#APR			= $(APR_WORK)APRTEST		= $(APR_WORK)/testAPRUTIL		= $(APR_WORK)/../apr-utilXML			= $(APRUTIL)/xml## Internal Libraries#APRLIB		= $(APR)/$(OBJDIR)/aprlib.libAPRUTLIB	= $(APRUTIL)/$(OBJDIR)/aprutil.libXMLLIB		= $(XML)/$(OBJDIR)/xmllib.lib## Additional general defines#EnvironmentDefined = 1endif # ifndef EnvironmentDefined# This is always set so that it will show up in lower directoriesifdef PathPath = $(PATH)endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -