NWGNUsubstitute 4.3 KB

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