NWGNUmod_asis 4.3 KB

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