# # $Id$ # # configuration file for EDG eccp # ############################################################################## CXX = eccp CCVER = $(shell eccp -v foo.c 2>&1 | head -1 | awk '{ print $$8'}) ECCP_MAJOR = $(shell echo "$(CCVER)" | sed -n "s/^\([^\.]*\).*/\1/p") ECCP_MINOR = $(shell echo "$(CCVER)" | sed -n "s/^.*\.\([0-9]*\).*/\1/p") ifeq ($(ECCP_MAJOR),2) CPPFLAGS = -I$(TOPDIR)/include/ansi --incl_suffixes :: CXXFLAGS = -A -B -x LDFLAGS = else CPPFLAGS = -I$(TOPDIR)/include/ansi CXXFLAGS = -A -x --template_directory=$(BUILDDIR)/lib LDFLAGS = --template_directory=$(BUILDDIR)/lib endif # ECCP_MAJOR == 2 # disabled remarks (othewise issued with --remarks) # 193: zero used for undefined preprocessing identifier # 236: controlling expression is constant # 261: access control not specified ("public" by default) # 340: value copied to temporary, reference to temporary used # 401: destructor for base class is not virtual # 479: function redeclared "inline" after being called # 487: inline function cannot be explicitly instantiated # 678: call of function cannot be inlined # 679: function cannot be inlined # 815: type qualifier on return type is meaningless # other diagnostics (not disabled): # 450: the type "long long" is nonstandard WARNFLAGS = --display_error_number --remarks \ --diag_suppress 193,236,340,401,261,479,487,678,679,815 PHWARNFLAGS = --diag_suppress 177,381,191,68,550,611,997,549 DEPENDFLAGS = -M PICFLAGS = PRELINKFLAGS = --prelink_objects # disable assembly files for now, eccp doesn't understand them # (until the makefiles are changed to use the system assembler # to assemble such files) AS_EXT = . # debug/optimization options DEBUG_CXXFLAGS = -g DEBUG_CPPFLAGS = OPTMZ_CXXFLAGS = -O OPTMZ_CPPFLAGS = # shared/static library options SHARED_CXXFLAGS = SHARED_CPPFLAGS = -D_RWSTD_SHARED_LIB SHARED_LDFLAGS = -shared STATIC_CXXFLAGS = STATIC_CPPFLAGS = STATIC_LDFLAGS = # Compiler and linker flags for multi-threading MULTI_CPPFLAGS_POSIX = -D_REENTRANT MULTI_CPPFLAGS_SOLARIS = MULTI_CPPFLAGS_DCE = MULTI_LDFLAGS_POSIX = /usr/lib/libpthread.so MULTI_LDFLAGS_SOLARIS = MULTI_LDFLAGS_DCE = # POSIX MULTI_CPPFLAGS = $(MULTI_CPPFLAGS_POSIX) MULTI_LDFLAGS = $(MULTI_LDFLAGS_POSIX) SINGL_CPPFLAGS = SINGL_LDFLAGS =