| 1 |
|
| 2 |
# NonStop-UX NCC 3.20 |
| 3 |
|
| 4 |
debug = 1 |
| 5 |
|
| 6 |
# Please see the config-NonS... file for more information about status |
| 7 |
# This file is built from Sunos5(os) and sgic++(compiler) |
| 8 |
|
| 9 |
CC = cc |
| 10 |
CXX = NCC |
| 11 |
DLD = $(CXX) |
| 12 |
LD = $(CXX) |
| 13 |
CPPFLAGS += -I/usr/include3.18 |
| 14 |
CPPFLAGS += -D_REENTRANT |
| 15 |
#CPPFLAGS += -ptused -prelink |
| 16 |
CPPFLAGS += -pta |
| 17 |
#CPPFLAGS += +pp |
| 18 |
#CPPFLAGS += -show |
| 19 |
#-D_SGI_MP_SOURCE |
| 20 |
#3106 nested comment is not allowed |
| 21 |
#3203 statement is unreachable |
| 22 |
#3252 argument of type "X" is incompatible with parameter of type "Y" |
| 23 |
#3262 Parameter "X" declared and never referenced |
| 24 |
#3611 a value of "X" cannot be assigned to an entity of type "Y" |
| 25 |
#3140 macro redefined differently (param redefines NULL) |
| 26 |
|
| 27 |
CPPFLAGS += -woff 3106,3203,3262 |
| 28 |
#CPPFLAGS += -woff 3106,3203,3262,3611,3252 |
| 29 |
#CPPFLAGS += -woff 3106,3203,3212,3252,3262,3611 |
| 30 |
|
| 31 |
# For the new 32 bit C++ compiler (-n32) |
| 32 |
#CPPFLAGS += -n32 -woff 1174,1209,1375,1506,1110,1552,1021,1171 |
| 33 |
# For the old C++ compiler (-32) |
| 34 |
#CPPFLAGS += +pp |
| 35 |
LDFLAGS += -rpath "$(ACE_ROOT)/lib" |
| 36 |
#LDFLAGS += -Wl,-woff,85 |
| 37 |
LIBS += -lsocket |
| 38 |
LIBS += -ldl |
| 39 |
LIBS += -lnsl |
| 40 |
LIBS += -lgen |
| 41 |
LIBS += -lthread |
| 42 |
PIC = -KPIC |
| 43 |
AR = ar |
| 44 |
ARFLAGS = r |
| 45 |
RANLIB = echo |
| 46 |
SOFLAGS += -shared $(CPPFLAGS) -all |
| 47 |
SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \ |
| 48 |
$(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o |
| 49 |
|
| 50 |
#3106 nested comment is not allowed |
| 51 |
#3203 statement is unreachable |
| 52 |
#3252 argument of type "X" is incompatible with parameter of type "Y" |
| 53 |
#3262 Parameter declared and never referenced |
| 54 |
#3611 a value of "X" cannot be assigned to an entity of type "Y" |
| 55 |
#WARNOFF += -woff 3106,3203,3262,3611 |
| 56 |
#INCDIR += -I/usr/include -I/usr/include3.18 |
| 57 |
# -I /usr/ucbinclude |
| 58 |
#### No threads |
| 59 |
#CCFLAGS += -pta $(WARNOFF) $(INCDIR) |
| 60 |
#### Threads |
| 61 |
#CCFLAGS += -D_REENTRANT -pta $(WARNOFF) |
| 62 |
|
| 63 |
#DLD = $(CXX) |
| 64 |
#LD = $(CXX) |
| 65 |
#LDFLAGS += -R $(ACE_ROOT)/lib |
| 66 |
#LIBS += -lsocket -ldl -lnsl -lgen -lthread # Threads |
| 67 |
#LIBS += -lsocket -ldl -lnsl -lgen # No threads |
| 68 |
#PIC = -PIC |
| 69 |
# SUNC++ 4.1 has a bug with the -xar command: |
| 70 |
# |
| 71 |
# from 'CC -readme' the following bug is reported: |
| 72 |
# |
| 73 |
# 4. Using -xar to add generated templates |
| 74 |
# ---------------------------------------- |
| 75 |
# |
| 76 |
# When using -xar to add generated templates to an archive, |
| 77 |
# please be aware that this command will both update |
| 78 |
# existing object files in the archive, and add new ones. |
| 79 |
# Existing object files that may be obsolete will still |
| 80 |
# be present. In these cases, the safest course of action |
| 81 |
# would be to delete the .a file prior to the invocation of -xar. |
| 82 |
# |
| 83 |
# so here we remove the archive prior to making the new one |
| 84 |
# |
| 85 |
#AR = CC |
| 86 |
#ARFLAGS = -xar -o |
| 87 |
#RANLIB = echo |
| 88 |
#SOFLAGS = -G $(CPPFLAGS) |
| 89 |
#SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \ |
| 90 |
$(SOLINK.cc) -o $@ -h $@ $(LDFLAGS) $(VSHDIR)$*.o |