NWGNUmakefile 4.1 KB

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