2
0

nwgnuproc_child 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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 $(APR_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. $(APR)/include \
  17. $(APR)/include/arch/NetWare \
  18. $(EOLIST)
  19. #
  20. # These flags will come after CFLAGS
  21. #
  22. XCFLAGS += \
  23. $(EOLIST)
  24. #
  25. # These defines will come after DEFINES
  26. #
  27. XDEFINES += \
  28. $(EOLIST)
  29. #
  30. # These flags will be added to the link.opt file
  31. #
  32. XLFLAGS += \
  33. $(EOLIST)
  34. #
  35. # These values will be appended to the correct variables based on the value of
  36. # RELEASE
  37. #
  38. ifeq "$(RELEASE)" "debug"
  39. XINCDIRS += \
  40. $(EOLIST)
  41. XCFLAGS += \
  42. $(EOLIST)
  43. XDEFINES += \
  44. $(EOLIST)
  45. XLFLAGS += \
  46. $(EOLIST)
  47. endif
  48. ifeq "$(RELEASE)" "noopt"
  49. XINCDIRS += \
  50. $(EOLIST)
  51. XCFLAGS += \
  52. $(EOLIST)
  53. XDEFINES += \
  54. $(EOLIST)
  55. XLFLAGS += \
  56. $(EOLIST)
  57. $(EOLIST)
  58. endif
  59. ifeq "$(RELEASE)" "release"
  60. XINCDIRS += \
  61. $(EOLIST)
  62. XCFLAGS += \
  63. $(EOLIST)
  64. XDEFINES += \
  65. $(EOLIST)
  66. XLFLAGS += \
  67. $(EOLIST)
  68. endif
  69. #
  70. # These are used by the link target if an NLM is being generated
  71. # This is used by the link 'name' directive to name the nlm. If left blank
  72. # TARGET_nlm (see below) will be used.
  73. #
  74. NLM_NAME = proc_child
  75. #
  76. # This is used by the link '-desc ' directive.
  77. # If left blank, NLM_NAME will be used.
  78. #
  79. NLM_DESCRIPTION = child NLM to test the proc layer
  80. #
  81. # This is used by the '-threadname' directive. If left blank,
  82. # NLM_NAME Thread will be used.
  83. #
  84. NLM_THREAD_NAME = proc_child
  85. #
  86. # This is used by the '-screenname' directive. If left blank,
  87. # 'Apache for NetWare' Thread will be used.
  88. #
  89. NLM_SCREEN_NAME = DEFAULT
  90. #
  91. # If this is specified, it will override VERSION value in
  92. # $(APR_WORK)\build\NWGNUenvironment.inc
  93. #
  94. NLM_VERSION = 1,0,0
  95. #
  96. # If this is specified, it will override the default of 64K
  97. #
  98. NLM_STACK_SIZE =
  99. #
  100. # If this is specified it will be used by the link '-entry' directive
  101. #
  102. NLM_ENTRY_SYM = _LibCPrelude
  103. #
  104. # If this is specified it will be used by the link '-exit' directive
  105. #
  106. NLM_EXIT_SYM = _LibCPostlude
  107. #
  108. # If this is specified it will be used by the link '-check' directive
  109. #
  110. NLM_CHECK_SYM =
  111. #
  112. # If this is specified it will be used by the link '-flags' directive
  113. #
  114. NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION, MULTIPLE
  115. #
  116. # If this is specified it will be linked in with the XDCData option in the def
  117. # file instead of the default of $(APR)/misc/netware/apache.xdc. XDCData can
  118. # be disabled by setting APACHE_UNIPROC in the environment
  119. #
  120. XDCDATA =
  121. #
  122. # Declare all target files (you must add your files here)
  123. #
  124. #
  125. # If there is an NLM target, put it here
  126. #
  127. TARGET_nlm = \
  128. $(OBJDIR)/proc_child.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)/proc_child.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 the default copyright.
  167. #
  168. FILE_nlm_copyright =
  169. #
  170. # Any additional imports go here
  171. #
  172. FILES_nlm_Ximports = \
  173. @$(APR)/aprlib.imp \
  174. @libc.imp \
  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. #
  198. # Any specialized rules here
  199. #
  200. #
  201. # Include the 'tail' makefile that has targets that depend on variables defined
  202. # in this makefile
  203. #
  204. include $(APR_WORK)\build\NWGNUtail.inc