nsprpub/lib/ds/Makefile.in

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 #
michael@0 2 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 5
michael@0 6 #! gmake
michael@0 7
michael@0 8 MOD_DEPTH = ../..
michael@0 9 topsrcdir = @top_srcdir@
michael@0 10 srcdir = @srcdir@
michael@0 11 VPATH = @srcdir@
michael@0 12
michael@0 13 include $(MOD_DEPTH)/config/autoconf.mk
michael@0 14
michael@0 15 include $(topsrcdir)/config/config.mk
michael@0 16
michael@0 17 INCLUDES = -I$(dist_includedir) -I$(topsrcdir)/pr/include
michael@0 18
michael@0 19 CSRCS = \
michael@0 20 plarena.c \
michael@0 21 plhash.c \
michael@0 22 plvrsion.c \
michael@0 23 $(NULL)
michael@0 24
michael@0 25 HEADERS = \
michael@0 26 plarenas.h \
michael@0 27 plarena.h \
michael@0 28 plhash.h \
michael@0 29 $(NULL)
michael@0 30
michael@0 31 HEADERS := $(addprefix $(srcdir)/, $(HEADERS))
michael@0 32
michael@0 33 ifeq ($(OS_ARCH), WINNT)
michael@0 34 RES=$(OBJDIR)/plds.res
michael@0 35 RESNAME=plds.rc
michael@0 36 endif # WINNT
michael@0 37
michael@0 38 ifeq ($(OS_ARCH), AIX)
michael@0 39 ifeq ($(CLASSIC_NSPR),1)
michael@0 40 OS_LIBS = -lc
michael@0 41 else
michael@0 42 OS_LIBS = -lc_r
michael@0 43 endif
michael@0 44 endif
michael@0 45
michael@0 46 ifeq ($(OS_ARCH),IRIX)
michael@0 47 OS_LIBS = -lc
michael@0 48 endif
michael@0 49
michael@0 50 ifeq ($(OS_ARCH),SunOS)
michael@0 51 OS_LIBS = -lc
michael@0 52 MAPFILE = $(OBJDIR)/pldsmap.sun
michael@0 53 GARBAGE += $(MAPFILE)
michael@0 54 ifdef NS_USE_GCC
michael@0 55 ifdef GCC_USE_GNU_LD
michael@0 56 MKSHLIB += -Wl,--version-script,$(MAPFILE)
michael@0 57 else
michael@0 58 MKSHLIB += -Wl,-M,$(MAPFILE)
michael@0 59 endif
michael@0 60 else
michael@0 61 MKSHLIB += -M $(MAPFILE)
michael@0 62 endif
michael@0 63 # The -R '$ORIGIN' linker option instructs this library to search for its
michael@0 64 # dependencies in the same directory where it resides.
michael@0 65 MKSHLIB += -R '$$ORIGIN'
michael@0 66 endif
michael@0 67
michael@0 68 ifeq ($(OS_ARCH),OS2)
michael@0 69 MAPFILE = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).def
michael@0 70 GARBAGE += $(MAPFILE)
michael@0 71 MKSHLIB += $(MAPFILE)
michael@0 72 endif
michael@0 73
michael@0 74 EXTRA_LIBS = $(LIBNSPR)
michael@0 75
michael@0 76 # On SCOOS, we can't link with extra libraries when
michael@0 77 # we build a shared library. If we do so, the linker doesn't
michael@0 78 # complain, but we would run into weird problems at run-time.
michael@0 79 # Therefore on these platforms, we link just the .o files.
michael@0 80 ifeq ($(OS_ARCH),SCOOS)
michael@0 81 EXTRA_LIBS =
michael@0 82 endif
michael@0 83
michael@0 84 ifdef RESOLVE_LINK_SYMBOLS
michael@0 85 EXTRA_LIBS += $(OS_LIBS)
michael@0 86 endif
michael@0 87
michael@0 88 LIBRARY_NAME = plds
michael@0 89 LIBRARY_VERSION = $(MOD_MAJOR_VERSION)
michael@0 90
michael@0 91 RELEASE_HEADERS = $(HEADERS)
michael@0 92 RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR)
michael@0 93 RELEASE_LIBS = $(TARGETS)
michael@0 94
michael@0 95 include $(topsrcdir)/config/rules.mk
michael@0 96
michael@0 97 #
michael@0 98 # Version information generation (begin)
michael@0 99 #
michael@0 100 ECHO = echo
michael@0 101 TINC = $(OBJDIR)/_pl_bld.h
michael@0 102 PROD = $(notdir $(SHARED_LIBRARY))
michael@0 103 NOW = $(MOD_DEPTH)/config/$(OBJDIR)/now
michael@0 104 SH_DATE = $(shell date "+%Y-%m-%d %T")
michael@0 105 SH_NOW = $(shell $(NOW))
michael@0 106
michael@0 107 ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT)
michael@0 108 SUF = i64
michael@0 109 else
michael@0 110 SUF = LL
michael@0 111 endif
michael@0 112
michael@0 113 GARBAGE += $(TINC)
michael@0 114
michael@0 115 $(TINC):
michael@0 116 @$(MAKE_OBJDIR)
michael@0 117 @$(ECHO) '#define _BUILD_STRING "$(SH_DATE)"' > $(TINC)
michael@0 118 @if test ! -z "$(SH_NOW)"; then \
michael@0 119 $(ECHO) '#define _BUILD_TIME $(SH_NOW)$(SUF)' >> $(TINC); \
michael@0 120 else \
michael@0 121 true; \
michael@0 122 fi
michael@0 123 @$(ECHO) '#define _PRODUCTION "$(PROD)"' >> $(TINC)
michael@0 124
michael@0 125
michael@0 126 $(OBJDIR)/plvrsion.$(OBJ_SUFFIX): plvrsion.c $(TINC)
michael@0 127 ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT)
michael@0 128 $(CC) -Fo$@ -c $(CFLAGS) -I$(OBJDIR) $<
michael@0 129 else
michael@0 130 $(CC) -o $@ -c $(CFLAGS) -I$(OBJDIR) $<
michael@0 131 endif
michael@0 132 #
michael@0 133 # Version information generation (end)
michael@0 134 #
michael@0 135
michael@0 136 #
michael@0 137 # The Client build wants the shared libraries in $(dist_bindir),
michael@0 138 # so we also install them there.
michael@0 139 #
michael@0 140
michael@0 141 export:: $(TARGETS)
michael@0 142 $(INSTALL) -m 444 $(HEADERS) $(dist_includedir)
michael@0 143 $(INSTALL) -m 444 $(TARGETS) $(dist_libdir)
michael@0 144 ifdef SHARED_LIBRARY
michael@0 145 ifeq ($(OS_ARCH),HP-UX)
michael@0 146 $(INSTALL) -m 755 $(SHARED_LIBRARY) $(dist_libdir)
michael@0 147 $(INSTALL) -m 755 $(SHARED_LIBRARY) $(dist_bindir)
michael@0 148 else
michael@0 149 $(INSTALL) -m 444 $(SHARED_LIBRARY) $(dist_bindir)
michael@0 150 endif
michael@0 151 endif

mercurial