nsprpub/lib/prstreams/Makefile.in

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

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 ifeq ($(OS_ARCH), IRIX)
michael@0 18 ifneq ($(OS_RELEASE),5.3)
michael@0 19 CCC_ONLY_FLAGS += -exceptions
michael@0 20 endif
michael@0 21 endif
michael@0 22
michael@0 23 ifeq ($(OS_ARCH), BeOS)
michael@0 24 CFLAGS += -frtti -fexceptions
michael@0 25 endif
michael@0 26
michael@0 27 INCLUDES = -I$(dist_includedir)
michael@0 28
michael@0 29 HEADERS = $(wildcard $(srcdir)/*.h)
michael@0 30
michael@0 31 CSRCS = \
michael@0 32 plvrsion.c \
michael@0 33 $(NULL)
michael@0 34
michael@0 35 CXXSRCS = \
michael@0 36 prstrms.cpp \
michael@0 37 $(NULL)
michael@0 38
michael@0 39 OBJS = $(addprefix $(OBJDIR)/,$(CSRCS:.c=.$(OBJ_SUFFIX)) $(CXXSRCS:.cpp=.$(OBJ_SUFFIX)))
michael@0 40
michael@0 41 ifeq ($(OS_ARCH), WINNT)
michael@0 42 RES=$(OBJDIR)/prstrms.res
michael@0 43 RESNAME=prstrms.rc
michael@0 44 OS_LIBS = user32.lib
michael@0 45 else
michael@0 46 ifeq ($(OS_ARCH),OS2)
michael@0 47 OS_LIBS = -lstdcpp
michael@0 48 else
michael@0 49 ifeq ($(OS_ARCH), AIX)
michael@0 50 ifeq ($(OS_RELEASE), 4.1)
michael@0 51 ifeq ($(CLASSIC_NSPR),1)
michael@0 52 OS_LIBS += -lC -lc
michael@0 53 else
michael@0 54 OS_LIBS += -lC_r -lc_r
michael@0 55 endif
michael@0 56 else
michael@0 57 # makeC++SharedLib(_r) is in either /usr/lpp/xlC/bin
michael@0 58 # or /usr/ibmcxx/bin.
michael@0 59 ifeq ($(CLASSIC_NSPR),1)
michael@0 60 MKSHLIB = makeC++SharedLib -p 0
michael@0 61 else
michael@0 62 MKSHLIB = makeC++SharedLib_r -p 0
michael@0 63 endif
michael@0 64 OS_LIBS += -ldl
michael@0 65 endif
michael@0 66 endif
michael@0 67 endif
michael@0 68 endif
michael@0 69
michael@0 70 ifeq ($(OS_ARCH),BeOS)
michael@0 71 OS_LIBS = -lstdc++.r4
michael@0 72 endif
michael@0 73
michael@0 74 ifeq ($(OS_ARCH), UNIXWARE)
michael@0 75 OS_LIBS += -lC
michael@0 76 endif
michael@0 77
michael@0 78 EXTRA_LIBS = $(LIBNSPR)
michael@0 79
michael@0 80 # On SCOOS, we can't link with extra libraries when
michael@0 81 # we build a shared library. If we do so, the linker doesn't
michael@0 82 # complain, but we would run into weird problems at run-time.
michael@0 83 # Therefore on these platforms, we link just the object files.
michael@0 84 ifeq ($(OS_ARCH),SCOOS)
michael@0 85 EXTRA_LIBS =
michael@0 86 endif
michael@0 87
michael@0 88 ifdef RESOLVE_LINK_SYMBOLS
michael@0 89 EXTRA_LIBS += $(OS_LIBS)
michael@0 90 endif
michael@0 91
michael@0 92 LIBRARY_NAME = prstrms
michael@0 93 LIBRARY_VERSION = $(MOD_MAJOR_VERSION)
michael@0 94
michael@0 95 RELEASE_HEADERS = $(HEADERS)
michael@0 96 RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR)
michael@0 97 RELEASE_LIBS = $(TARGETS)
michael@0 98
michael@0 99 include $(topsrcdir)/config/rules.mk
michael@0 100
michael@0 101 #
michael@0 102 # Version information generation (begin)
michael@0 103 #
michael@0 104 ECHO = echo
michael@0 105 TINC = $(OBJDIR)/_pl_bld.h
michael@0 106 PROD = $(notdir $(SHARED_LIBRARY))
michael@0 107 NOW = $(MOD_DEPTH)/config/$(OBJDIR)/now
michael@0 108 SH_DATE = $(shell date "+%Y-%m-%d %T")
michael@0 109 SH_NOW = $(shell $(NOW))
michael@0 110
michael@0 111 ifeq ($(OS_ARCH), WINNT)
michael@0 112 SUF = i64
michael@0 113 else
michael@0 114 SUF = LL
michael@0 115 endif
michael@0 116
michael@0 117 $(TINC):
michael@0 118 @$(MAKE_OBJDIR)
michael@0 119 @$(ECHO) '#define _BUILD_STRING "$(SH_DATE)"' > $(TINC)
michael@0 120 @if test ! -z "$(SH_NOW)"; then \
michael@0 121 $(ECHO) '#define _BUILD_TIME $(SH_NOW)$(SUF)' >> $(TINC); \
michael@0 122 else \
michael@0 123 true; \
michael@0 124 fi
michael@0 125 @$(ECHO) '#define _PRODUCTION "$(PROD)"' >> $(TINC)
michael@0 126
michael@0 127
michael@0 128 $(OBJDIR)/plvrsion.$(OBJ_SUFFIX): plvrsion.c $(TINC)
michael@0 129 ifeq ($(OS_ARCH), WINNT)
michael@0 130 $(CC) -o $@ -c $(CFLAGS) -I$(OBJDIR) $<
michael@0 131 else
michael@0 132 $(CC) -o $@ -c $(CFLAGS) -I$(OBJDIR) $<
michael@0 133 endif
michael@0 134 #
michael@0 135 # Version information generation (end)
michael@0 136 #
michael@0 137
michael@0 138 export:: $(TARGETS) $(HEADERS)
michael@0 139 $(INSTALL) -m 444 $(HEADERS) $(dist_includedir)
michael@0 140 $(INSTALL) -m 444 $(TARGETS) $(dist_libdir)
michael@0 141 ifeq ($(OS_ARCH),OS2)
michael@0 142 $(INSTALL) -m 444 $(TARGETS) $(dist_bindir)
michael@0 143 endif
michael@0 144 ifeq ($(OS_ARCH),HP-UX)
michael@0 145 ifdef SHARED_LIBRARY
michael@0 146 $(INSTALL) -m 755 $(SHARED_LIBRARY) $(dist_libdir)
michael@0 147 endif
michael@0 148 endif

mercurial