From c558d86ba9347e8ed57e38c996211c0945c8add4 Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Tue, 30 Jan 2001 16:00:39 +0000 Subject: [PATCH] Initial version --- configure/CONFIG.gnuCommon | 42 +++++++++++++++++++ configure/os/CONFIG.Common.linux-x86 | 34 +++++++++++++++ configure/os/CONFIG.Common.lynxos-x86 | 31 ++++++++++++++ configure/os/CONFIG.Common.osf-alpha | 31 ++++++++++++++ configure/os/CONFIG.Common.solaris-sparc-gnu | 12 ++++++ configure/os/CONFIG.Common.solaris-x86 | 38 +++++++++++++++++ configure/os/CONFIG.Common.solaris-x86-gnu | 12 ++++++ configure/os/CONFIG.Common.sun4-x86 | 31 ++++++++++++++ configure/os/CONFIG.solaris-sparc-gnu.Common | 12 ++++++ ...CONFIG.solaris-sparc-gnu.solaris-sparc-gnu | 22 ++++++++++ configure/os/CONFIG.solaris-x86-gnu.Common | 12 ++++++ .../os/CONFIG.solaris-x86-gnu.solaris-x86-gnu | 22 ++++++++++ configure/os/CONFIG_SITE.linux-x86.UnixCommon | 9 ++++ .../os/CONFIG_SITE.linux-x86.solaris-sparc | 11 +++++ 14 files changed, 319 insertions(+) create mode 100644 configure/CONFIG.gnuCommon create mode 100644 configure/os/CONFIG.Common.linux-x86 create mode 100644 configure/os/CONFIG.Common.lynxos-x86 create mode 100644 configure/os/CONFIG.Common.osf-alpha create mode 100644 configure/os/CONFIG.Common.solaris-sparc-gnu create mode 100644 configure/os/CONFIG.Common.solaris-x86 create mode 100644 configure/os/CONFIG.Common.solaris-x86-gnu create mode 100644 configure/os/CONFIG.Common.sun4-x86 create mode 100644 configure/os/CONFIG.solaris-sparc-gnu.Common create mode 100644 configure/os/CONFIG.solaris-sparc-gnu.solaris-sparc-gnu create mode 100644 configure/os/CONFIG.solaris-x86-gnu.Common create mode 100644 configure/os/CONFIG.solaris-x86-gnu.solaris-x86-gnu create mode 100644 configure/os/CONFIG_SITE.linux-x86.UnixCommon create mode 100644 configure/os/CONFIG_SITE.linux-x86.solaris-sparc diff --git a/configure/CONFIG.gnuCommon b/configure/CONFIG.gnuCommon new file mode 100644 index 000000000..3d557e0ba --- /dev/null +++ b/configure/CONFIG.gnuCommon @@ -0,0 +1,42 @@ +#-------------------------------------------------- +# GNU compiler defaults + +GNU_BIN = $(GNU_DIR)/bin +GNU_LIB = $(GNU_DIR)/lib + +export GCC_EXEC_PREFIX = $(GNU_LIB)/gcc-lib/ + +CC = $(GNU_BIN)/$(CMPLR_PREFIX)cc$(CMPLR_SUFFIX) +CCC = $(GNU_BIN)/$(CMPLR_PREFIX)cc$(CMPLR_SUFFIX) +AR = $(GNU_BIN)/$(CMPLR_PREFIX)ar$(CMPLR_SUFFIX) -rc +CPP = $(CCC) -x c -E +RANLIB = $(GNU_BIN)/$(CMPLR_PREFIX)ranlib$(CMPLR_SUFFIX) + +CODE_CFLAGS = -fPIC +CONFORM_CFLAGS_ANSI = -ansi +CONFORM_CFLAGS_STRICT = -ansi -pedantic +CONFORM_CFLAGS_TRAD = -traditional +WARN_CFLAGS_YES = -Wall +WARN_CFLAGS_NO = -w +OPT_CFLAGS_YES = -g -O3 +OPT_CFLAGS_NO = -g + +# Template instantiation c++ flags +TEMPL_INST_CXXFLAG = -DEXPL_TEMPL + +CODE_CXXFLAGS = -fPIC +CONFORM_CXXFLAGS_NORMAL = -ansi -pedantic +CONFORM_CXXFLAGS_STRICT = -ansi -pedantic +#WARN_CXXFLAGS_YES = -Wall -Weffc++ +WARN_CXXFLAGS_YES = -Wall +WARN_CXXFLAGS_NO = -w +OPT_CXXFLAGS_YES = -g -O3 +OPT_CXXFLAGS_NO = -g + +STATIC_LDFLAGS_YES = -static +STATIC_LDFLAGS_NO = +SHRLIB_LDFLAGS_YES = -shared +SHRLIB_LDFLAGS_NO = + +DEPENDS_FLAG = -MM + diff --git a/configure/os/CONFIG.Common.linux-x86 b/configure/os/CONFIG.Common.linux-x86 new file mode 100644 index 000000000..85183d751 --- /dev/null +++ b/configure/os/CONFIG.Common.linux-x86 @@ -0,0 +1,34 @@ +# CONFIG.Common.linux-x86 +# +# $Id$ +# This file is maintained by the build community. +# +# Definitions for linux-x86 target builds +# Sites may override these definitions in CONFIG_SITE.Common.linux-x86 +#------------------------------------------------------- + +# Include definitions common to all Unix targets +include $(CONFIG)/os/CONFIG.Common.UnixCommon + +OS_CLASS = Linux +ARCH_CLASS = x86 + +CODE_CPPFLAGS = -D_REENTRANT + +POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS +POSIX_CPPFLAGS_NO = +POSIX_LDLIBS_YES = -lpthread +POSIX_LDLIBS_NO = + +# -D_BSD_SOURCE for gethostname() in unistd.h as needed by cacChannelIO.cpp. +ARCH_DEP_CPPFLAGS += -D_BSD_SOURCE +ARCH_DEP_CPPFLAGS += -D_X86_ -Dlinux +ARCH_DEP_LDFLAGS = +ARCH_DEP_LDLIBS = -lreadline -lcurses -lrt + +ifdef CROSS + GNU_TARGET=i586-pc-linux-gnu + CMPLR_SUFFIX= + CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET)) +endif + diff --git a/configure/os/CONFIG.Common.lynxos-x86 b/configure/os/CONFIG.Common.lynxos-x86 new file mode 100644 index 000000000..3930e698d --- /dev/null +++ b/configure/os/CONFIG.Common.lynxos-x86 @@ -0,0 +1,31 @@ +# CONFIG.Common.lynxos-x86 +# +# $Id$ +# +# This file is maintained by the build community. +# Sites may override these definitions in CONFIG_SITE.Common.lynxos-x86 +#------------------------------------------------------- + +#Include definitions common to unix targets +include $(CONFIG)/os/CONFIG.Common.UnixCommon + +OS_CLASS = lynxos +ARCH_CLASS = x86 + +CODE_CPPFLAGS = + +POSIX_CPPFLAGS_YES = +POSIX_CPPFLAGS_NO = +POSIX_LDLIBS_YES += -lposix4d9 -lpthread +POSIX_LDLIBS_NO += + +ARCH_DEP_CPPFLAGS += -D_X86_ +ARCH_DEP_LDFLAGS = +ARCH_DEP_LDLIBS = + +ifdef CROSS + GNU_TARGET=x86-lynxos + CMPLR_SUFFIX= + CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET)) +endif + diff --git a/configure/os/CONFIG.Common.osf-alpha b/configure/os/CONFIG.Common.osf-alpha new file mode 100644 index 000000000..af83a7e54 --- /dev/null +++ b/configure/os/CONFIG.Common.osf-alpha @@ -0,0 +1,31 @@ +# CONFIG.Common.osf-alpha +# +# $Id$ +# This file is maintained by the build community. +# +# Definitions for osf-alpha target archs +# Sites may override these definitions in CONFIG_SITE.Common.osf-alpha +#------------------------------------------------------- + +# Include definitions common to all Unix targets +include $(CONFIG)/os/CONFIG.Common.UnixCommon + +OS_CLASS = osf +ARCH_CLASS = alpha + +CODE_CPPFLAGS = + +POSIX_CPPFLAGS_YES = +POSIX_LDLIBS_YES += +POSIX_CPPFLAGS_NO = +POSIX_LDLIBS_NO += + +ARCH_DEP_CPPFLAGS = -D_OSF_SOURCE +ARCH_DEP_LDLIBS += + +ifdef CROSS + GNU_TARGET=alpha-osf + CMPLR_SUFFIX= + CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET)) +endif + diff --git a/configure/os/CONFIG.Common.solaris-sparc-gnu b/configure/os/CONFIG.Common.solaris-sparc-gnu new file mode 100644 index 000000000..943f9bad0 --- /dev/null +++ b/configure/os/CONFIG.Common.solaris-sparc-gnu @@ -0,0 +1,12 @@ +# CONFIG.Common.solaris-sparc-gnu +# +# $Id$ +# This file is maintained by the build community. +# +# Definitions for solaris-sparc gnu compiler target archs +# Sites may override these definitions in CONFIG_SITE.Common.solaris-sparc-gnu +#------------------------------------------------------- + +# Include definitions common to all solaris-sparc target archs +include $(CONFIG)/os/CONFIG.Common.solaris-sparc + diff --git a/configure/os/CONFIG.Common.solaris-x86 b/configure/os/CONFIG.Common.solaris-x86 new file mode 100644 index 000000000..5f5b50654 --- /dev/null +++ b/configure/os/CONFIG.Common.solaris-x86 @@ -0,0 +1,38 @@ +# CONFIG.Common.solaris-x86 +# +# $Id$ +# This file is maintained by the build community. +# +# Definitions for solaris-x86 target archs +# Sites may override these definitions in CONFIG_SITE.Common.solaris-x86 +#------------------------------------------------------- + +# Include definitions common to all Unix target archs +include $(CONFIG)/os/CONFIG.Common.UnixCommon + +OS_CLASS = solaris +ARCH_CLASS = x86 + +CODE_CPPFLAGS = -D__EXTENSIONS__ + +# This is the only combination of posix threads flags that works on solaris-sparc with solaris 6 +#POSIX_CPPFLAGS_YES = -D_REENTRANT -D_POSIX_C_SOURCE=199506L +#POSIX_LDLIBS_YES += -lposix4 -lpthread -lthread + +# This set of flags is recommended by sun for posix threads and works with solaris 8 +POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L +POSIX_LDLIBS_YES += -lposix4 -lpthread + +POSIX_CPPFLAGS_NO = +POSIX_LDLIBS_NO += + +ARCH_DEP_CPPFLAGS = -DSOLARIS -D_X86_ +# socket and nsl needed by libca.a +ARCH_DEP_LDLIBS += -lsocket -lnsl + +ifdef CROSS + GNU_TARGET=x86-sun-solaris2 + CMPLR_SUFFIX= + CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET)) +endif + diff --git a/configure/os/CONFIG.Common.solaris-x86-gnu b/configure/os/CONFIG.Common.solaris-x86-gnu new file mode 100644 index 000000000..5330e79af --- /dev/null +++ b/configure/os/CONFIG.Common.solaris-x86-gnu @@ -0,0 +1,12 @@ +# CONFIG.Common.solaris-x86-gnu +# +# $Id$ +# This file is maintained by the build community. +# +# Definitions for solaris-x86 gnu compiler target archs +# Sites may override these definitions in CONFIG_SITE.Common.solaris-x86-gnu +#------------------------------------------------------- + +# Include definitions common to all solaris-x86 target archs +include $(CONFIG)/os/CONFIG.Common.solaris-x86 + diff --git a/configure/os/CONFIG.Common.sun4-x86 b/configure/os/CONFIG.Common.sun4-x86 new file mode 100644 index 000000000..3fff73bad --- /dev/null +++ b/configure/os/CONFIG.Common.sun4-x86 @@ -0,0 +1,31 @@ +# CONFIG.Common.sun4-x86 +# +# $Id$ +# This file is maintained by the build community. +# +# Definitions for sun4-x86 target archs +# Sites may override these definitions in CONFIG_SITE.Common.sun4-x86 +#------------------------------------------------------- + +# Include definitions common to all Unix target archs +include $(CONFIG)/os/CONFIG.Common.UnixCommon + +OS_CLASS = sun4 +ARCH_CLASS = x86 + +CODE_CPPFLAGS = -D__EXTENSIONS__ + +POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L +POSIX_LDLIBS_YES += -lpthread -lthread +POSIX_CPPFLAGS_NO = +POSIX_LDLIBS_NO += + +ARCH_DEP_CPPFLAGS = -DSUNOS4 +ARCH_DEP_LDLIBS += -lsocket -lnsl + +ifdef CROSS + GNU_TARGET=x86-sun-sunos4 + CMPLR_SUFFIX= + CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET)) +endif + diff --git a/configure/os/CONFIG.solaris-sparc-gnu.Common b/configure/os/CONFIG.solaris-sparc-gnu.Common new file mode 100644 index 000000000..a3ccc236f --- /dev/null +++ b/configure/os/CONFIG.solaris-sparc-gnu.Common @@ -0,0 +1,12 @@ +# CONFIG.solaris-sparc-gnu.Common +# +# $Id$ +# This file is maintained by the build community. +# +# Definitions for solaris-sparc gnu compiler host builds +# Sites may override these definitions in CONFIG_SITE.solaris-sparc-gnu.Common +#------------------------------------------------------- + +#Include definitions common to solaris-sparc hosts +include $(CONFIG)/os/CONFIG.solaris-sparc.Common + diff --git a/configure/os/CONFIG.solaris-sparc-gnu.solaris-sparc-gnu b/configure/os/CONFIG.solaris-sparc-gnu.solaris-sparc-gnu new file mode 100644 index 000000000..9bac62414 --- /dev/null +++ b/configure/os/CONFIG.solaris-sparc-gnu.solaris-sparc-gnu @@ -0,0 +1,22 @@ +# CONFIG.solaris-sparc-gnu.solaris-sparc-gnu +# +# $Id$ +# This file is maintained by the build community. +# +# Definitions for solaris-sparc gnu compiler host - solaris-sparc gnu compiler target builds +# Sites may override these definitions in CONFIG_SITE.solaris-sparc-gnu.solaris-sparc-gnu +#------------------------------------------------------- + +# Include definitions common to all Unix target archs +include $(CONFIG)/os/CONFIG.Common.UnixCommon + +# Include common gnu compiler definitions +include $(CONFIG)/CONFIG.gnuCommon + +GNU_DIR = /opt/gnu + +CC = $(GNU_BIN)/gcc +CCC = $(GNU_BIN)/g++ +AR = ar -rc +RANLIB= + diff --git a/configure/os/CONFIG.solaris-x86-gnu.Common b/configure/os/CONFIG.solaris-x86-gnu.Common new file mode 100644 index 000000000..ca663552b --- /dev/null +++ b/configure/os/CONFIG.solaris-x86-gnu.Common @@ -0,0 +1,12 @@ +# CONFIG.solaris-x86-gnu.Common +# +# $Id$ +# This file is maintained by the build community. +# +# Definitions for solaris-x86 gnu compiler host builds +# Sites may override these definitions in CONFIG_SITE.solaris-x86-gnu.Common +#------------------------------------------------------- + +#Include definitions common to solaris-x86 hosts +include $(CONFIG)/os/CONFIG.solaris-x86.Common + diff --git a/configure/os/CONFIG.solaris-x86-gnu.solaris-x86-gnu b/configure/os/CONFIG.solaris-x86-gnu.solaris-x86-gnu new file mode 100644 index 000000000..ec040bffa --- /dev/null +++ b/configure/os/CONFIG.solaris-x86-gnu.solaris-x86-gnu @@ -0,0 +1,22 @@ +# CONFIG.solaris-x86-gnu.solaris-x86-gnu +# +# $Id$ +# This file is maintained by the build community. +# +# Definitions for solaris-x86 gnu compiler host - solaris-x86 gnu compiler target builds +# Sites may override these definitions in CONFIG_SITE.solaris-x86-gnu.solaris-x86-gnu +#------------------------------------------------------- + +# Include definitions common to all Unix target archs +include $(CONFIG)/os/CONFIG.Common.UnixCommon + +# Include common gnu compiler definitions +include $(CONFIG)/CONFIG.gnuCommon + +GNU_DIR = /opt/gnu + +CC = $(GNU_BIN)/gcc +CCC = $(GNU_BIN)/g++ +AR = ar -rc +RANLIB= + diff --git a/configure/os/CONFIG_SITE.linux-x86.UnixCommon b/configure/os/CONFIG_SITE.linux-x86.UnixCommon new file mode 100644 index 000000000..cd860d2aa --- /dev/null +++ b/configure/os/CONFIG_SITE.linux-x86.UnixCommon @@ -0,0 +1,9 @@ +# +# $Id$ +# +# Site Specific Configuration Information +# Only the local epics system manager should modify this file + +CC = $(GNU_BIN)/$(CMPLR_PREFIX)gcc$(CMPLR_SUFFIX) +CCC = $(GNU_BIN)/$(CMPLR_PREFIX)g++$(CMPLR_SUFFIX) + diff --git a/configure/os/CONFIG_SITE.linux-x86.solaris-sparc b/configure/os/CONFIG_SITE.linux-x86.solaris-sparc new file mode 100644 index 000000000..c3aae69f1 --- /dev/null +++ b/configure/os/CONFIG_SITE.linux-x86.solaris-sparc @@ -0,0 +1,11 @@ +# CONFIG_SITE.linux-x86.solaris-sparc +# +# $Id$ +# This file is maintained by the build community. +# +# Site specific definitions for linux-x86 host - solaris-sparc target builds +#------------------------------------------------------- + +GNU_DIR = /home/phoebus/JBA/gnu-solaris2 +GNU_TARGET_INCLUDE_DIR = $(GNU_DIR)/$(GNU_TARGET)/sys-include +