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