nsprpub/lib/prstreams/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.

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

mercurial