nss.mk 756 B

12345678910111213141516171819202122232425262728
  1. # This Source Code Form is subject to the terms of the Mozilla Public
  2. # License, v. 2.0. If a copy of the MPL was not distributed with this
  3. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4. include $(DEPTH)/config/autoconf.mk
  5. include $(topsrcdir)/config/config.mk
  6. dirs :=
  7. define add_dirs
  8. SHARED_LIBRARY_DIRS :=
  9. include $(topsrcdir)/security/$(1)/config.mk
  10. dirs += $$(addprefix $(1)/,$$(SHARED_LIBRARY_DIRS)) $(1)
  11. endef
  12. $(foreach dir,util nss ssl smime,$(eval $(call add_dirs,nss/lib/$(dir))))
  13. libs :=
  14. define add_lib
  15. LIBRARY_NAME :=
  16. include $(topsrcdir)/security/$(1)/manifest.mn
  17. libs += $$(addprefix $(1)/,$(LIB_PREFIX)$$(LIBRARY_NAME).$(LIB_SUFFIX))
  18. endef
  19. $(foreach dir,$(dirs),$(eval $(call add_lib,$(dir))))
  20. echo-variable-%:
  21. @echo $($*)