1# 2# Declare the sub-directories to be built here 3# 4 5SUBDIRS = \ 6 $(EOLIST) 7 8# 9# Get the 'head' of the build environment. This includes default targets and 10# paths to tools 11# 12 13include $(APR_WORK)/build/NWGNUhead.inc 14 15# 16# build this level's files 17 18# 19# Make sure all needed macro's are defined 20# 21 22# 23# These directories will be at the beginning of the include list, followed by 24# INCDIRS 25# 26XINCDIRS += \ 27 $(APR)/include \ 28 $(APR)/include/arch/NetWare \ 29 $(APU)/include \ 30 $(APU)/uri \ 31 $(APU)/dbm/sdbm \ 32 $(APU)/include/private \ 33 $(APUXML)/expat/lib \ 34 $(EOLIST) 35 36# 37# These flags will come after CFLAGS 38# 39XCFLAGS += \ 40 -DHAVE_EXPAT_CONFIG_H \ 41 $(EOLIST) 42 43# 44# These defines will come after DEFINES 45# 46XDEFINES += \ 47 $(EOLIST) 48 49# 50# These flags will be added to the link.opt file 51# 52XLFLAGS += \ 53 $(EOLIST) 54 55# 56# These values will be appended to the correct variables based on the value of 57# RELEASE 58# 59ifeq "$(RELEASE)" "debug" 60XINCDIRS += \ 61 $(EOLIST) 62 63XCFLAGS += \ 64 $(EOLIST) 65 66XDEFINES += \ 67 $(EOLIST) 68 69XLFLAGS += \ 70 $(EOLIST) 71endif 72 73ifeq "$(RELEASE)" "noopt" 74XINCDIRS += \ 75 $(EOLIST) 76 77XCFLAGS += \ 78 $(EOLIST) 79 80XDEFINES += \ 81 $(EOLIST) 82 83XLFLAGS += \ 84 $(EOLIST) 85endif 86 87ifeq "$(RELEASE)" "release" 88XINCDIRS += \ 89 $(EOLIST) 90 91XCFLAGS += \ 92 $(EOLIST) 93 94XDEFINES += \ 95 $(EOLIST) 96 97XLFLAGS += \ 98 $(EOLIST) 99endif 100 101# 102# These are used by the link target if an NLM is being generated 103# This is used by the link 'name' directive to name the nlm. If left blank 104# TARGET_nlm (see below) will be used. 105# 106NLM_NAME = 107 108# 109# This is used by the link '-desc ' directive. 110# If left blank, NLM_NAME will be used. 111# 112NLM_DESCRIPTION = 113 114# 115# This is used by the '-threadname' directive. If left blank, 116# NLM_NAME Thread will be used. 117# 118NLM_THREAD_NAME = 119# 120# If this is specified, it will override VERSION value in 121# $(APR_WORK)/build/NWGNUenvironment.inc 122# 123NLM_VERSION = 124 125# 126# If this is specified, it will override the default of 64K 127# 128NLM_STACK_SIZE = 129 130# 131# If this is specified it will be used by the link '-entry' directive 132# 133NLM_ENTRY_SYM = 134 135# 136# If this is specified it will be used by the link '-exit' directive 137# 138NLM_EXIT_SYM = 139 140# 141# If this is specified it will be used by the link '-check' directive 142# 143NLM_CHECK_SYM = 144 145# 146# If this is specified it will be used by the link '-flags' directive 147# 148NLM_FLAGS = 149 150# 151# If this is specified it will be linked in with the XDCData option in the def 152# file instead of the default of $(APR)/misc/netware/apache.xdc. XDCData can 153# be disabled by setting APACHE_UNIPROC in the environment 154# 155XDCDATA = 156 157# 158# Declare all target files (you must add your files here) 159# 160 161# 162# If there is an NLM target, put it here 163# 164TARGET_nlm = \ 165 $(EOLIST) 166 167# 168# If there is an LIB target, put it here 169# 170TARGET_lib = \ 171 $(OBJDIR)/apuxml.lib \ 172 $(EOLIST) 173 174# 175# These are the OBJ files needed to create the NLM target above. 176# Paths must all use the '/' character 177# 178FILES_nlm_objs = \ 179 $(EOLIST) 180 181# 182# These are the LIB files needed to create the NLM target above. 183# These will be added as a library command in the link.opt file. 184# 185FILES_nlm_libs = \ 186 $(EOLIST) 187 188# 189# These are the modules that the above NLM target depends on to load. 190# These will be added as a module command in the link.opt file. 191# 192FILES_nlm_modules = \ 193 $(EOLIST) 194 195# 196# If the nlm has a msg file, put it's path here 197# 198FILE_nlm_msg = 199 200# 201# If the nlm has a hlp file put it's path here 202# 203FILE_nlm_hlp = 204 205# 206# If this is specified, it will override the default copyright. 207# 208FILE_nlm_copyright = 209 210# 211# Any additional imports go here 212# 213FILES_nlm_Ximports = \ 214 $(EOLIST) 215 216# 217# Any symbols exported to here 218# 219FILES_nlm_exports = \ 220 $(EOLIST) 221 222# 223# These are the OBJ files needed to create the LIB target above. 224# Paths must all use the '/' character 225# 226FILES_lib_objs = \ 227 $(OBJDIR)/apr_xml.o \ 228 $(OBJDIR)/xmlparse.o \ 229 $(OBJDIR)/xmlrole.o \ 230 $(OBJDIR)/xmltok.o \ 231 $(EOLIST) 232 233# 234# implement targets and dependancies (leave this section alone) 235# 236 237libs :: $(OBJDIR) $(TARGET_lib) 238 239nlms :: libs $(TARGET_nlm) 240 241# 242# Updated this target to create necessary directories and copy files to the 243# correct place. (See $(APR_WORK)/build/NWGNUhead.inc for examples) 244# 245install :: nlms FORCE 246 247# 248# Any specialized rules here 249# 250 251vpath %.c expat/lib 252 253# 254# Include the 'tail' makefile that has targets that depend on variables defined 255# in this makefile 256# 257 258include $(APRBUILD)/NWGNUtail.inc 259 260