NWGNUmakefile 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. #
  2. # Declare the sub-directories to be built here
  3. #
  4. SUBDIRS = \
  5. ldap \
  6. xml \
  7. $(EOLIST)
  8. #
  9. # Get the 'head' of the build environment. This includes default targets and
  10. # paths to tools
  11. #
  12. include $(APR_WORK)\build\NWGNUhead.inc
  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. $(APRUTIL)/include \
  24. $(APRUTIL)/uri \
  25. $(APRUTIL)/dbm/sdbm \
  26. $(APRUTIL)/include/private \
  27. $(APRUTIL)/xml/expat/lib \
  28. $(LDAPSDK)/inc \
  29. $(EOLIST)
  30. #
  31. # These flags will come after CFLAGS
  32. #
  33. XCFLAGS += \
  34. $(EOLIST)
  35. #
  36. # These defines will come after DEFINES
  37. #
  38. XDEFINES += \
  39. $(EOLIST)
  40. #
  41. # These flags will be added to the link.opt file
  42. #
  43. XLFLAGS += \
  44. $(EOLIST)
  45. #
  46. # These values will be appended to the correct variables based on the value of
  47. # RELEASE
  48. #
  49. ifeq "$(RELEASE)" "debug"
  50. XINCDIRS += \
  51. $(EOLIST)
  52. XCFLAGS += \
  53. $(EOLIST)
  54. XDEFINES += \
  55. $(EOLIST)
  56. XLFLAGS += \
  57. $(EOLIST)
  58. endif
  59. ifeq "$(RELEASE)" "noopt"
  60. XINCDIRS += \
  61. $(EOLIST)
  62. XCFLAGS += \
  63. $(EOLIST)
  64. XDEFINES += \
  65. $(EOLIST)
  66. XLFLAGS += \
  67. $(EOLIST)
  68. endif
  69. ifeq "$(RELEASE)" "release"
  70. XINCDIRS += \
  71. $(EOLIST)
  72. XCFLAGS += \
  73. $(EOLIST)
  74. XDEFINES += \
  75. $(EOLIST)
  76. XLFLAGS += \
  77. $(EOLIST)
  78. endif
  79. #
  80. # These are used by the link target if an NLM is being generated
  81. # This is used by the link 'name' directive to name the nlm. If left blank
  82. # TARGET_nlm (see below) will be used.
  83. #
  84. NLM_NAME =
  85. #
  86. # This is used by the link '-desc ' directive.
  87. # If left blank, NLM_NAME will be used.
  88. #
  89. NLM_DESCRIPTION =
  90. #
  91. # This is used by the '-threadname' directive. If left blank,
  92. # NLM_NAME Thread will be used.
  93. #
  94. NLM_THREAD_NAME =
  95. #
  96. # If this is specified, it will override VERSION value in
  97. # $(APR_WORK)\build\NWGNUenvironment.inc
  98. #
  99. NLM_VERSION =
  100. #
  101. # If this is specified, it will override the default of 64K
  102. #
  103. NLM_STACK_SIZE =
  104. #
  105. # If this is specified it will be used by the link '-entry' directive
  106. #
  107. NLM_ENTRY_SYM =
  108. #
  109. # If this is specified it will be used by the link '-exit' directive
  110. #
  111. NLM_EXIT_SYM =
  112. #
  113. # If this is specified it will be used by the link '-check' directive
  114. #
  115. NLM_CHECK_SYM =
  116. #
  117. # If this is specified it will be used by the link '-flags' directive
  118. #
  119. NLM_FLAGS =
  120. #
  121. # If this is specified it will be linked in with the XDCData option in the def
  122. # file instead of the default of $(APR)/misc/netware/apache.xdc. XDCData can
  123. # be disabled by setting APACHE_UNIPROC in the environment
  124. #
  125. XDCDATA =
  126. #
  127. # Declare all target files (you must add your files here)
  128. #
  129. #
  130. # If there is an NLM target, put it here
  131. #
  132. TARGET_nlm = \
  133. $(EOLIST)
  134. #
  135. # If there is an LIB target, put it here
  136. #
  137. TARGET_lib = \
  138. $(OBJDIR)/aprutil.lib \
  139. $(EOLIST)
  140. #
  141. # These are the OBJ files needed to create the NLM target above.
  142. # Paths must all use the '/' character
  143. #
  144. FILES_nlm_objs = \
  145. $(EOLIST)
  146. #
  147. # These are the LIB files needed to create the NLM target above.
  148. # These will be added as a library command in the link.opt file.
  149. #
  150. FILES_nlm_libs = \
  151. $(EOLIST)
  152. #
  153. # These are the modules that the above NLM target depends on to load.
  154. # These will be added as a module command in the link.opt file.
  155. #
  156. FILES_nlm_modules = \
  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 $(NWOS)\copyright.txt.
  168. #
  169. FILE_nlm_copyright =
  170. #
  171. # Any additional imports go here
  172. #
  173. FILES_nlm_Ximports = \
  174. $(EOLIST)
  175. #
  176. # Any symbols exported to here
  177. #
  178. FILES_nlm_exports = \
  179. $(EOLIST)
  180. #
  181. # These are the OBJ files needed to create the LIB target above.
  182. # Paths must all use the '/' character
  183. #
  184. FILES_lib_objs = \
  185. $(OBJDIR)/apr_base64.o \
  186. $(OBJDIR)/apr_brigade.o \
  187. $(OBJDIR)/apr_buckets.o \
  188. $(OBJDIR)/apr_buckets_alloc.o \
  189. $(OBJDIR)/apr_buckets_eos.o \
  190. $(OBJDIR)/apr_buckets_file.o \
  191. $(OBJDIR)/apr_buckets_flush.o \
  192. $(OBJDIR)/apr_buckets_heap.o \
  193. $(OBJDIR)/apr_buckets_mmap.o \
  194. $(OBJDIR)/apr_buckets_pipe.o \
  195. $(OBJDIR)/apr_buckets_pool.o \
  196. $(OBJDIR)/apr_buckets_refcount.o \
  197. $(OBJDIR)/apr_buckets_simple.o \
  198. $(OBJDIR)/apr_buckets_socket.o \
  199. $(OBJDIR)/apr_date.o \
  200. $(OBJDIR)/apr_dbm.o \
  201. $(OBJDIR)/apr_dbd.o \
  202. $(OBJDIR)/apr_dbd_pgsql.o \
  203. $(OBJDIR)/apr_dbm_berkeleydb.o \
  204. $(OBJDIR)/apr_dbm_sdbm.o \
  205. $(OBJDIR)/apr_hooks.o \
  206. $(OBJDIR)/apr_md4.o \
  207. $(OBJDIR)/apr_md5.o \
  208. $(OBJDIR)/apr_queue.o \
  209. $(OBJDIR)/apr_reslist.o \
  210. $(OBJDIR)/apr_rmm.o \
  211. $(OBJDIR)/apr_sha1.o \
  212. $(OBJDIR)/apu_version.o \
  213. $(OBJDIR)/getuuid.o \
  214. $(OBJDIR)/uuid.o \
  215. $(OBJDIR)/apr_strmatch.o \
  216. $(OBJDIR)/apr_uri.o \
  217. $(OBJDIR)/sdbm.o \
  218. $(OBJDIR)/sdbm_hash.o \
  219. $(OBJDIR)/sdbm_lock.o \
  220. $(OBJDIR)/sdbm_pair.o \
  221. $(OBJDIR)/xlate.o \
  222. $(EOLIST)
  223. #
  224. # implement targets and dependancies (leave this section alone)
  225. #
  226. libs :: $(OBJDIR) $(TARGET_lib)
  227. nlms :: libs $(TARGET_nlm)
  228. #
  229. # Updated this target to create necessary directories and copy files to the
  230. # correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples)
  231. #
  232. install :: nlms FORCE
  233. #
  234. # Any specialized rules here
  235. #
  236. vpath %.c buckets:crypto:dbd:dbm:dbm/sdbm:encoding:hooks:ldap:misc:strmatch:uri:xlate:xml
  237. #
  238. # Include the 'tail' makefile that has targets that depend on variables defined
  239. # in this makefile
  240. #
  241. include $(APR_WORK)\build\NWGNUtail.inc