nsprpub/config/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nsprpub/config/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,124 @@
     1.4 +#! gmake
     1.5 +# 
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +MOD_DEPTH	= ..
    1.11 +topsrcdir	= @top_srcdir@
    1.12 +srcdir		= @srcdir@
    1.13 +VPATH		= @srcdir@
    1.14 +
    1.15 +include $(MOD_DEPTH)/config/autoconf.mk
    1.16 +
    1.17 +# Indicate that this directory builds build tools.
    1.18 +INTERNAL_TOOLS	= 1
    1.19 +
    1.20 +# For sanity's sake, we compile nsinstall without the wrapped system
    1.21 +# headers, so that we can use it to set up the wrapped system headers.
    1.22 +VISIBILITY_FLAGS =
    1.23 +
    1.24 +# autoconf.mk must be deleted last (from the top-level directory)
    1.25 +# because it is included by every makefile.
    1.26 +DIST_GARBAGE	= nsprincl.mk nsprincl.sh nspr-config nspr.pc
    1.27 +
    1.28 +RELEASE_BINS	= nspr-config
    1.29 +
    1.30 +include $(topsrcdir)/config/config.mk
    1.31 +
    1.32 +CSRCS	= now.c
    1.33 +
    1.34 +# This version hasn't been ported for us; the one in mozilla/config has
    1.35 +ifneq ($(OS_ARCH),OS2)
    1.36 +CSRCS  += nsinstall.c
    1.37 + 
    1.38 +PLSRCS	= nfspwd.pl
    1.39 +endif
    1.40 +
    1.41 +ifeq (,$(CROSS_COMPILE)$(filter-out WINNT OS2,$(OS_ARCH)))
    1.42 +PROG_SUFFIX = .exe
    1.43 +else
    1.44 +PROG_SUFFIX =
    1.45 +endif
    1.46 +
    1.47 +# Temporary workaround to disable the generation of
    1.48 +# library build time because now.c uses the 'long long'
    1.49 +# data type that's not available on some platforms.
    1.50 +ifeq (,$(filter-out QNX SCOOS UNIXWARE,$(OS_ARCH)))
    1.51 +DEFINES += -DOMIT_LIB_BUILD_TIME
    1.52 +endif
    1.53 +
    1.54 +ifeq ($(OS_ARCH), IRIX)
    1.55 +    ifeq ($(basename $(OS_RELEASE)),6)
    1.56 +        ifndef NS_USE_GCC
    1.57 +            ifeq ($(USE_N32),1)
    1.58 +                XLDOPTS += -n32 -Wl,-woff,85
    1.59 +            else
    1.60 +                ifeq ($(USE_64),1)
    1.61 +                    XLDOPTS += -64
    1.62 +                else
    1.63 +                    XLDOPTS += -32
    1.64 +                endif
    1.65 +            endif
    1.66 +        endif
    1.67 +    endif
    1.68 +endif
    1.69 +
    1.70 +ifeq ($(OS_ARCH), HP-UX)
    1.71 +    ifeq ($(USE_64),1)
    1.72 +        XLDOPTS += +DD64
    1.73 +    endif
    1.74 +endif
    1.75 +
    1.76 +ifeq ($(OS_ARCH), OS2)
    1.77 +XCFLAGS = $(OS_CFLAGS)
    1.78 +endif
    1.79 +
    1.80 +include $(topsrcdir)/config/rules.mk
    1.81 +
    1.82 +PROGS	= $(OBJDIR)/now$(PROG_SUFFIX)
    1.83 +
    1.84 +ifeq (,$(CROSS_COMPILE)$(filter-out OS2 WINNT,$(OS_ARCH)))
    1.85 +TARGETS = $(PROGS)
    1.86 +else
    1.87 +ifeq (,$(filter-out SYMBIAN WINCE,$(OS_ARCH)))
    1.88 +TARGETS = $(PROGS)
    1.89 +else
    1.90 +PROGS	+= $(OBJDIR)/nsinstall$(PROG_SUFFIX)
    1.91 +TARGETS = $(PROGS) $(PLSRCS:.pl=)
    1.92 +endif
    1.93 +endif
    1.94 +
    1.95 +OUTOPTION = -o # end of the line
    1.96 +ifeq (,$(filter-out WINNT WIN95 WINCE,$(OS_TARGET)))
    1.97 +ifndef NS_USE_GCC
    1.98 +OUTOPTION = -Fe
    1.99 +endif
   1.100 +endif
   1.101 +
   1.102 +# Redefine MAKE_OBJDIR for just this directory
   1.103 +define MAKE_OBJDIR
   1.104 +if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); else true; fi
   1.105 +endef
   1.106 +
   1.107 +export:: $(TARGETS)
   1.108 +	rm -f $(dist_bindir)/nspr-config
   1.109 +
   1.110 +ifdef WRAP_SYSTEM_INCLUDES
   1.111 +export::
   1.112 +	if test ! -d system_wrappers; then mkdir system_wrappers; fi
   1.113 +	$(PERL) $(srcdir)/make-system-wrappers.pl system_wrappers < $(srcdir)/system-headers
   1.114 +	$(INSTALL) system_wrappers $(dist_includedir)
   1.115 +endif
   1.116 +
   1.117 +$(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX)
   1.118 +	@$(MAKE_OBJDIR)
   1.119 +	$(CC) $(XCFLAGS) $< $(LDFLAGS) $(XLDOPTS) $(OUTOPTION)$@
   1.120 +
   1.121 +install:: nspr.m4
   1.122 +	$(NSINSTALL) -D $(DESTDIR)$(datadir)/aclocal
   1.123 +	$(NSINSTALL) -t -m 0644 $< $(DESTDIR)$(datadir)/aclocal
   1.124 +
   1.125 +install:: nspr.pc
   1.126 +	$(NSINSTALL) -D $(DESTDIR)$(libdir)/pkgconfig
   1.127 +	$(NSINSTALL) -t -m 0644 $< $(DESTDIR)$(libdir)/pkgconfig

mercurial