2
0

NWGNUmakefile 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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 apr 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)/aprtest.nlm \
  133. $(OBJDIR)/mod_test.nlm \
  134. $(OBJDIR)/proc_child.nlm \
  135. $(OBJDIR)/readchild.nlm \
  136. $(OBJDIR)/globalmutexchild.nlm \
  137. $(OBJDIR)/sockchild.nlm \
  138. $(OBJDIR)/tryread.nlm \
  139. $(OBJDIR)/testatmc.nlm \
  140. $(EOLIST)
  141. #
  142. # If there is an LIB target, put it here
  143. #
  144. TARGET_lib = \
  145. $(EOLIST)
  146. #
  147. # These are the OBJ files needed to create the NLM target above.
  148. # Paths must all use the '/' character
  149. #
  150. FILES_nlm_objs = \
  151. $(EOLIST)
  152. #
  153. # These are the LIB files needed to create the NLM target above.
  154. # These will be added as a library command in the link.opt file.
  155. #
  156. FILES_nlm_libs = \
  157. $(EOLIST)
  158. #
  159. # These are the modules that the above NLM target depends on to load.
  160. # These will be added as a module command in the link.opt file.
  161. #
  162. FILES_nlm_modules = \
  163. aprlib \
  164. $(EOLIST)
  165. #
  166. # If the nlm has a msg file, put it's path here
  167. #
  168. FILE_nlm_msg =
  169. #
  170. # If the nlm has a hlp file put it's path here
  171. #
  172. FILE_nlm_hlp =
  173. #
  174. # If this is specified, it will override the default copyright.
  175. #
  176. FILE_nlm_copyright =
  177. #
  178. # Any additional imports go here
  179. #
  180. FILES_nlm_Ximports = \
  181. $(EOLIST)
  182. #
  183. # Any symbols exported to here
  184. #
  185. FILES_nlm_exports = \
  186. $(EOLIST)
  187. #
  188. # These are the OBJ files needed to create the LIB target above.
  189. # Paths must all use the '/' character
  190. #
  191. FILES_lib_objs = \
  192. $(EOLIST)
  193. #
  194. # implement targets and dependancies (leave this section alone)
  195. #
  196. libs :: $(OBJDIR) $(TARGET_lib)
  197. nlms :: libs $(TARGET_nlm)
  198. #
  199. # Updated this target to create necessary directories and copy files to the
  200. # correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples)
  201. #
  202. install :: nlms FORCE
  203. copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2
  204. #
  205. # Any specialized rules here
  206. #
  207. #
  208. # Include the 'tail' makefile that has targets that depend on variables defined
  209. # in this makefile
  210. #
  211. include $(APR_WORK)\build\NWGNUtail.inc