NWGNUmodsed revision 16b55a35cff91315d261d1baa776138af465c4e4
2817aa56ca12139849ba1017ff978833174f6294Evan Hunt# Declare the sub-directories to be built here
ff62d4458acda2110a3763ec576a4f728450662cEvan Hunt# Get the 'head' of the build environment. This includes default targets and
ff62d4458acda2110a3763ec576a4f728450662cEvan Hunt# paths to tools
b88b75c2b88618f9c885c61e1ab0bd1cddd4474eEvan Huntinclude $(AP_WORK)\build\NWGNUhead.inc
b88b75c2b88618f9c885c61e1ab0bd1cddd4474eEvan Hunt# build this level's files
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Hunt# Make sure all needed macro's are defined
cc0a48a38173637f7a833e2da52bcfbcecb960b4Mark Andrews# These directories will be at the beginning of the include list, followed by
f8eb4e5bfd1129d7639af5c2c768f53f0895952aMark AndrewsXINCDIRS += \
f8eb4e5bfd1129d7639af5c2c768f53f0895952aMark Andrews $(APR)/include \
f8eb4e5bfd1129d7639af5c2c768f53f0895952aMark Andrews $(APRUTIL)/include \
b05a50c852608a40d1a06d6124bafb9b500c10c1Mukund Sivaraman $(AP_WORK)/include \
f91c369b4ac84fad07e3106c5c00a15d87250d1eMukund Sivaraman# These flags will come after CFLAGS
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman# These defines will come after DEFINES
f4dda9cf28f8be880097ee931b3237e09731a28aMark AndrewsXDEFINES += \
79521569952d5e2475f05e4397dc976f4685056eMark Andrews# These flags will be added to the link.opt file
74eb2f5cbc98d9646bcd13ffcb17688f0db5ab8dEvan Hunt# These values will be appended to the correct variables based on the value of
74eb2f5cbc98d9646bcd13ffcb17688f0db5ab8dEvan Huntifeq "$(RELEASE)" "debug"
74eb2f5cbc98d9646bcd13ffcb17688f0db5ab8dEvan HuntXINCDIRS += \
b0c18fffd3c81d3cb617dbba4d222d49ae266f28Mark AndrewsXDEFINES += \
d8f2dd46cba3a16c2433e85657a5b15543013ca6Mark Andrewsifeq "$(RELEASE)" "noopt"
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark AndrewsXINCDIRS += \
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark AndrewsXDEFINES += \
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark Andrewsifeq "$(RELEASE)" "release"
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark AndrewsXINCDIRS += \
017aa9aef63aaef6a370c180f6290b8388deda01Mark Andrews# These are used by the link target if an NLM is being generated
dc5e29a7d216b4233c80bec8967015aa9c05962eTinderbox User# This is used by the link 'name' directive to name the nlm. If left blank
017aa9aef63aaef6a370c180f6290b8388deda01Mark Andrews# TARGET_nlm (see below) will be used.
017aa9aef63aaef6a370c180f6290b8388deda01Mark AndrewsNLM_NAME = modsed
693d70f96fc2b3c1830580edcc29146afd6a9f61Mark Andrews# This is used by the link '-desc ' directive.
693d70f96fc2b3c1830580edcc29146afd6a9f61Mark Andrews# If left blank, NLM_NAME will be used.
c5e9423340dff77b2d3b79fcd4908708770a49c3Mukund SivaramanNLM_DESCRIPTION = Apache $(VERSION_STR) SED Module
ea3aa401bc74d34560af190a4009d436054d1bfaMark Andrews# This is used by the '-threadname' directive. If left blank,
ea3aa401bc74d34560af190a4009d436054d1bfaMark Andrews# NLM_NAME Thread will be used.
ea3aa401bc74d34560af190a4009d436054d1bfaMark AndrewsNLM_THREAD_NAME = modsed Module
6444de08d1aacf7396663b7a82d62eedf534c3d7Mark Andrews# If this is specified, it will override VERSION value in
5c5c6d289db78e41f714007426a387498e15963cFrancis Dupont# $(AP_WORK)\build\NWGNUenvironment.inc
5c5c6d289db78e41f714007426a387498e15963cFrancis Dupont# If this is specified, it will override the default of 64K
fc63119c8b7aa8827fad9e3e45e50c69bc2630e8Francis DupontNLM_STACK_SIZE = 8192
d040fa2f1c9c3045420ee25933b699290ab19250Mark Andrews# If this is specified it will be used by the link '-entry' directive
0155ecba77787bc625ef926cdc856829fc22133cTinderbox UserNLM_ENTRY_SYM = _LibCPrelude
092d3b76db6b93b8029bd7d083e74fc80fb41858Mark Andrews# If this is specified it will be used by the link '-exit' directive
92384667ff3bc059237849b3afd4c715c9164435Evan HuntNLM_EXIT_SYM = _LibCPostlude
64d715c22acbed195703bb9b96aac2b938a83de2Mark Andrews# If this is specified it will be used by the link '-check' directive
3230429e175dcaafe9c59967124d44c02ca0ccadEvan HuntNLM_CHECK_SYM =
3230429e175dcaafe9c59967124d44c02ca0ccadEvan Hunt# If these are specified it will be used by the link '-flags' directive
3230429e175dcaafe9c59967124d44c02ca0ccadEvan HuntNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
3230429e175dcaafe9c59967124d44c02ca0ccadEvan Hunt# If this is specified it will be linked in with the XDCData option in the def
c4f54e5bd1cd09f601252627b5b26768ab797742Evan Hunt# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
4ccffa13aa1f87d8d3dbdf7a74cf29b1c323ad52Tinderbox User# by setting APACHE_UNIPROC in the environment
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# If there is an NLM target, put it here
e32d354f754a5d7847a0862bcd6302827ea225bfEvan HuntTARGET_nlm = \
c4abb197160a74f7cd4ad23ebc63fbe0194010abEvan Hunt# If there is an LIB target, put it here
a0b4f6d952cc6adde281948cf995868b44f366e8Evan HuntTARGET_lib = \
0c3f2ff9738efe01c4e9cf62592516f27774b9d4Evan Hunt# These are the OBJ files needed to create the NLM target above.
a0b4f6d952cc6adde281948cf995868b44f366e8Evan Hunt# Paths must all use the '/' character
90fc237a1fdf1680ef254f16b497f90ac759f71bEvan HuntFILES_nlm_objs = \
3cc8c7d63040a3eafde2b00e1f60465e7053208aEvan Hunt# These are the LIB files needed to create the NLM target above.
3cc8c7d63040a3eafde2b00e1f60465e7053208aEvan Hunt# These will be added as a library command in the link.opt file.
ce96d4326c872c8165b5e3a81ac5b49950c782c6Evan HuntFILES_nlm_libs = \
ce96d4326c872c8165b5e3a81ac5b49950c782c6Evan Hunt# These are the modules that the above NLM target depends on to load.
ce96d4326c872c8165b5e3a81ac5b49950c782c6Evan Hunt# These will be added as a module command in the link.opt file.
ce96d4326c872c8165b5e3a81ac5b49950c782c6Evan HuntFILES_nlm_modules = \
1feee79e1f8b946af9ebcc9dc31514aafb872438Mark Andrews# If the nlm has a msg file, put it's path here
c2f8108123c40f9be5c7d8255300e578ca8a47a6Mark AndrewsFILE_nlm_msg =
4e59131f1838d31eac9b355da467516ecd291752Mark Andrews# If the nlm has a hlp file put it's path here
f0a54842b1a50dac0b020958eb6025ed676f9a34Mark AndrewsFILE_nlm_hlp =
0f5144163c44a67d9be986383769852a0dae502aMark Andrews# If this is specified, it will override $(NWOS)\copyright.txt.
0f5144163c44a67d9be986383769852a0dae502aMark AndrewsFILE_nlm_copyright =
f274cbeaed0e4c5fdbde9f5c30833d7f1da37cd3Mark Andrews# Any additional imports go here
00fb0253c9df8a4686115745ae91d501f62c7451Mark AndrewsFILES_nlm_Ximports = \
d84a4d216d513bec15e83ec6c6e7863a24ff548bMark Andrews# Any symbols exported to here
c6e22bbaefce98c37c1def3f971d214a9a147ad5Evan HuntFILES_nlm_exports = \
e82c572164eeaaa045a26196fe6096cbef3c10c8Mark Andrews sed_module \
6932de75eff5f92475027d294264c80478c3c070Tinderbox User# These are the OBJ files needed to create the LIB target above.
dd66b77417aff9a7805f52b1e37ac48e647e0102Evan Hunt# Paths must all use the '/' character
40b28f54029a5399fc17d895dd9e8bbcd97d6b70Mark AndrewsFILES_lib_objs = \
7fbfa379e25b675ec46ae30925b4b2923a07c893Francis Dupont# implement targets and dependancies (leave this section alone)
498b0610312364afc5698b2e4caaa4dcc836133aEvan Huntlibs :: $(OBJDIR) $(TARGET_lib)
7caeff39c28e82ec720c75d86528bb903dae77d4Jeremy C. Reednlms :: libs $(TARGET_nlm)
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt# Updated this target to create necessary directories and copy files to the
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
72775a79fedd13e19a567432ace70d7ead28e433Mark Andrewsinstall :: nlms FORCE
871f3c8beeb2134b17414ec167b90a57adb8e122Mark Andrews# Any specialized rules here
48f97c23b7d59c925fc3f4280972e50b8ef67c35Mark Andrews# Include the 'tail' makefile that has targets that depend on variables defined
188690149b54145e1936898e565eb9eec139bbfeEvan Hunt# in this makefile
27174d90ccf7d15539b9384744dbbe7beae1723cEvan Huntinclude $(AP_WORK)\build\NWGNUtail.inc