From 024544a7fd4bd67d146814dc034de85e4af0467a Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Thu, 4 Dec 1997 18:44:08 +0000 Subject: [PATCH] Added target frc5ce and sparc files. --- config/CONFIG.Vx.sparc | 124 ++++++++++++++++++++++++++++++++++++ config/CONFIG.frc5ce | 23 +++++++ config/CONFIG_SITE | 1 + config/CONFIG_SITE.Vx.sparc | 9 +++ config/CONFIG_SITE.frc5ce | 9 +++ config/RULES.Vx | 4 +- 6 files changed, 168 insertions(+), 2 deletions(-) create mode 100755 config/CONFIG.Vx.sparc create mode 100755 config/CONFIG.frc5ce create mode 100755 config/CONFIG_SITE.Vx.sparc create mode 100644 config/CONFIG_SITE.frc5ce diff --git a/config/CONFIG.Vx.sparc b/config/CONFIG.Vx.sparc new file mode 100755 index 000000000..0d42fbad0 --- /dev/null +++ b/config/CONFIG.Vx.sparc @@ -0,0 +1,124 @@ + +# $Id$ +# +# This file is maintained by the EPICS community. + +AR = $(VX_GNU_BIN)/arsparc +RANLIB = $(VX_GNU_BIN)/ranlibsparc +YACC = $(EYACC) +LEX = $(ELEX) +CC = $(VX_GNU_BIN)/ccsparc -B$(VX_GNU_LIB)/gcc-lib/ -nostdinc +CPP = $(VX_GNU_BIN)/cppsparc -nostdinc +#CPP = $(CC) -E +GCC = $(CC) +LD = $(VX_GNU_BIN)/ldsparc -r +EPICS_LDLIBS = +MV=mv +RM=rm -f +MKDIR = mkdir +RMDIR=rm -rf +WHAT = what + +#---------------------------- +# Only G++ currently supported +#CPLUSPLUS = G++ +CPLUSPLUS = CENTERLINE +CXXCMPLR = NORMAL +VX_OPT = YES +BOARD = $(subst mv,MV,$(T_A)) +CPU = sparc +OS = VXWORKS +#---------------------------- + +CCC = $(VX_GNU_BIN)/ccsparc -B$(VX_GNU_LIB)/gcc-lib/ -nostdinc +AR_CCC = $(VX_GNU_BIN)/arsparc +CPP_CCC = $(VX_GNU_BIN)/cppsparc -nostdinc +RANLIB_CCC = $(VX_GNU_BIN)/ranlibsparc +LD_CCC = $(VX_GNU_BIN)/ldsparc +CCC_CCFLAGS = +CCC_ARCH_DEP_CCFLAGS = +CCC_ARCH_DEP_LDFLAGS = + +CENTERLINE_NORMAL = $(VX_DIR)/bin/sun4/CCsparc + +#G++ = $(GNU_BIN)/sun3-g++ -B$(GNU_LIB)/gcc-lib/ -nostdinc -DEXPL_TEMPL +#AR_G++ = $(GNU_BIN)/sun3-ar +#CPP_G++ = $(GNU_BIN)/sun3-cpp +#RANLIB_G++ = $(GNU_BIN)/sun3-ranlib +#LD_G++ = $(GNU_BIN)/sun3-ld +#G++_ARCH_DEP_CCFLAGS = --no-builtin -Wa,"-m68040" -DOS_EQ_$(OS) \ +# -DBOARD_EQ_$(BOARD) -DCPU_EQ_$(CPU) -DBOARD=$(BOARD) +#G++_ARCH_DEP_LDFLAGS = -Ur -N -T$(EPICS_BASE_BIN)/vxldscript.MRI + +CCC_NORMAL = $(CCC) +CCC_STRICT = $(CCC) -ansi -pedantic -Wtraditional \ + -Wmissing-prototypes -Woverloaded-virtual \ + -Wwrite-strings -Wconversion -Wstrict-prototypes\ + -Wpointer-arith -Winline +G++_NORMAL = $(G++) +G++_STRICT = $(G++) -ansi -pedantic -Wtraditional + +CXX = $($(CPLUSPLUS)_$(CXXCMPLR)) +AR_CXX = $(AR_$(CPLUSPLUS)) +CPP_CXX = $(CPP_$(CPLUSPLUS)) +RANLIB_CXX = $(RANLIB_$(CPLUSPLUS)) +LD_CXX = $(LD_$(CPLUSPLUS)) + +ARCH_DEP_CXXFLAGS += $($(CPLUSPLUS)_ARCH_DEP_CCFLAGS) $(ARCH_DEP_CFLAGS) +ARCH_DEP_CXXLDFLAGS = $($(CPLUSPLUS)_ARCH_DEP_LDFLAGS) $(ARCH_DEP_LDFLAGS) + + +# special c library requirements +SPECIAL_LANG = + +# Compiler flags, don't mess with this +# Optimization flags +VX_OPT_YES = -O +VX_OPT_NO = +VX_OPT_FLAGS = $(VX_OPT_$(VX_OPT)) + +# Include files +VX_INCLUDES = -I. -I.. $(USR_INCLUDES) -I$(INSTALL_INCLUDE) -I$(EPICS_BASE_INCLUDE) \ + -I$(EPICS_BASE_INCLUDE)/os/vxWorks -I$(VX_INCLUDE) + +# Warnings +#At some time we should turn on pedantic +VX_WARN_YES = -Wall -pedantic -ansi +#VX_WARN_YES = -Wall +VX_WARN_NO = +VX_WARN_FLAGS = $(VX_WARN_$(VX_WARN)) + +# Operating system flags +VX_OP_SYS_FLAGS = -DvxWorks -DV5_vxWorks + +# Arch dependent flags are set in CONFIG_ARCH.* +VX_CFLAGS = $(VX_OPT_FLAGS) $(VX_WARN_FLAGS) \ + $(VX_INCLUDES) $(VX_OP_SYS_FLAGS) +VX_CXXFLAGS += $(VX_CFLAGS) + +TARGET_CFLAGS = $($(basename $@)_CFLAGS) +TARGET_CXXFLAGS = $($(basename $@)_CXXFLAGS) +TARGET_LDFLAGS = $($(basename $@)_LDFLAGS) +TARGET_CPPFLAGS = $($(basename $@)_CPPFLAGS) +TARGET_SNCFLAGS = $($(basename $@)_SNCFLAGS) + +CFLAGS = $(TARGET_CFLAGS) $(USR_CFLAGS) $(ARCH_DEP_CFLAGS) $(VX_CFLAGS) +CXXFLAGS = $(TARGET_CXXFLAGS) $(USR_CXXFLAGS) $(ARCH_DEP_CXXFLAGS) $(VX_CXXFLAGS) +LDFLAGS = $(TARGET_LDFLAGS) $(USR_LDFLAGS) $(ARCH_DEP_LDFLAGS) $(VX_LDFLAGS) +LDLIBS = $(TARGET_LDLIBS) $(USR_LDLIBS) $(ARCH_DEP_LDLIBS) $(VX_LDLIBS) +CXXLDLIBS = $(TARGET_LDLIBS) $(USR_CXXLDLIBS) $(ARCH_DEP_LDLIBS) $(VX_LDLIBS) +CXXLDFLAGS = $(TARGET_LDFLAGS) $(USR_CXXLDFLAGS) $(ARCH_DEP_CXXLDFLAGS) $(VX_LDFLAGS) +CPPFLAGS += $(TARGET_CPPFLAGS) $(USR_CPPFLAGS) +# Build compile line here +COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c +LINK.c = $(LD) $(LDFLAGS) -o +COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c +LINK.cc = $(LD_CXX) $(CXXLDFLAGS) -o + +CPPSNCFLAGS = $(VX_INCLUDES) + +DEPENDS_RULE.c = -$(COMPILE.c) -M $(SRCS.c) >> .DEPENDS +DEPENDS_RULE.cc = -$(COMPILE.cc) -M $(SRCS.cc) >> .DEPENDS + +# Allow site host architecture specific overrides +-include $(EPICS_BASE)/config/CONFIG_SITE.$(BUILD_TYPE).$(ARCH_CLASS).$(HOST_ARCH) diff --git a/config/CONFIG.frc5ce b/config/CONFIG.frc5ce new file mode 100755 index 000000000..b08c7cb34 --- /dev/null +++ b/config/CONFIG.frc5ce @@ -0,0 +1,23 @@ + +# BUILD_TYPE +# Currently either Vx or Unix +BUILD_TYPE = Vx + +# For Vx directories of form: +# +# $(VX_DIR)/$(HOST_ARCH).$(ARCH_CLASS)/bin +# +# And configuration files: +# +# CONFIG_SITE.Vx.68k -or- CONFIG_SITE.Unix.sun4 +# +ARCH_CLASS = sparc + +include $(EPICS_BASE)/config/CONFIG.$(BUILD_TYPE).$(ARCH_CLASS) + +# Architecture specific build flags +ARCH_DEP_CFLAGS = -DCPU=SPARC -DCPU_FAMILY=SPARC +# Removed -O2 [24/12/96 PMM] +ARCH_DEP_CXXFLAGS = -fno-builtin -ansi -pipe -nostdinc -DCPU=SPARC \ + -DVXWORKS -Dsigned= -Dvolatile= +V + diff --git a/config/CONFIG_SITE b/config/CONFIG_SITE index 0d115d045..ad47450ad 100644 --- a/config/CONFIG_SITE +++ b/config/CONFIG_SITE @@ -37,6 +37,7 @@ endif # hkv2f # niCpu030 # pc486 +# frc5ce # CROSS_COMPILER_TARGET_ARCHS=mv167 diff --git a/config/CONFIG_SITE.Vx.sparc b/config/CONFIG_SITE.Vx.sparc new file mode 100755 index 000000000..b65e7b023 --- /dev/null +++ b/config/CONFIG_SITE.Vx.sparc @@ -0,0 +1,9 @@ + +# $Id$ +# +# Site Specific Configuration Information +# Only the local epics system manager should modify this file + +# Epics defs + + diff --git a/config/CONFIG_SITE.frc5ce b/config/CONFIG_SITE.frc5ce new file mode 100644 index 000000000..b65e7b023 --- /dev/null +++ b/config/CONFIG_SITE.frc5ce @@ -0,0 +1,9 @@ + +# $Id$ +# +# Site Specific Configuration Information +# Only the local epics system manager should modify this file + +# Epics defs + + diff --git a/config/RULES.Vx b/config/RULES.Vx index b4d7a2c15..a1fea357e 100644 --- a/config/RULES.Vx +++ b/config/RULES.Vx @@ -256,11 +256,11 @@ $(INSTALL_INCLUDE)/%: ../% $(INSTALL_DOC)/%: % @echo "Installing $@" - @$(INSTALL) -m 644 $< $(INSTALL_DOC) + @$(INSTALL) -m 644 $< $(@D) $(INSTALL_DOC)/%: ../% @echo "Installing $@" - @$(INSTALL) -m 644 $< $(INSTALL_DOC) + @$(INSTALL) -m 644 $< $(@D) $(INSTALL_HTML)/$(HTMLS_DIR)/%: % @echo "Installing $@"