michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: include $(CORE_DEPTH)/coreconf/UNIX.mk michael@0: michael@0: DEFAULT_COMPILER = cc michael@0: michael@0: INCLUDES += -I/usr/dt/include -I/usr/openwin/include -I/home/motif/usr/include michael@0: michael@0: # SunOS 4 _requires_ that shared libs have a version number. michael@0: # XXX FIXME: Version number should use NSPR_VERSION_NUMBER? michael@0: DLL_SUFFIX = so.1.0 michael@0: CC = gcc michael@0: RANLIB = ranlib michael@0: CPU_ARCH = sparc michael@0: michael@0: # Purify doesn't like -MDupdate michael@0: NOMD_OS_CFLAGS += -Wall -Wno-format -Wno-switch -DSUNOS4 michael@0: OS_CFLAGS += $(DSO_CFLAGS) $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES) michael@0: MKSHLIB = $(LD) michael@0: MKSHLIB += $(DSO_LDOPTS) michael@0: NOSUCHFILE = /solaris-rm-f-sucks michael@0: DSO_LDOPTS = michael@0: michael@0: # -fPIC generates position-independent code for use in a shared library. michael@0: DSO_CFLAGS += -fPIC