Merged Neutrino (NTO) changes contributed by Jerry L. Kirk
<Jerry.Kirk@Nexwarecorp.com>.
Modified files: pr/include/md/Makefile, _pth.h, prosdep.h,
pr/src/md/unix/Makefile, objs.mk, unix.c, unix_errors.c,
ptio.c, ptthread.c.
Added files: NTO.mk, _nto.cfg, _nto.h, nto.c.
1999-06-28 23:13:18 +00:00
|
|
|
#
|
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-08-30 17:00:08 +00:00
|
|
|
# Copyright (C) 1999-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.
|
Merged Neutrino (NTO) changes contributed by Jerry L. Kirk
<Jerry.Kirk@Nexwarecorp.com>.
Modified files: pr/include/md/Makefile, _pth.h, prosdep.h,
pr/src/md/unix/Makefile, objs.mk, unix.c, unix_errors.c,
ptio.c, ptthread.c.
Added files: NTO.mk, _nto.cfg, _nto.h, nto.c.
1999-06-28 23:13:18 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# Config stuff for Neutrino
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
include $(MOD_DEPTH)/config/UNIX.mk
|
|
|
|
|
1999-11-29 19:42:11 +00:00
|
|
|
#
|
|
|
|
# XXX
|
|
|
|
# Temporary define for the Client; to be removed when binary release is used
|
|
|
|
#
|
|
|
|
ifdef MOZILLA_CLIENT
|
|
|
|
ifneq ($(USE_PTHREADS),1)
|
|
|
|
CLASSIC_NSPR = 1
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# The default implementation strategy for Linux is pthreads.
|
|
|
|
#
|
|
|
|
ifeq ($(CLASSIC_NSPR),1)
|
|
|
|
IMPL_STRATEGY = _EMU
|
|
|
|
DEFINES += -D_PR_LOCAL_THREADS_ONLY
|
|
|
|
else
|
|
|
|
USE_PTHREADS = 1
|
|
|
|
IMPL_STRATEGY = _PTH
|
|
|
|
DEFINES += -D_REENTRANT
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
Merged Neutrino (NTO) changes contributed by Jerry L. Kirk
<Jerry.Kirk@Nexwarecorp.com>.
Modified files: pr/include/md/Makefile, _pth.h, prosdep.h,
pr/src/md/unix/Makefile, objs.mk, unix.c, unix_errors.c,
ptio.c, ptthread.c.
Added files: NTO.mk, _nto.cfg, _nto.h, nto.c.
1999-06-28 23:13:18 +00:00
|
|
|
AR = qcc -Vgcc_ntox86 -M -a $@
|
1999-11-29 19:42:11 +00:00
|
|
|
CC = qcc -Vgcc_ntox86
|
Merged Neutrino (NTO) changes contributed by Jerry L. Kirk
<Jerry.Kirk@Nexwarecorp.com>.
Modified files: pr/include/md/Makefile, _pth.h, prosdep.h,
pr/src/md/unix/Makefile, objs.mk, unix.c, unix_errors.c,
ptio.c, ptthread.c.
Added files: NTO.mk, _nto.cfg, _nto.h, nto.c.
1999-06-28 23:13:18 +00:00
|
|
|
LD = $(CC)
|
|
|
|
CCC = $(CC)
|
1999-11-29 19:42:11 +00:00
|
|
|
|
|
|
|
# Old Flags -DNO_REGEX -DSTRINGS_ALIGNED
|
|
|
|
|
|
|
|
OS_CFLAGS = -Wc,-Wall -Wc,-Wno-parentheses -DNTO \
|
|
|
|
-D_QNX_SOURCE -DHAVE_POINTER_LOCALTIME_R -shared
|
|
|
|
|
Merged Neutrino (NTO) changes contributed by Jerry L. Kirk
<Jerry.Kirk@Nexwarecorp.com>.
Modified files: pr/include/md/Makefile, _pth.h, prosdep.h,
pr/src/md/unix/Makefile, objs.mk, unix.c, unix_errors.c,
ptio.c, ptthread.c.
Added files: NTO.mk, _nto.cfg, _nto.h, nto.c.
1999-06-28 23:13:18 +00:00
|
|
|
COMPILER_TAG = _qcc
|
2000-03-15 22:00:37 +00:00
|
|
|
MKSHLIB = qcc -Vgcc_ntox86 -shared -Wl,-h$(@:$(OBJDIR)/%.so=%.so) -M
|
Merged Neutrino (NTO) changes contributed by Jerry L. Kirk
<Jerry.Kirk@Nexwarecorp.com>.
Modified files: pr/include/md/Makefile, _pth.h, prosdep.h,
pr/src/md/unix/Makefile, objs.mk, unix.c, unix_errors.c,
ptio.c, ptthread.c.
Added files: NTO.mk, _nto.cfg, _nto.h, nto.c.
1999-06-28 23:13:18 +00:00
|
|
|
|
|
|
|
RANLIB = ranlib
|
|
|
|
G++INCLUDES =
|
|
|
|
OS_LIBS =
|
1999-11-29 19:42:11 +00:00
|
|
|
EXTRA_LIBS = -lsocket
|
Merged Neutrino (NTO) changes contributed by Jerry L. Kirk
<Jerry.Kirk@Nexwarecorp.com>.
Modified files: pr/include/md/Makefile, _pth.h, prosdep.h,
pr/src/md/unix/Makefile, objs.mk, unix.c, unix_errors.c,
ptio.c, ptthread.c.
Added files: NTO.mk, _nto.cfg, _nto.h, nto.c.
1999-06-28 23:13:18 +00:00
|
|
|
|
1999-11-29 19:42:11 +00:00
|
|
|
ifdef BUILD_OPT
|
2000-03-15 22:00:37 +00:00
|
|
|
OPTIMIZER = -O1
|
Merged Neutrino (NTO) changes contributed by Jerry L. Kirk
<Jerry.Kirk@Nexwarecorp.com>.
Modified files: pr/include/md/Makefile, _pth.h, prosdep.h,
pr/src/md/unix/Makefile, objs.mk, unix.c, unix_errors.c,
ptio.c, ptthread.c.
Added files: NTO.mk, _nto.cfg, _nto.h, nto.c.
1999-06-28 23:13:18 +00:00
|
|
|
else
|
2000-03-15 22:00:37 +00:00
|
|
|
OPTIMIZER = -O1 -gstabs
|
Merged Neutrino (NTO) changes contributed by Jerry L. Kirk
<Jerry.Kirk@Nexwarecorp.com>.
Modified files: pr/include/md/Makefile, _pth.h, prosdep.h,
pr/src/md/unix/Makefile, objs.mk, unix.c, unix_errors.c,
ptio.c, ptthread.c.
Added files: NTO.mk, _nto.cfg, _nto.h, nto.c.
1999-06-28 23:13:18 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
NOSUCHFILE = /no-such-file
|
|
|
|
|
1999-11-29 19:42:11 +00:00
|
|
|
GARBAGE += *.map
|
Merged Neutrino (NTO) changes contributed by Jerry L. Kirk
<Jerry.Kirk@Nexwarecorp.com>.
Modified files: pr/include/md/Makefile, _pth.h, prosdep.h,
pr/src/md/unix/Makefile, objs.mk, unix.c, unix_errors.c,
ptio.c, ptthread.c.
Added files: NTO.mk, _nto.cfg, _nto.h, nto.c.
1999-06-28 23:13:18 +00:00
|
|
|
|