NWGNUmakefile 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. FILES_prebuild_headers = \
  14. $(APR)/include/fspr.h \
  15. $(APRUTIL)/include/apu.h \
  16. $(APRUTIL)/include/apu_want.h \
  17. $(APRUTIL)/include/fspr_ldap.h \
  18. $(APRUTIL)/include/private/apu_config.h \
  19. $(APRUTIL)/include/private/apu_select_dbm.h \
  20. $(APRUTIL)/xml/expat/lib/expat.h \
  21. $(APRUTIL)/xml/expat/lib/config.h \
  22. $(EOLIST)
  23. nlms :: $(APR)/aprlib.imp
  24. $(APR)/aprlib.imp : make_nw_export.awk nw_export.i
  25. @echo Generating $(subst /,\,$@)
  26. awk -f make_nw_export.awk nw_export.i | sort >$(APR)/aprlib.imp
  27. nw_export.i : nw_export.inc $(FILES_prebuild_headers) $(NLM_NAME)_cc.opt
  28. @echo Generating $(subst /,\,$@)
  29. $(CC) $< @$(NLM_NAME)_cc.opt
  30. $(NLM_NAME)_cc.opt : NWGNUmakefile $(APR_WORK)\build\NWGNUenvironment.inc $(APR_WORK)\build\NWGNUhead.inc $(APR_WORK)\build\NWGNUtail.inc $(CUSTOM_INI)
  31. $(CHK) $@ $(DEL) $@
  32. @echo -P >> $@
  33. @echo -EP >> $@
  34. @echo -nosyspath >> $@
  35. @echo -w nocmdline >> $@
  36. @echo $(DEFINES) -DGENEXPORTS >> $@
  37. @echo -I$(APR)\include >> $@
  38. @echo -I$(APR)\include\arch\netware >> $@
  39. @echo -I$(APR)\include\arch\unix >> $@
  40. @echo -I$(APRUTIL)\include >> $@
  41. @echo -ir $(NOVELLLIBC) >> $@
  42. ifneq "$(LDAPSDK)" ""
  43. @echo -ir $(LDAPSDK) >> $@
  44. endif
  45. $(APR)/include/%.h: $(subst /,\,$(APR))\include\%.hnw
  46. @echo Creating $(subst /,\,$@)
  47. copy $< $(subst /,\,$(APR))\include\$(@F)
  48. $(APRUTIL)/include/%.h: $(subst /,\,$(APRUTIL))\include\%.hnw
  49. @echo Creating $(subst /,\,$@)
  50. copy $< $(subst /,\,$(APRUTIL))\include\$(@F)
  51. $(APRUTIL)/include/private/%.h: $(subst /,\,$(APRUTIL))\include\private\%.hw
  52. @echo Creating $(subst /,\,$@)
  53. copy $< $(subst /,\,$(APRUTIL))\include\private\$(@F)
  54. $(APRUTIL)/xml/expat/lib/%.h: $(subst /,\,$(APRUTIL))\xml\expat\lib\%.hnw
  55. @echo Creating $(subst /,\,$@)
  56. copy $< $(subst /,\,$(APRUTIL))\xml\expat\lib\$(@F)
  57. $(APRUTIL)/xml/expat/lib/%.h: $(subst /,\,$(APRUTIL))\xml\expat\lib\%.h.in
  58. @echo Creating $(subst /,\,$@)
  59. copy $< $(subst /,\,$(APRUTIL))\xml\expat\lib\$(@F)
  60. #
  61. # You can use this target if all that is needed is to copy files to the
  62. # installation area
  63. #
  64. install :: nlms FORCE
  65. clean ::
  66. $(CHK) nw_export.i $(DEL) nw_export.i
  67. $(CHK) $(NLM_NAME)_cc.opt $(DEL) $(NLM_NAME)_cc.opt
  68. $(CHK) NWGNUversion.inc $(DEL) NWGNUversion.inc
  69. $(CHK) $(subst /,\,$(APR))\include\fspr.h $(DEL) $(subst /,\,$(APR))\include\fspr.h
  70. $(CHK) $(subst /,\,$(APRUTIL))\include\apu.h $(DEL) $(subst /,\,$(APRUTIL))\include\apu.h
  71. $(CHK) $(subst /,\,$(APRUTIL))\include\fspr_ldap.h $(DEL) $(subst /,\,$(APRUTIL))\include\fspr_ldap.h
  72. $(CHK) $(subst /,\,$(APRUTIL))\include\private\apu_config.h $(DEL) $(subst /,\,$(APRUTIL))\include\private\apu_config.h
  73. $(CHK) $(subst /,\,$(APRUTIL))\include\private\apu_select_dbm.h $(DEL) $(subst /,\,$(APRUTIL))\include\private\apu_select_dbm.h
  74. $(CHK) $(subst /,\,$(APRUTIL))\xml\expat\lib\expat.h $(DEL) $(subst /,\,$(APRUTIL))\xml\expat\lib\expat.h
  75. $(CHK) $(subst /,\,$(APRUTIL))\xml\expat\lib\config.h $(DEL) $(subst /,\,$(APRUTIL))\xml\expat\lib\config.h
  76. $(CHK) $(subst /,\,$(APR))\aprlib.imp $(DEL) $(subst /,\,$(APR))\aprlib.imp