nwgnuaprtest 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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 =aprtest
  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 apr layer
  79. #
  80. # This is used by the '-threadname' directive. If left blank,
  81. # NLM_NAME Thread will be used.
  82. #
  83. NLM_THREAD_NAME = aprtest
  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 = aprtest
  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 = 524288
  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)/aprtest.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)/abts.o \
  140. $(OBJDIR)/testargs.o \
  141. $(OBJDIR)/testatomic.o \
  142. $(OBJDIR)/testdir.o \
  143. $(OBJDIR)/testdup.o \
  144. $(OBJDIR)/testdso.o \
  145. $(OBJDIR)/testenv.o \
  146. $(OBJDIR)/testfilecopy.o \
  147. $(OBJDIR)/testfileinfo.o \
  148. $(OBJDIR)/testfile.o \
  149. $(OBJDIR)/testflock.o \
  150. $(OBJDIR)/testfmt.o \
  151. $(OBJDIR)/testfnmatch.o \
  152. $(OBJDIR)/testglobalmutex.o \
  153. $(OBJDIR)/testhash.o \
  154. $(OBJDIR)/testipsub.o \
  155. $(OBJDIR)/testlfs.o \
  156. $(OBJDIR)/testlock.o \
  157. $(OBJDIR)/testmmap.o \
  158. $(OBJDIR)/testnames.o \
  159. $(OBJDIR)/testoc.o \
  160. $(OBJDIR)/testpath.o \
  161. $(OBJDIR)/testpipe.o \
  162. $(OBJDIR)/testpoll.o \
  163. $(OBJDIR)/testpools.o \
  164. $(OBJDIR)/testproc.o \
  165. $(OBJDIR)/testprocmutex.o \
  166. $(OBJDIR)/testrand.o \
  167. $(OBJDIR)/testrand2.o \
  168. $(OBJDIR)/testshm.o \
  169. $(OBJDIR)/testsleep.o \
  170. $(OBJDIR)/testsock.o \
  171. $(OBJDIR)/testsockets.o \
  172. $(OBJDIR)/testsockopt.o \
  173. $(OBJDIR)/teststr.o \
  174. $(OBJDIR)/teststrnatcmp.o \
  175. $(OBJDIR)/testtable.o \
  176. $(OBJDIR)/testtemp.o \
  177. $(OBJDIR)/testthread.o \
  178. $(OBJDIR)/testtime.o \
  179. $(OBJDIR)/testud.o \
  180. $(OBJDIR)/testuser.o \
  181. $(OBJDIR)/testutil.o \
  182. $(OBJDIR)/testvsn.o \
  183. $(OBJDIR)/nw_misc.o \
  184. $(EOLIST)
  185. # Pending tests
  186. #
  187. # These are the LIB files needed to create the NLM target above.
  188. # These will be added as a library command in the link.opt file.
  189. #
  190. FILES_nlm_libs = \
  191. libcpre.o \
  192. $(EOLIST)
  193. #
  194. # These are the modules that the above NLM target depends on to load.
  195. # These will be added as a module command in the link.opt file.
  196. #
  197. FILES_nlm_modules = \
  198. Libc \
  199. APRLIB \
  200. $(EOLIST)
  201. #
  202. # If the nlm has a msg file, put it's path here
  203. #
  204. FILE_nlm_msg =
  205. #
  206. # If the nlm has a hlp file put it's path here
  207. #
  208. FILE_nlm_hlp =
  209. #
  210. # If this is specified, it will override the default copyright.
  211. #
  212. FILE_nlm_copyright =
  213. #
  214. # Any additional imports go here
  215. #
  216. FILES_nlm_Ximports = \
  217. @libc.imp \
  218. @$(APR)/aprlib.imp \
  219. $(EOLIST)
  220. #
  221. # Any symbols exported to here
  222. #
  223. FILES_nlm_exports = \
  224. $(EOLIST)
  225. #
  226. # These are the OBJ files needed to create the LIB target above.
  227. # Paths must all use the '/' character
  228. #
  229. FILES_lib_objs = \
  230. $(EOLIST)
  231. #
  232. # implement targets and dependancies (leave this section alone)
  233. #
  234. libs :: $(OBJDIR) $(TARGET_lib)
  235. nlms :: libs $(TARGET_nlm)
  236. #
  237. # Updated this target to create necessary directories and copy files to the
  238. # correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples)
  239. #
  240. install :: nlms FORCE
  241. #
  242. # Any specialized rules here
  243. #
  244. #
  245. # Include the 'tail' makefile that has targets that depend on variables defined
  246. # in this makefile
  247. #
  248. include $(APR_WORK)\build\NWGNUtail.inc