summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/makeinclude/platform_hpux_kcc.GNU123
-rw-r--r--include/makeinclude/platform_irix6.x_kcc.GNU41
-rw-r--r--include/makeinclude/platform_linux_kcc.GNU72
-rw-r--r--include/makeinclude/platform_osf1_4.x_kcc.GNU65
-rw-r--r--include/makeinclude/platform_sunos5_kcc.GNU111
-rw-r--r--include/makeinclude/platform_tru64_kcc.GNU35
-rw-r--r--include/makeinclude/platform_vxworks5.5.x.GNU2
7 files changed, 1 insertions, 448 deletions
diff --git a/include/makeinclude/platform_hpux_kcc.GNU b/include/makeinclude/platform_hpux_kcc.GNU
deleted file mode 100644
index b9f75c2865a..00000000000
--- a/include/makeinclude/platform_hpux_kcc.GNU
+++ /dev/null
@@ -1,123 +0,0 @@
-# $Id$
-#
-# This is for HP-UX 11.x using the KCC compiler.
-#
-# HP-UX 11 supports both 32-bit and 64-bit builds, regardless of which
-# architecture the build is done on. This file is set up to build native
-# to the machine it's running on. To cross-build for another platform, add
-# "buildbits=32" to make a 32-bit build, and "buildbits=64" to do a 64-bit
-# build. Note that if you explicitly specify a 64-bit build, the option
-# -Wl,+vnocompatwarnings is added to shut up the "At least one PA 2.0 object
-# file detected..." messages.
-#
-# NOTE: This has only been tested with "buildbits" left as the default.
-#
-
-ifeq (,$(buildbits))
- buildbits = 0
-endif
-ifeq (,$(debug))
- debug = 1
-endif
-ifeq (,$(distrib))
- distrib = 0
-endif
-ifeq (,$(optimize))
- optimize = 0
-endif
-ifeq (,$(threads))
- threads = 1
-endif
-
-# The only way we can disable exceptions is to also disable threads
-ifeq ($(threads),1)
- THR_DEFS = --thread_safe -DACE_HAS_THREADS -D_POSIX_C_SOURCE=199506L
- LDFLAGS = --thread_safe
- ARFLAGS = --thread_safe
- exceptions = 1
-else
- THR_DEFS = -DACE_HAS_THREADS=0
- LDFLAGS =
- ARFLAGS =
- ifeq (0,$(exceptions))
- CCFLAGS += --no_exceptions
- LDFLAGS += --no_exceptions
- endif
-endif
-
-
-CC = cc
-CXX = KCC
-CCFLAGS += $(CFLAGS) $(THR_DEFS) -DACE_LACKS_PRAGMA_ONCE --one_instantiation_per_object
-DCFLAGS += +K0 -g
-DLD = $(CXX) $(CCFLAGS)
-LD = $(CXX)
-OCCFLAGS = +K3 -O
-PIC = +Z
-LDFLAGS += -Wl,+s -z
-SOFLAGS =
-SOEXT = sl
-
-# Please note that KCC can not replace object files within a
-# static library. You must rebuild the library with all of the .o's
-# The ar rule will require you to touch all of the object files in .obj,
-# including the ones under .obj/ti_files, to do this.
-AR = KCC
-ARFLAGS += -Bstatic -o
-
-# KCC allows suppresion of warnings and errors.
-# Warning #111 statement is unreachable
-CCFLAGS += --diag_suppress 111
-
-# KCC always uses the standard cpp library
-CCFLAGS += -DACE_HAS_STANDARD_CPP_LIBRARY=1
-
-#
-# libpthread is automatically linked in by KCC if we use --thread_safe,
-# therefore we do not need to explicitly supply it.
-# If we link statically and libpthread is supplied with $(LIBS), the
-# program will core dump.
-#
-LIBS += -Bdynamic -lxti -lrt
-
-ifdef static_libs_only
- ifneq ($(static_libs_only),0)
- static_libs=1
- endif
-endif
-# Kind of a hack since LDFLAGS is used for both non-static
-# library generation and binary generation. LD is only used for
-# binary generation.
-ifneq ($(static_libs),0)
- CCFLAGS += --one_instantiation_per_object
- LD += -Bstatic
- # libc is also automatically linked in by KCC, but when we are linking
- # statically libc must be linked dynamically or gethostbyname does not
- # function properly.
- LIBS += -lc -Bstatic
-endif
-
-#
-# This section has not been tested.
-#
-ifeq ($(distrib),1)
- ifeq ($(buildbits),32)
- SOFLAGS += -Wl,-x -Wl,+h/usr/lib/$(@F)
- endif
- ifeq ($(buildbits),64)
- SOFLAGS += -Wl,-x -Wl,+h/usr/lib/pa20_64/$(@F)
- endif
-endif
-ifeq ($(buildbits),32)
- CCFLAGS += +DA1.1 +DS1.1
-else
- ifeq ($(buildbits),64)
- CCFLAGS += +DA2.0 +DS2.0
- LDFLAGS += -Wl,+vnocompatwarnings
- else
- CCFLAGS += +DAportable
- endif
-endif
-
-SONAME =
-SOVERSION =
diff --git a/include/makeinclude/platform_irix6.x_kcc.GNU b/include/makeinclude/platform_irix6.x_kcc.GNU
deleted file mode 100644
index f68058a9cf5..00000000000
--- a/include/makeinclude/platform_irix6.x_kcc.GNU
+++ /dev/null
@@ -1,41 +0,0 @@
-# $Id$
-
-# Irix 6.x with KCC 3.4d
-
-include $(ACE_ROOT)/include/makeinclude/platform_irix6.x_common.GNU
-
-# WARNING_FLAGS +=
-# 111: statement is unreachable. There's a whole bunch of these
-# in the ace code.
-# 280: declaration of a member with the same name as its class
-# Get this from <netinet/in.h>.
-# 608: this pragma must immediately precede a declaration or statement
-# Get this from <ucontext.h>
-WARNING_FLAGS += --diag_suppress 111,280,608
-
-debug = 1
-optimize = 1
-
-CC = KCC
-CXX = $(CC)
-CFLAGS += -n32
-KCCOPTS = --thread_safe --one_per
-CCFLAGS += $(CFLAGS) -DNULL=0 $(WARNING_FLAGS) $(KCCOPTS)
-ifeq ($(optimize),1)
-DCFLAGS += -g
-else
-DCFLAGS += +K0 -g
-endif
-DLD = $(CC)
-LD = $(CC)
-# warning 84: "" is not used for resolving any symbol.
-LDFLAGS += -n32 -L$(ACE_ROOT)/lib -L. --backend -Wl,-woff,84
-#LIBS += -lpthread
-OCFLAGS += +K3 -O2
-PIC =
-AR = $(CC)
-ARFLAGS = $(KCCOPTS) -o
-RANLIB = @true
-SOFLAGS += $(CPPFLAGS) $(KCCOPTS) -L$(ACE_ROOT)/lib $(ACELIB)
-SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
-PRELIB = @true
diff --git a/include/makeinclude/platform_linux_kcc.GNU b/include/makeinclude/platform_linux_kcc.GNU
deleted file mode 100644
index 6b57898c6dd..00000000000
--- a/include/makeinclude/platform_linux_kcc.GNU
+++ /dev/null
@@ -1,72 +0,0 @@
-# $Id$
-
-# According to Ben Eng <ben@jetpen.com>, this file
-# should allow ACE to be built on Linux using KAI C++ 3.3a.
-#
-# NOTE: evaluation copies of KCC might include libraries that
-# were compiled with exception handling enabled. To enable link
-# compatibility with those libraries, you must build ACE with
-# exception handling enabled, as well. To do that, either set
-# the exceptions macro below to 1, or build with:
-# make exceptions=1
-
-ifeq (,$(debug))
- debug=0
-endif
-ifeq (,$(optimize))
- optimize=1
-endif
-ifeq (,$(threads))
- threads = 1
-endif
-
-CC = KCC
-CXX = $(CC)
-CPPFLAGS += -D_REENTRANT -D_GNU_SOURCE
-
-CCFLAGS += $(CFLAGS) -DNULL=0 --one_instantiation_per_object
-DCFLAGS += +K0 -g
-OCFLAGS += +K3 -O
-DLD = $(CC)
-LD = $(CC)
-# Using just -ldl results in a very annoying warning (nm: no symbols),
-# because the prelinker searches for missing templates in the libdl
-# library. Passing the option directly to the linker fixes the
-# warning.
-LIBS += -Wl,-ldl
-MATHLIB = -lm
-
-ifeq (,$(exceptions))
- exceptions=0
-endif # exceptions
-
-ifeq ($(exceptions),0)
- CCFLAGS += --no_exceptions
-endif # ! exceptions
-
-ifeq ($(threads),1)
- CFLAGS += --thread_safe
- LDFLAGS += --thread_safe
-endif # threads
-
-# KCC allows suppresion of warnings and errors.
-# Warning #280 declaration of a member with the same name as its class
-CCFLAGS += --diag_suppress 280
-
-ifdef static_libs_only
- ifneq ($(static_libs_only),0)
- static_libs=1
- endif
-endif
-ifneq ($(static_libs),0)
- CCFLAGS += --one_instantiation_per_object
-endif
-
-PIC = -fPIC
-AR = $(CC)
-ARFLAGS = $(CCFLAGS) $(CPPFLAGS) -Bstatic -o
-RANLIB = @true
-SOFLAGS += $(PIC) $(CCFLAGS) $(CPPFLAGS)
-SOBUILD = $(COMPILE.cc) $(SOFLAGS) -o $(VSHDIR)$*.o $<
-PRELIB = @true
-PRELIB_USES_OBJ_ONLY = 1
diff --git a/include/makeinclude/platform_osf1_4.x_kcc.GNU b/include/makeinclude/platform_osf1_4.x_kcc.GNU
deleted file mode 100644
index a3a3178239d..00000000000
--- a/include/makeinclude/platform_osf1_4.x_kcc.GNU
+++ /dev/null
@@ -1,65 +0,0 @@
-# $Id$
-
-# This platform macros file is intended to work with Digital UNIX 4.x
-# (OSF/1 4.x) and KAI C++ 3.3f.
-
-ifeq (,$(debug))
- debug = 1
-endif
-
-ifeq (,$(exceptions))
- exceptions = 1
-endif
-
-ifeq (,$(rtti))
- rtti = 1
-endif
-
-ifeq (,$(threads))
- threads = 1
-endif
-
-ifeq (,$(optimize))
- optimize = 1
-endif
-
-# WARNING_FLAGS +=
-# 9: nested comment not allowed. But there's one in /usr/include/pdsc.h!
-# and /usr/include/net/if_types.h
-# 111: statement is unreachable. There's a whole bunch of these
-# in the ace code.
-WARNING_FLAGS += --display_error_number --diag_suppress 9,111
-
-CC = KCC
-CXX = $(CC)
-CFLAGS += -D_REENTRANT
-KCCOPTS = --thread_safe --one_per
-CCFLAGS += $(CFLAGS) -DNULL=0 $(WARNING_FLAGS) $(KCCOPTS)
-ifeq ($(optimize),1)
-DCFLAGS += -g3
-else
-DCFLAGS += +K0 -g
-endif
-LD = $(CC)
-DLD = $(CC)
-LIBS += -lpthread -lmach -lexc -lxti -lrt -lm
-OCFLAGS += +K3 -O
-PIC =
-AR = $(CC)
-ARFLAGS = $(KCCOPTS) -o
-# When libraries are archived, a hash index is automatically created so there
-# is no need for ranlib
-RANLIB = /usr/bin/true
-SOFLAGS += $(CPPFLAGS) $(KCCOPTS) -L$(ACE_ROOT)/lib $(ACELIB) -lc
-
-# With kcc 4, if it does template splitting and ends up with more than
-# a certain number of templates, it can screw up the link command so that
-# the entry point for the program gets set to one of the template
-# instantiations! This forces the correct entry point.
-LDFLAGS += --backend -Wl,-e,__start
-
-# Work around kcc overflowing the arg list...
-SHLIBBUILD = $(AR) $(ARFLAGS) $@-tmp.a $(VSHOBJS1) $(LDFLAGS) $(LIBS); $(filter-out -c,$(COMPILE.cc) $(PIC)) -o $@ -all $@-tmp.a -none $(LDFLAGS) $(LIBS) -lc --COMPO_ln_dy -expect_unresolved --COMPO_ln_dy '*'; rm $@-tmp.a
-
-SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
-PRELIB = @true
diff --git a/include/makeinclude/platform_sunos5_kcc.GNU b/include/makeinclude/platform_sunos5_kcc.GNU
deleted file mode 100644
index 80554e48bb1..00000000000
--- a/include/makeinclude/platform_sunos5_kcc.GNU
+++ /dev/null
@@ -1,111 +0,0 @@
-# $Id$ -*- Makefile -*-
-
-# SunOS 5.x (Solaris 2.x) with KAI C++ 3.3e
-
-debug = 1
-distrib = 0
-threads = 1
-exceptions = 1
-
-# I(kitty) don't know anything about this combination. Making it explicit.
-# XXX: Get the flags from the Kai web-site and fill it in.
-templates = explicit
-
-# Turn on the proper flags for explicit template instantiation.
-#
-ifeq ($(templates),explicit)
- ifeq ($(TEMPLATES_FLAG),) # Turn on flags if none is speficied.
- TEMPLATES_FLAG=
- endif
- CPPFLAGS += -DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
-endif
-
-# These are required for KCC 3.4g compiler.
-LDFLAGS += --one_instantiation_per_object
-CCFLAGS += --one_instantiation_per_object
-
-ifeq ($(threads),1)
- CFLAGS += --thread_safe
- LDFLAGS += --thread_safe
- ARFLAGS = --thread_safe
-else
- ARFLAGS =
- CCFLAGS += -DACE_HAS_THREADS=0
-endif # threads
-
-CC = KCC
-CXX = KCC
-
-DCFLAGS += +K0 -g
-DLD = $(CXX)
-LD = $(CXX)
-
-ifeq (1,$(exceptions))
- CCFLAGS += --exceptions
-else
- CCFLAGS += --no_exceptions
- LDFLAGS += --no_exceptions
-endif
-
-
-
-LIBS += -Bdynamic -lsocket -lnsl -lgen -ldl -lposix4
-MATHLIB = -lm
-CPPFLAGS += $(CFLAGS)
-OCFLAGS += +K3 -o
-PIC = -KPIC
-AR = KCC
-ARFLAGS += -Bstatic -o
-RANLIB = echo
-SOFLAGS += -G $(CPPFLAGS)
-
-
-ifdef static_libs_only
- ifneq ($(static_libs_only),0)
- static_libs=1
- endif
-endif
-ifneq ($(static_libs),0)
- CCFLAGS += --one_instantiation_per_object
-endif
-
-
-
-#### Create template repository to avoid compiler warning.
-TEMPLATE_REPOSITORY = Templates.DB
-
-ifdef CLEANUP_BIN
- #### Builds .shobj/$*.o file, then .shobj/$*.so file. The .o files
- #### are used for building libraries and executables. But, it seems
- #### to be necessary to build the .so files (with -G) in order to get
- #### all template instantiations.
- SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
- $(SOLINK.cc) -o $@ -h $@ $(LDFLAGS) $(VSHDIR)$*.o
-else
- #### Optimize builds when no executables are built in the current
- #### directory. Only a library is being created, and -G is used
- #### in that step. Therefore, all templates instantations are
- #### included in the library. This optimization saves almost 11 Mb
- #### (2.6 percent) and 27 minutes (22 percent) on the entire ACE
- #### build on a 168 MHz Sun Ultra2.
- ####
- #### Sun C++ won't allow the output from a compile to be named with
- #### a .so extension. Rather than muck with the ACE build rules and
- #### risk upsetting builds on other platforms, just ln the output
- #### after building it.
- SOBUILD = $(RM) $@; $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $< && \
- /bin/ln $(VSHDIR)$*.o $@
-endif # CLEANUP_BIN
-
-#### The following macro overrides enable creation of fast executables.
-#### They _don't_ support fast compilation :-)
-#### To use, add fast=1 to your "make" invocation.
-####
-#### -g is incompatible with -fast. If you need -g, you can
-#### use "-fast -O3".
-####
-ifeq (1,$(fast))
- CFLAGS += -fast +K3
- DCFLAGS =
- LDFLAGS += -fast +K3
-endif # fast
diff --git a/include/makeinclude/platform_tru64_kcc.GNU b/include/makeinclude/platform_tru64_kcc.GNU
deleted file mode 100644
index 0fe62b9c24d..00000000000
--- a/include/makeinclude/platform_tru64_kcc.GNU
+++ /dev/null
@@ -1,35 +0,0 @@
-# $Id$
-
-# This platform macros file is intended to work with
-# Digital UNIX using the KAI compiler.
-
-# Include the common macros for all compilers
-#
-include $(ACE_ROOT)/include/makeinclude/platform_tru64_pre.GNU
-
-# Include the macro file for osf1_4.x
-#
-include $(ACE_ROOT)/include/makeinclude/platform_osf1_4.x_kcc.GNU
-
-ifeq (4.,$(findstring 4.,$(ACE_DU_VERSION)))
- ifeq (4.0F,$(findstring 4.0F,$(ACE_DU_SUBVERSION)))
- # variable "" was declared but never referenced.
- # Get these from PTHREAD_THIS_CATCH_NP.
- WARNING_FLAGS += --diag_suppress 177
- endif # ! 4.0F
-
-else # ! 4.x
-ifeq (5.,$(findstring 5.,$(ACE_DU_VERSION)))
- # variable "" was declared but never referenced.
- # Get these from PTHREAD_THIS_CATCH_NP.
- WARNING_FLAGS += --diag_suppress 177
-
- # KCC makes a lot of these warnings from the C compiler.
- WARNING_FLAGS += --backend -msg_disable --backend nonstandcast,missingreturn,uninit1,ptrmismatch
-
-endif # 5.x
-endif # ! 4.x
-
-# Include the common macros for all compilers
-#
-include $(ACE_ROOT)/include/makeinclude/platform_tru64_post.GNU
diff --git a/include/makeinclude/platform_vxworks5.5.x.GNU b/include/makeinclude/platform_vxworks5.5.x.GNU
index aa660e49100..df071f82675 100644
--- a/include/makeinclude/platform_vxworks5.5.x.GNU
+++ b/include/makeinclude/platform_vxworks5.5.x.GNU
@@ -230,7 +230,7 @@ else
endif
else
ifeq ("$(TOOL)","gnu")
-C++FLAGS += -ftemplate-depth-34
+C++FLAGS += -ftemplate-depth-50
ifeq ($(exceptions),1)
C++FLAGS += -fexceptions
else