# $Id$ # # This file contains definitions for Vx builds #-------------------------------------------------- # operating system class (include/os/) OS_CLASS = vxWorks #-------------------------------------------------- # vxWorks directory definitions # The definitions VX_DIR, VX_GNU, GNU_DIR and GNU_LIB # can be overridden for specific host architectures # by creating a CONFIG_SITE.Vx. file with # the override definitions. # Tornado directory definitions VX_CONFIG_DIR_YES = $(VX_DIR)/target/config VX_INCLUDE_YES = $(VX_DIR)/target/h VX_GNU_YES = $(VX_DIR)/host/$(WIND_HOST_TYPE) VX_GNU_BIN_YES = $(VX_GNU)/bin VX_GNU_LIB_YES = $(VX_GNU)/lib # pre Torando directory definitions VX_CONFIG_DIR_NO = $(VX_DIR)/config VX_INCLUDE_NO = $(VX_DIR)/h VX_GNU_BIN_NO = $(VX_GNU)/$(HOST_ARCH).$(ARCH_CLASS)/bin VX_GNU_LIB_NO = $(VX_GNU)/$(HOST_ARCH).$(ARCH_CLASS)/lib # directory definitions VX_DIR = $(VX_DIR_$(TORNADO)) VX_CONFIG_DIR = $(VX_CONFIG_DIR_$(TORNADO)) VX_INCLUDE = $(VX_INCLUDE_$(TORNADO)) VX_GNU = $(VX_GNU_$(TORNADO)) GNU_BIN = $(VX_GNU_BIN_$(TORNADO)) GNU_LIB = $(VX_GNU_LIB_$(TORNADO)) #-------------------------------------------------- # VxWorks command definitions GCC = $(GNU_BIN)/cc$(CMPLR_SUFFIX) -B$(GNU_LIB)/gcc-lib/ -nostdinc AR = $(GNU_BIN)/ar$(CMPLR_SUFFIX) CPP = $(GNU_BIN)/cpp$(CMPLR_SUFFIX) -nostdinc RANLIB = $(GNU_BIN)/ranlib$(CMPLR_SUFFIX) LD = $(GNU_BIN)/ld$(CMPLR_SUFFIX) -r #-------------------------------------------------- # Tornado C++ crosscompiler definitions CPLUSPLUS_YES = G++ G++ = $(GNU_BIN)/cc$(CMPLR_SUFFIX) -B$(GNU_LIB)/gcc-lib/ -nostdinc LD_G++ = $(GNU_BIN)/ld$(CMPLR_SUFFIX) -r NM = $(GNU_BIN)/nm$(CMPLR_SUFFIX) MUNCH = $(GNU_BIN)/munch #-------------------------------------------------- # Pre Tornado C++ crosscompiler definitions # These are pre tornado definitions for Hideos builds (defined for 68k only) CPLUSPLUS_NO = CCC CCC = $(GNU_DIR)/bin/sun3-g++ -B$(GNU_DIR)/lib/gcc-lib/ -nostdinc -DEXPL_TEMPL LD_CCC = $(GNU_DIR)/bin/sun3-ld $(OLD_ARCH_DEP_LDFLAGS) -r CCC_NORMAL = $(CCC) $(OLD_ARCH_DEP_CFLAGS) CCC_STRICT = $(CCC) -ansi -pedantic -Wtraditional $(OLD_ARCH_DEP_CFLAGS) CCC_TRAD = $(CCC) -traditional $(OLD_ARCH_DEP_CFLAGS) CCC_TEMPL_INST_FLAG = CCC_WARN_YES = -Wall CCC_WARN_NO = -w CCC_OPT_YES = -O2 -fstrength-reduce CCC_OPT_NO = CCC_DEPENDS_FLAG = -MM CPU = 68000 OS = VXWORKS OLD_ARCH_DEP_CFLAGS = --no-builtin -Wa,"-m68040" -DOS_EQ_$(OS) \ -DBOARD_EQ_$(BOARD) -DCPU_EQ_$(CPU) -DBOARD=$(BOARD) OLD_ARCH_DEP_LDFLAGS = -Ur -N -T$(EPICS_BASE_BIN)/vxldscript.MRI #-------------------------------------------------- # C compiler definitions ANSI = GCC #-------------------------------------------------- # Command definitions CPLUSPLUS = $(CPLUSPLUS_$(TORNADO)) LD_CXX = $(LD_$(CPLUSPLUS)) #-------------------------------------------------- # Operating system flags OP_SYS_INCLUDES = -I$(VX_INCLUDE) OP_SYS_CFLAGS = -DvxWorks -DV5_vxWorks -fno-builtin OP_SYS_LDFLAGS = OP_SYS_LDLIBS = #-------------------------------------------------- # Optimization flag overrides GCC_OPT_YES = -O2 -fstrength-reduce GCC_OPT_NO = G++_OPT_YES = -O2 -fstrength-reduce G++_OPT_NO = OPT_CFLAGS = $($(ANSI)_OPT_$(VX_OPT)) OPT_CXXFLAGS = $($(CPLUSPLUS)_OPT_$(VX_OPT)) #-------------------------------------------------- # Warning flag overrides GCC_WARN_YES = -Wall GCC_WARN_NO = -w G++_WARN_YES = -Wall G++_WARN_NO = -w WARN_CFLAGS = $($(ANSI)_WARN_$(VX_WARN)) WARN_CXXFLAGS = $($(CPLUSPLUS)_WARN_$(VX_WARN)) #-------------------------------------------------- # Link definitions LINK.c = $(LD) $(LDFLAGS) -o LINK.cc = $(LD_CXX) $(LDFLAGS) -o