1998-03-28 02:44:41 +00:00
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Netscape Public License
|
1999-04-21 21:40:44 +00:00
|
|
|
# Version 1.1 (the "NPL"); you may not use this file except in
|
1998-03-28 02:44:41 +00: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.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
1999-03-22 23:04:13 +00:00
|
|
|
# Config stuff for BSD/OS Unix.
|
1998-03-28 02:44:41 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(MOD_DEPTH)/config/UNIX.mk
|
|
|
|
|
2000-05-01 22:38:58 +00:00
|
|
|
ifeq (,$(filter-out 1.1 4.%,$(OS_RELEASE)))
|
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
|
|
|
CC = gcc -Wall -Wno-format
|
|
|
|
CCC = g++
|
|
|
|
else
|
1998-03-28 02:44:41 +00:00
|
|
|
CC = shlicc2
|
|
|
|
CCC = shlicc2
|
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
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
RANLIB = ranlib
|
|
|
|
|
1999-01-19 23:38:54 +00:00
|
|
|
ifeq ($(USE_PTHREADS),1)
|
|
|
|
IMPL_STRATEGY = _PTH
|
1999-02-01 20:01:36 +00:00
|
|
|
DEFINES += -D_PR_NEED_PTHREAD_INIT
|
1999-01-19 23:38:54 +00:00
|
|
|
else
|
|
|
|
IMPL_STRATEGY = _EMU
|
1998-03-28 02:44:41 +00:00
|
|
|
DEFINES += -D_PR_LOCAL_THREADS_ONLY
|
1999-01-19 23:38:54 +00:00
|
|
|
endif
|
|
|
|
|
1999-03-22 23:04:13 +00:00
|
|
|
OS_CFLAGS = $(DSO_CFLAGS) -DBSDI -DHAVE_STRERROR -DNEED_BSDREGEX
|
|
|
|
|
|
|
|
ifeq (86,$(findstring 86,$(OS_TEST)))
|
|
|
|
CPU_ARCH = x86
|
|
|
|
endif
|
|
|
|
ifeq (sparc,$(findstring sparc,$(OS_TEST)))
|
|
|
|
CPU_ARCH = sparc
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
ifeq ($(OS_RELEASE),2.1)
|
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
|
|
|
OS_CFLAGS += -D_PR_TIMESPEC_HAS_TS_SEC
|
1998-08-19 20:42:14 +00:00
|
|
|
endif
|
|
|
|
|
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 1.1 2.1,$(OS_RELEASE)))
|
|
|
|
OS_CFLAGS += -D_PR_BSDI_JMPBUF_IS_ARRAY
|
|
|
|
else
|
|
|
|
OS_CFLAGS += -D_PR_SELECT_CONST_TIMEVAL -D_PR_BSDI_JMPBUF_IS_STRUCT
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
NOSUCHFILE = /no-such-file
|
|
|
|
|
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 ($(OS_RELEASE),1.1)
|
|
|
|
OS_CFLAGS += -D_PR_STAT_HAS_ONLY_ST_ATIME -D_PR_NEED_H_ERRNO
|
|
|
|
else
|
|
|
|
OS_CFLAGS += -DHAVE_DLL -DUSE_DLFCN -D_PR_STAT_HAS_ST_ATIMESPEC
|
|
|
|
OS_LIBS = -ldl
|
2000-05-01 22:38:58 +00:00
|
|
|
ifeq (,$(filter-out 4.%,$(OS_RELEASE)))
|
1998-12-17 06:26:24 +00:00
|
|
|
MKSHLIB = $(CC) $(DSO_LDOPTS)
|
1999-03-22 23:04:13 +00:00
|
|
|
DSO_CFLAGS = -fPIC
|
|
|
|
DSO_LDOPTS = -shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)
|
1998-12-17 06:26:24 +00:00
|
|
|
else
|
1998-03-28 02:44:41 +00:00
|
|
|
MKSHLIB = $(LD) $(DSO_LDOPTS)
|
|
|
|
DSO_LDOPTS = -r
|
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
|
|
|
endif
|
1998-12-17 06:26:24 +00:00
|
|
|
endif
|