nwgnuaputest 4.7 KB

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