|
1 # |
|
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/. |
|
5 |
|
6 include $(CORE_DEPTH)/coreconf/UNIX.mk |
|
7 |
|
8 DEFAULT_COMPILER = cc |
|
9 |
|
10 ### |
|
11 NS_USE_NATIVE = 1 |
|
12 |
|
13 # NS_USE_GCC = 1 |
|
14 |
|
15 export PATH:=$(PATH):/opt/ncc/bin |
|
16 ### |
|
17 |
|
18 RANLIB = true |
|
19 GCC_FLAGS_EXTRA += -pipe |
|
20 |
|
21 DEFINES += -DSVR4 -DSYSV -DHAVE_STRERROR -DNCR |
|
22 |
|
23 OS_CFLAGS += -Hnocopyr -DSVR4 -DSYSV -DHAVE_STRERROR -DNCR -DPRFSTREAMS_BROKEN |
|
24 |
|
25 ifdef NS_USE_NATIVE |
|
26 CC = cc |
|
27 CCC = ncc |
|
28 CXX = ncc |
|
29 # OS_LIBS += -L/opt/ncc/lib |
|
30 else |
|
31 # OS_LIBS += |
|
32 endif |
|
33 |
|
34 #OS_LIBS += -lsocket -lnsl -ldl -lc |
|
35 |
|
36 MKSHLIB += $(LD) $(DSO_LDOPTS) |
|
37 #DSO_LDOPTS += -G -z defs |
|
38 DSO_LDOPTS += -G |
|
39 ifdef MAPFILE |
|
40 # Add LD options to restrict exported symbols to those in the map file |
|
41 endif |
|
42 # Change PROCESS to put the mapfile in the correct format for this platform |
|
43 PROCESS_MAP_FILE = cp $< $@ |
|
44 |
|
45 CPU_ARCH = x86 |
|
46 ARCH = ncr |
|
47 |
|
48 NOSUCHFILE = /solaris-rm-f-sucks |
|
49 |
|
50 # now take care of default GCC (rus@5/5/97) |
|
51 |
|
52 ifdef NS_USE_GCC |
|
53 # if gcc-settings are redefined already - don't touch it |
|
54 # |
|
55 ifeq (,$(findstring gcc, $(CC))) |
|
56 CC = gcc |
|
57 CCC = g++ |
|
58 CXX = g++ |
|
59 # always use -fPIC - some makefiles are still broken and don't distinguish |
|
60 # situation when they build shared and static libraries |
|
61 CFLAGS += -fPIC -Wall -Wno-switch $(GCC_FLAGS_EXTRA) |
|
62 # OS_LIBS += -L/usr/local/lib -lstdc++ -lg++ -lgcc |
|
63 endif |
|
64 endif |
|
65 ### |