NWGNUmakefile 4.3 KB

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