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 $(AP_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# 24# These directories will be at the beginning of the include list, followed by 25# INCDIRS 26# 27XINCDIRS += \ 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 = 100 101# 102# This is used by the link '-desc ' directive. 103# If left blank, NLM_NAME will be used. 104# 105NLM_DESCRIPTION = 106 107# 108# This is used by the '-threadname' directive. If left blank, 109# NLM_NAME Thread will be used. 110# 111NLM_THREAD_NAME = 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 = 123 124 125# 126# If this is specified it will be used by the link '-entry' directive 127# 128NLM_ENTRY_SYM = 129 130# 131# If this is specified it will be used by the link '-exit' directive 132# 133NLM_EXIT_SYM = 134 135# 136# If this is specified it will be used by the link '-check' directive 137# 138NLM_CHECK_SYM = 139 140# 141# If these are specified it will be used by the link '-flags' directive 142# 143NLM_FLAGS = 144 145# 146# If this is specified it will be linked in with the XDCData option in the def 147# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled 148# by setting APACHE_UNIPROC in the environment 149# 150XDCDATA = 151 152# 153# If there is an NLM target, put it here 154# 155TARGET_nlm = \ 156 $(OBJDIR)/cernmeta.nlm \ 157 $(OBJDIR)/expires.nlm \ 158 $(OBJDIR)/headers.nlm \ 159 $(OBJDIR)/mimemagi.nlm \ 160 $(OBJDIR)/modident.nlm \ 161 $(OBJDIR)/uniqueid.nlm \ 162 $(OBJDIR)/usertrk.nlm \ 163 $(OBJDIR)/modversion.nlm \ 164 $(EOLIST) 165 166# 167# If there is an LIB target, put it here 168# 169TARGET_lib = \ 170 $(EOLIST) 171 172# 173# These are the OBJ files needed to create the NLM target above. 174# Paths must all use the '/' character 175# 176FILES_nlm_objs = \ 177 $(EOLIST) 178 179# 180# These are the LIB files needed to create the NLM target above. 181# These will be added as a library command in the link.opt file. 182# 183FILES_nlm_libs = \ 184 $(EOLIST) 185 186# 187# These are the modules that the above NLM target depends on to load. 188# These will be added as a module command in the link.opt file. 189# 190FILES_nlm_modules = \ 191 $(EOLIST) 192 193# 194# If the nlm has a msg file, put it's path here 195# 196FILE_nlm_msg = 197 198# 199# If the nlm has a hlp file put it's path here 200# 201FILE_nlm_hlp = 202 203# 204# If this is specified, it will override $(NWOS)\copyright.txt. 205# 206FILE_nlm_copyright = 207 208# 209# Any additional imports go here 210# 211FILES_nlm_Ximports = \ 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. (See $(AP_WORK)/build/NWGNUhead.inc for examples) 238# 239install :: nlms FORCE 240 $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/) 241 242# 243# Any specialized rules here 244# 245 246# 247# Include the 'tail' makefile that has targets that depend on variables defined 248# in this makefile 249# 250 251include $(APBUILD)/NWGNUtail.inc 252 253 254