2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 include $(CORE_DEPTH
)/coreconf
/UNIX.mk
13 ifeq ($(OS_TEST
),i386
)
14 OS_REL_CFLAGS
= -D__i386__
18 OS_REL_CFLAGS
= -D__ppc__
21 ifeq ($(OS_TEST
),sparc
)
22 OS_REL_CFLAGS
= -D__sparc__
25 # treat the ultrasparc like a regular sparc, at least for now!
26 ifeq ($(OS_TEST
),sparc_v9
)
27 OS_REL_CFLAGS
= -D__sparc__
36 OS_CFLAGS
= $(DSO_CFLAGS
) $(OS_REL_CFLAGS
) -Wall
-Wno-switch
-DBSD_OS
-DBSDI
-Dunix
-DHAVE_STRERROR
-DHAVE_BSD_FLOCK
40 DSO_CFLAGS
= -fPIC
-DPIC
41 DSO_LDOPTS
= -shared
-Wl
,-soname
,lib
$(LIBRARY_NAME
)$(LIBRARY_VERSION
).
$(DLL_SUFFIX
)
44 DSO_LDOPTS
+= -Wl
,-R
$(LIBRUNPATH
)
47 MKSHLIB
= $(CC
) $(DSO_LDOPTS
)
49 # Add LD options to restrict exported symbols to those in the map file
51 # Change PROCESS to put the mapfile in the correct format for this platform
52 PROCESS_MAP_FILE
= cp
$< $@
54 G
++INCLUDES
= -I
/usr
/include/g
++
56 INCLUDES
+= -I
/usr
/X11R6
/include