NWGNUmakefile 4.3 KB

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