1998-03-28 05:44:41 +03:00
|
|
|
#! gmake
|
|
|
|
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Netscape Public License
|
1999-04-22 01:40:44 +04:00
|
|
|
# Version 1.1 (the "NPL"); you may not use this file except in
|
1998-03-28 05:44:41 +03:00
|
|
|
# compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
# http://www.mozilla.org/NPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# NPL.
|
|
|
|
#
|
|
|
|
# The Initial Developer of this code under the NPL is Netscape
|
|
|
|
# Communications Corporation. Portions created by Netscape are
|
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
# Reserved.
|
|
|
|
#
|
|
|
|
|
|
|
|
MOD_DEPTH = ..
|
|
|
|
|
1999-05-12 04:47:36 +04:00
|
|
|
# Indicate that this directory builds build tools.
|
|
|
|
INTERNAL_TOOLS = 1
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
include $(MOD_DEPTH)/config/config.mk
|
|
|
|
|
2000-01-11 00:08:45 +03:00
|
|
|
CSRCS = now.c
|
1998-03-28 05:44:41 +03:00
|
|
|
|
2000-01-11 00:08:45 +03: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 05:44:41 +03:00
|
|
|
PLSRCS = nfspwd.pl
|
2000-01-11 00:08:45 +03:00
|
|
|
endif
|
1998-03-28 05:44:41 +03:00
|
|
|
|
2000-01-11 00:08:45 +03:00
|
|
|
ifeq (,$(filter-out WINNT OS2,$(OS_ARCH)))
|
1998-09-26 00:34:39 +04:00
|
|
|
PROG_SUFFIX = .exe
|
|
|
|
else
|
|
|
|
PROG_SUFFIX =
|
|
|
|
endif
|
|
|
|
|
1998-10-09 01:31:09 +04: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 09:33:00 +03:00
|
|
|
ifeq (,$(filter-out NEC NEXTSTEP QNX SCOOS UNIXWARE,$(OS_ARCH)))
|
1998-10-09 01:31:09 +04:00
|
|
|
DEFINES += -DOMIT_LIB_BUILD_TIME
|
|
|
|
endif
|
|
|
|
|
1998-09-26 00:34:39 +04: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 04:40:39 +04:00
|
|
|
XLDOPTS += +DA2.0W
|
1998-09-26 00:34:39 +04:00
|
|
|
endif
|
1998-03-28 05:44:41 +03:00
|
|
|
endif
|
|
|
|
|
2000-01-11 00:08:45 +03: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-20 01:20:31 +03:00
|
|
|
XCFLAGS = $(OS_EXE_CFLAGS)
|
|
|
|
XLDOPTS = -Zlinker /PM:VIO
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_OS2_TOOLS),VACPP)
|
|
|
|
OS_CFLAGS = $(OS_EXE_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
include $(MOD_DEPTH)/config/rules.mk
|
|
|
|
|
1998-09-26 00:34:39 +04:00
|
|
|
PROGS = $(OBJDIR)/now$(PROG_SUFFIX)
|
|
|
|
|
2000-01-11 00:08:45 +03:00
|
|
|
ifeq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
|
1998-09-26 00:34:39 +04:00
|
|
|
TARGETS = $(PROGS)
|
|
|
|
else
|
|
|
|
PROGS += $(OBJDIR)/nsinstall$(PROG_SUFFIX)
|
|
|
|
TARGETS = $(PROGS) $(PLSRCS:.pl=)
|
|
|
|
endif
|
|
|
|
|
1999-10-13 22:32:42 +04:00
|
|
|
OUTOPTION = -o # end of the line
|
|
|
|
ifeq (,$(filter-out WINNT WIN95,$(OS_TARGET)))
|
|
|
|
OUTOPTION = /Fe
|
1999-07-23 20:35:29 +04:00
|
|
|
endif
|
|
|
|
|
1998-03-28 05:44:41 +03: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 09:33:00 +03:00
|
|
|
if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); else true; fi
|
1998-03-28 05:44:41 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
export:: $(TARGETS)
|
1998-09-26 00:34:39 +04:00
|
|
|
|
|
|
|
$(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX)
|
|
|
|
@$(MAKE_OBJDIR)
|
1998-11-20 01:20:31 +03:00
|
|
|
ifeq ($(MOZ_OS2_TOOLS),VACPP)
|
|
|
|
$(LINK) $(EXEFLAGS) $<
|
|
|
|
else
|
1999-07-23 20:35:29 +04:00
|
|
|
$(CC) $(XCFLAGS) $< $(XLDOPTS) $(OUTOPTION)$@
|
1998-11-20 01:20:31 +03:00
|
|
|
endif
|
1999-07-23 20:35:29 +04:00
|
|
|
|