1998-03-28 02:44:41 +00:00
|
|
|
#! gmake
|
|
|
|
#
|
2000-06-13 20:59:02 +00:00
|
|
|
# The contents of this file are subject to the Mozilla Public
|
|
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS
|
|
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
# implied. See the License for the specific language governing
|
|
|
|
# rights and limitations under the License.
|
|
|
|
#
|
2000-06-20 21:48:45 +00:00
|
|
|
# The Original Code is the Netscape Portable Runtime (NSPR).
|
2000-06-13 20:59:02 +00:00
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape
|
|
|
|
# Communications Corporation. Portions created by Netscape are
|
2000-06-20 21:48:45 +00:00
|
|
|
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
|
2000-06-13 20:59:02 +00:00
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the
|
|
|
|
# terms of the GNU General Public License Version 2 or later (the
|
|
|
|
# "GPL"), in which case the provisions of the GPL are applicable
|
|
|
|
# instead of those above. If you wish to allow use of your
|
|
|
|
# version of this file only under the terms of the GPL and not to
|
|
|
|
# allow others to use your version of this file under the MPL,
|
|
|
|
# indicate your decision by deleting the provisions above and
|
|
|
|
# replace them with the notice and other provisions required by
|
|
|
|
# the GPL. If you do not delete the provisions above, a recipient
|
|
|
|
# may use your version of this file under either the MPL or the
|
|
|
|
# GPL.
|
1998-03-28 02:44:41 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
MOD_DEPTH = ..
|
|
|
|
|
1999-05-12 00:47:36 +00:00
|
|
|
# Indicate that this directory builds build tools.
|
|
|
|
INTERNAL_TOOLS = 1
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
include $(MOD_DEPTH)/config/config.mk
|
|
|
|
|
2000-01-10 21:08:45 +00:00
|
|
|
CSRCS = now.c
|
1998-03-28 02:44:41 +00:00
|
|
|
|
2000-01-10 21:08:45 +00:00
|
|
|
# This version hasn't been ported for us; the one in mozilla/config has
|
|
|
|
ifneq ($(OS_ARCH),OS2)
|
|
|
|
CSRCS += nsinstall.c
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
PLSRCS = nfspwd.pl
|
2000-01-10 21:08:45 +00:00
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
2000-01-10 21:08:45 +00:00
|
|
|
ifeq (,$(filter-out WINNT OS2,$(OS_ARCH)))
|
1998-09-25 20:34:39 +00:00
|
|
|
PROG_SUFFIX = .exe
|
|
|
|
else
|
|
|
|
PROG_SUFFIX =
|
|
|
|
endif
|
|
|
|
|
1998-10-08 21:31:09 +00:00
|
|
|
# Temporary workaround to disable the generation of
|
|
|
|
# library build time because now.c uses the 'long long'
|
|
|
|
# data type that's not available on some platforms.
|
A jumbo checkin, consisting of:
1. Ports to older revisions of some Unix variants, e.g., BSD/OS 1.1,
OSF1 V2.0, etc., contributed by Brian Ostrom <briano@netscape.com>.
2. QNX port, also contributed by Brian Ostrom.
3. New macro USE_MACH_DYLD to represent the dynamic library loading
API of NEXTSTEP and Rhapsody.
4. On platforms whose socket address has the sa_len field, make a
copy of the PRNetAddr argument for PR_Bind, PR_Connect, and PR_SendTo
and set its sa_len before passing it to the system calls. This
fix is suggested by Bert Driehuis <driehuis@playbeing.org>.
5. Removed the unused field _lockf64 of struct _MD_IOVector. Not
every Unix platform has lockf, and the POSIX file locking API
uses fcntl.
1998-11-23 06:33:00 +00:00
|
|
|
ifeq (,$(filter-out NEC NEXTSTEP QNX SCOOS UNIXWARE,$(OS_ARCH)))
|
1998-10-08 21:31:09 +00:00
|
|
|
DEFINES += -DOMIT_LIB_BUILD_TIME
|
|
|
|
endif
|
|
|
|
|
1998-09-25 20:34:39 +00:00
|
|
|
ifeq ($(OS_ARCH), IRIX)
|
|
|
|
ifeq ($(basename $(OS_RELEASE)),6)
|
|
|
|
ifeq ($(USE_N32),1)
|
|
|
|
XLDOPTS += -n32 -Wl,-woff,85
|
|
|
|
ifeq ($(OS_RELEASE), 6_2)
|
|
|
|
XLDOPTS += -Wl,-woff,85
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
ifeq ($(USE_64),1)
|
|
|
|
XLDOPTS += -64
|
|
|
|
else
|
|
|
|
XLDOPTS += -32
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH), HP-UX)
|
|
|
|
ifeq ($(USE_64),1)
|
1999-10-19 00:40:39 +00:00
|
|
|
XLDOPTS += +DA2.0W
|
1998-09-25 20:34:39 +00:00
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
endif
|
|
|
|
|
2000-01-10 21:08:45 +00:00
|
|
|
ifeq ($(MOZ_OS2_TOOLS),EMX)
|
|
|
|
XCFLAGS = $(OS_EXE_CFLAGS)
|
|
|
|
ifeq ($(MOZ_OS2_EMX_OBJECTFORMAT),OMF)
|
|
|
|
XLDOPTS = -Zlinker /PM:VIO
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_OS2_TOOLS),PGCC)
|
1998-11-19 22:20:31 +00:00
|
|
|
XCFLAGS = $(OS_EXE_CFLAGS)
|
|
|
|
XLDOPTS = -Zlinker /PM:VIO
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_OS2_TOOLS),VACPP)
|
|
|
|
OS_CFLAGS = $(OS_EXE_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
include $(MOD_DEPTH)/config/rules.mk
|
|
|
|
|
1998-09-25 20:34:39 +00:00
|
|
|
PROGS = $(OBJDIR)/now$(PROG_SUFFIX)
|
|
|
|
|
2000-01-10 21:08:45 +00:00
|
|
|
ifeq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
|
1998-09-25 20:34:39 +00:00
|
|
|
TARGETS = $(PROGS)
|
|
|
|
else
|
|
|
|
PROGS += $(OBJDIR)/nsinstall$(PROG_SUFFIX)
|
|
|
|
TARGETS = $(PROGS) $(PLSRCS:.pl=)
|
|
|
|
endif
|
|
|
|
|
1999-10-13 18:32:42 +00:00
|
|
|
OUTOPTION = -o # end of the line
|
|
|
|
ifeq (,$(filter-out WINNT WIN95,$(OS_TARGET)))
|
|
|
|
OUTOPTION = /Fe
|
1999-07-23 16:35:29 +00:00
|
|
|
endif
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
# Redefine MAKE_OBJDIR for just this directory
|
|
|
|
define MAKE_OBJDIR
|
A jumbo checkin, consisting of:
1. Ports to older revisions of some Unix variants, e.g., BSD/OS 1.1,
OSF1 V2.0, etc., contributed by Brian Ostrom <briano@netscape.com>.
2. QNX port, also contributed by Brian Ostrom.
3. New macro USE_MACH_DYLD to represent the dynamic library loading
API of NEXTSTEP and Rhapsody.
4. On platforms whose socket address has the sa_len field, make a
copy of the PRNetAddr argument for PR_Bind, PR_Connect, and PR_SendTo
and set its sa_len before passing it to the system calls. This
fix is suggested by Bert Driehuis <driehuis@playbeing.org>.
5. Removed the unused field _lockf64 of struct _MD_IOVector. Not
every Unix platform has lockf, and the POSIX file locking API
uses fcntl.
1998-11-23 06:33:00 +00:00
|
|
|
if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); else true; fi
|
1998-03-28 02:44:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
export:: $(TARGETS)
|
1998-09-25 20:34:39 +00:00
|
|
|
|
|
|
|
$(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX)
|
|
|
|
@$(MAKE_OBJDIR)
|
1998-11-19 22:20:31 +00:00
|
|
|
ifeq ($(MOZ_OS2_TOOLS),VACPP)
|
|
|
|
$(LINK) $(EXEFLAGS) $<
|
|
|
|
else
|
1999-07-23 16:35:29 +00:00
|
|
|
$(CC) $(XCFLAGS) $< $(XLDOPTS) $(OUTOPTION)$@
|
1998-11-19 22:20:31 +00:00
|
|
|
endif
|
1999-07-23 16:35:29 +00:00
|
|
|
|