Makefile.in 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. #! gmake
  6. MOD_DEPTH = ../../..
  7. topsrcdir = @top_srcdir@
  8. srcdir = @srcdir@
  9. VPATH = @srcdir@
  10. include $(MOD_DEPTH)/config/autoconf.mk
  11. include $(topsrcdir)/config/config.mk
  12. CSRCS = mygetval.c mysetval.c
  13. INCLUDES = -I$(dist_includedir)
  14. OBJS = $(OBJDIR)/mygetval.$(OBJ_SUFFIX) \
  15. $(OBJDIR)/mysetval.$(OBJ_SUFFIX)
  16. ifeq ($(OS_TARGET), WIN16)
  17. W16OBJS = $(subst $(space),$(comma)$(space),$(OBJS))
  18. endif
  19. ifeq ($(OS_ARCH), WINNT)
  20. ifeq ($(OS_TARGET), WIN16)
  21. # do nothing
  22. else
  23. RES=$(OBJDIR)/my.res
  24. RESNAME=../../../pr/src/nspr.rc
  25. endif
  26. endif
  27. ifeq (,$(filter-out WINNT OS2,$(OS_ARCH)))
  28. IMPORT_LIBRARY = $(OBJDIR)/my.$(LIB_SUFFIX)
  29. SHARED_LIBRARY = $(OBJDIR)/my.dll
  30. ifeq ($(OS_ARCH), OS2)
  31. MAPFILE = $(OBJDIR)/my.def
  32. GARBAGE += $(MAPFILE)
  33. MKSHLIB += $(MAPFILE)
  34. endif
  35. TARGETS = $(SHARED_LIBRARY) $(IMPORT_LIBRARY)
  36. else
  37. ifdef MKSHLIB
  38. SHARED_LIBRARY = $(OBJDIR)/libmy.$(DLL_SUFFIX)
  39. endif
  40. TARGETS = $(SHARED_LIBRARY)
  41. endif
  42. #
  43. # To create a loadable module on Darwin, we must override
  44. # -dynamiclib with -bundle.
  45. #
  46. ifeq ($(OS_ARCH),Darwin)
  47. DSO_LDOPTS = -bundle
  48. endif
  49. include $(topsrcdir)/config/rules.mk
  50. ifeq ($(OS_TARGET), WIN16)
  51. # Note: The Win16 target: my.dll requires these macros
  52. # to be overridden to build the test .dll
  53. # default values in win16...mk are for release targets.
  54. #
  55. OS_DLL_OPTION = NOCASEEXACT
  56. OS_LIB_FLAGS = -irn
  57. endif
  58. ifdef SHARED_LIBRARY
  59. export:: $(TARGETS)
  60. clean::
  61. rm -rf $(TARGETS)
  62. endif