Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / nsprpub / config / Makefile.in
blobf4c7290f8c270eb003801ffd48a8a5214189fc4b
1 #! gmake
2 #
3 # ***** BEGIN LICENSE BLOCK *****
4 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 # The contents of this file are subject to the Mozilla Public License Version
7 # 1.1 (the "License"); you may not use this file except in compliance with
8 # the License. You may obtain a copy of the License at
9 # http://www.mozilla.org/MPL/
11 # Software distributed under the License is distributed on an "AS IS" basis,
12 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 # for the specific language governing rights and limitations under the
14 # License.
16 # The Original Code is the Netscape Portable Runtime (NSPR).
18 # The Initial Developer of the Original Code is
19 # Netscape Communications Corporation.
20 # Portions created by the Initial Developer are Copyright (C) 1998-2000
21 # the Initial Developer. All Rights Reserved.
23 # Contributor(s):
25 # Alternatively, the contents of this file may be used under the terms of
26 # either the GNU General Public License Version 2 or later (the "GPL"), or
27 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 # in which case the provisions of the GPL or the LGPL are applicable instead
29 # of those above. If you wish to allow use of your version of this file only
30 # under the terms of either the GPL or the LGPL, and not to allow others to
31 # use your version of this file under the terms of the MPL, indicate your
32 # decision by deleting the provisions above and replace them with the notice
33 # and other provisions required by the GPL or the LGPL. If you do not delete
34 # the provisions above, a recipient may use your version of this file under
35 # the terms of any one of the MPL, the GPL or the LGPL.
37 # ***** END LICENSE BLOCK *****
39 MOD_DEPTH = ..
40 topsrcdir = @top_srcdir@
41 srcdir = @srcdir@
42 VPATH = @srcdir@
44 include $(MOD_DEPTH)/config/autoconf.mk
46 # Indicate that this directory builds build tools.
47 INTERNAL_TOOLS = 1
49 # For sanity's sake, we compile nsinstall without the wrapped system
50 # headers, so that we can use it to set up the wrapped system headers.
51 VISIBILITY_FLAGS =
53 # autoconf.mk must be deleted last (from the top-level directory)
54 # because it is included by every makefile.
55 DIST_GARBAGE = nsprincl.mk nsprincl.sh nspr-config
57 RELEASE_BINS = nspr-config
59 include $(topsrcdir)/config/config.mk
61 CSRCS = now.c
63 # This version hasn't been ported for us; the one in mozilla/config has
64 ifneq ($(OS_ARCH),OS2)
65 CSRCS += nsinstall.c
67 PLSRCS = nfspwd.pl
68 endif
70 ifeq (,$(CROSS_COMPILE)$(filter-out WINNT OS2,$(OS_ARCH)))
71 PROG_SUFFIX = .exe
72 else
73 PROG_SUFFIX =
74 endif
76 # Temporary workaround to disable the generation of
77 # library build time because now.c uses the 'long long'
78 # data type that's not available on some platforms.
79 ifeq (,$(filter-out NEC NEXTSTEP QNX SCOOS UNIXWARE,$(OS_ARCH)))
80 DEFINES += -DOMIT_LIB_BUILD_TIME
81 endif
83 ifeq ($(OS_ARCH), IRIX)
84 ifeq ($(basename $(OS_RELEASE)),6)
85 ifndef NS_USE_GCC
86 ifeq ($(USE_N32),1)
87 XLDOPTS += -n32 -Wl,-woff,85
88 else
89 ifeq ($(USE_64),1)
90 XLDOPTS += -64
91 else
92 XLDOPTS += -32
93 endif
94 endif
95 endif
96 endif
97 endif
99 ifeq ($(OS_ARCH), HP-UX)
100 ifeq ($(USE_64),1)
101 XLDOPTS += +DD64
102 endif
103 endif
105 ifeq ($(OS_ARCH), OS2)
106 XCFLAGS = $(OS_CFLAGS)
107 endif
109 include $(topsrcdir)/config/rules.mk
111 PROGS = $(OBJDIR)/now$(PROG_SUFFIX)
113 ifeq (,$(CROSS_COMPILE)$(filter-out OS2 WINNT,$(OS_ARCH)))
114 TARGETS = $(PROGS)
115 else
116 PROGS += $(OBJDIR)/nsinstall$(PROG_SUFFIX)
117 TARGETS = $(PROGS) $(PLSRCS:.pl=)
118 endif
120 OUTOPTION = -o # end of the line
121 ifeq (,$(filter-out WINNT WIN95,$(OS_TARGET)))
122 ifndef NS_USE_GCC
123 OUTOPTION = -Fe
124 endif
125 endif
127 # Redefine MAKE_OBJDIR for just this directory
128 define MAKE_OBJDIR
129 if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); else true; fi
130 endef
132 export:: $(TARGETS)
133 rm -f $(dist_bindir)/nspr-config
135 ifdef WRAP_SYSTEM_INCLUDES
136 export::
137 if test ! -d system_wrappers; then mkdir system_wrappers; fi
138 $(PERL) $(srcdir)/make-system-wrappers.pl system_wrappers < $(srcdir)/system-headers
139 $(INSTALL) system_wrappers $(dist_includedir)
140 endif
142 $(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX)
143 @$(MAKE_OBJDIR)
144 $(CC) $(XCFLAGS) $< $(LDFLAGS) $(XLDOPTS) $(OUTOPTION)$@
146 install:: nspr.m4
147 $(NSINSTALL) -D $(DESTDIR)$(datadir)/aclocal
148 $(NSINSTALL) -t -m 0644 $< $(DESTDIR)$(datadir)/aclocal