2
0

NWGNUmakefile 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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 $(APR_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. $(APR)/include \
  22. $(APR)/include/arch/NetWare \
  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 =
  79. #
  80. # This is used by the link '-desc ' directive.
  81. # If left blank, NLM_NAME will be used.
  82. #
  83. NLM_DESCRIPTION = NLM is to test the apu layer
  84. #
  85. # This is used by the '-threadname' directive. If left blank,
  86. # NLM_NAME Thread will be used.
  87. #
  88. NLM_THREAD_NAME =
  89. #
  90. # This is used by the '-screenname' directive. If left blank,
  91. # 'Apache for NetWare' Thread will be used.
  92. #
  93. NLM_SCREEN_NAME =
  94. #
  95. # If this is specified, it will override VERSION value in
  96. # $(APR_WORK)\build\NWGNUenvironment.inc
  97. #
  98. NLM_VERSION =
  99. #
  100. # If this is specified, it will override the default of 64K
  101. #
  102. NLM_STACK_SIZE =
  103. #
  104. # If this is specified it will be used by the link '-entry' directive
  105. #
  106. NLM_ENTRY_SYM =
  107. #
  108. # If this is specified it will be used by the link '-exit' directive
  109. #
  110. NLM_EXIT_SYM =
  111. #
  112. # If this is specified it will be used by the link '-check' directive
  113. #
  114. NLM_CHECK_SYM =
  115. #
  116. # If this is specified it will be used by the link '-flags' directive
  117. #
  118. NLM_FLAGS =
  119. #
  120. # If this is specified it will be linked in with the XDCData option in the def
  121. # file instead of the default of $(APR)/misc/netware/apache.xdc. XDCData can
  122. # be disabled by setting APACHE_UNIPROC in the environment
  123. #
  124. XDCDATA =
  125. #
  126. # Declare all target files (you must add your files here)
  127. #
  128. #
  129. # If there is an NLM target, put it here
  130. #
  131. TARGET_nlm = \
  132. $(OBJDIR)/aputest.nlm \
  133. $(OBJDIR)/testdate.nlm \
  134. $(EOLIST)
  135. #
  136. # If there is an LIB target, put it here
  137. #
  138. TARGET_lib = \
  139. $(EOLIST)
  140. #
  141. # These are the OBJ files needed to create the NLM target above.
  142. # Paths must all use the '/' character
  143. #
  144. FILES_nlm_objs = \
  145. $(EOLIST)
  146. #
  147. # These are the LIB files needed to create the NLM target above.
  148. # These will be added as a library command in the link.opt file.
  149. #
  150. FILES_nlm_libs = \
  151. $(EOLIST)
  152. #
  153. # These are the modules that the above NLM target depends on to load.
  154. # These will be added as a module command in the link.opt file.
  155. #
  156. FILES_nlm_modules = \
  157. aprlib \
  158. $(EOLIST)
  159. #
  160. # If the nlm has a msg file, put it's path here
  161. #
  162. FILE_nlm_msg =
  163. #
  164. # If the nlm has a hlp file put it's path here
  165. #
  166. FILE_nlm_hlp =
  167. #
  168. # If this is specified, it will override the default copyright.
  169. #
  170. FILE_nlm_copyright =
  171. #
  172. # Any additional imports go here
  173. #
  174. FILES_nlm_Ximports = \
  175. $(EOLIST)
  176. #
  177. # Any symbols exported to here
  178. #
  179. FILES_nlm_exports = \
  180. $(EOLIST)
  181. #
  182. # These are the OBJ files needed to create the LIB target above.
  183. # Paths must all use the '/' character
  184. #
  185. FILES_lib_objs = \
  186. $(EOLIST)
  187. #
  188. # implement targets and dependancies (leave this section alone)
  189. #
  190. libs :: $(OBJDIR) $(TARGET_lib)
  191. nlms :: libs $(TARGET_nlm)
  192. #
  193. # Updated this target to create necessary directories and copy files to the
  194. # correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples)
  195. #
  196. install :: nlms FORCE
  197. copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2
  198. #
  199. # Any specialized rules here
  200. #
  201. #
  202. # Include the 'tail' makefile that has targets that depend on variables defined
  203. # in this makefile
  204. #
  205. include $(APR_WORK)\build\NWGNUtail.inc