nwgnutestatmc 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. endif
  58. ifeq "$(RELEASE)" "release"
  59. XINCDIRS += \
  60. $(EOLIST)
  61. XCFLAGS += \
  62. $(EOLIST)
  63. XDEFINES += \
  64. $(EOLIST)
  65. XLFLAGS += \
  66. $(EOLIST)
  67. endif
  68. #
  69. # These are used by the link target if an NLM is being generated
  70. # This is used by the link 'name' directive to name the nlm. If left blank
  71. # TARGET_nlm (see below) will be used.
  72. #
  73. NLM_NAME =testatmc
  74. #
  75. # This is used by the link '-desc ' directive.
  76. # If left blank, NLM_NAME will be used.
  77. #
  78. NLM_DESCRIPTION = NLM is to test the atomic functions
  79. #
  80. # This is used by the '-threadname' directive. If left blank,
  81. # NLM_NAME Thread will be used.
  82. #
  83. NLM_THREAD_NAME = testatmc
  84. #
  85. # This is used by the '-screenname' directive. If left blank,
  86. # 'Apache for NetWare' Thread will be used.
  87. #
  88. NLM_SCREEN_NAME = testatmc
  89. #
  90. # If this is specified, it will override VERSION value in
  91. # $(APR_WORK)\build\NWGNUenvironment.inc
  92. #
  93. NLM_VERSION = 1,0,0
  94. #
  95. # If this is specified, it will override the default of 64K
  96. #
  97. NLM_STACK_SIZE =
  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 this is 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 $(APR)/misc/netware/apache.xdc. XDCData can
  117. # be disabled by setting APACHE_UNIPROC in the environment
  118. #
  119. XDCDATA =
  120. #
  121. # Declare all target files (you must add your files here)
  122. #
  123. #
  124. # If there is an NLM target, put it here
  125. #
  126. TARGET_nlm = \
  127. $(OBJDIR)/testatmc.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. $(OBJDIR)/testatomic.o \
  140. $(OBJDIR)/nw_misc.o \
  141. $(EOLIST)
  142. # Pending tests
  143. #
  144. # These are the LIB files needed to create the NLM target above.
  145. # These will be added as a library command in the link.opt file.
  146. #
  147. FILES_nlm_libs = \
  148. libcpre.o \
  149. $(EOLIST)
  150. #
  151. # These are the modules that the above NLM target depends on to load.
  152. # These will be added as a module command in the link.opt file.
  153. #
  154. FILES_nlm_modules = \
  155. Libc \
  156. APRLIB \
  157. $(EOLIST)
  158. #
  159. # If the nlm has a msg file, put it's path here
  160. #
  161. FILE_nlm_msg =
  162. #
  163. # If the nlm has a hlp file put it's path here
  164. #
  165. FILE_nlm_hlp =
  166. #
  167. # If this is specified, it will override the default copyright.
  168. #
  169. FILE_nlm_copyright =
  170. #
  171. # Any additional imports go here
  172. #
  173. FILES_nlm_Ximports = \
  174. @libc.imp \
  175. @$(APR)/aprlib.imp \
  176. $(EOLIST)
  177. #
  178. # Any symbols exported to here
  179. #
  180. FILES_nlm_exports = \
  181. $(EOLIST)
  182. #
  183. # These are the OBJ files needed to create the LIB target above.
  184. # Paths must all use the '/' character
  185. #
  186. FILES_lib_objs = \
  187. $(EOLIST)
  188. #
  189. # implement targets and dependancies (leave this section alone)
  190. #
  191. libs :: $(OBJDIR) $(TARGET_lib)
  192. nlms :: libs $(TARGET_nlm)
  193. #
  194. # Updated this target to create necessary directories and copy files to the
  195. # correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples)
  196. #
  197. install :: nlms FORCE
  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