mpw-config.in
来自「基于4个mips核的noc设计」· IN 代码 · 共 116 行
IN
116 行
# Configuration fragment for GAS.Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`If "{target_arch}" =~ /powerpc/ Set short_arch_name "ppc" Set target_cpu "powerpc"Else Set short_arch_name "{target_arch}"End If# The following works for many configurations, though not all.Set obj_format `echo {target_canonical} | sed -e 's/.*-.*-//'`Set target_os `echo {target_canonical} | sed -e 's/.*-.*-//'`Set bfd_gas noSet TDEFINES ""Set EXTRA_OBJECTS ""# Default emulation.Set em genericIf "{target_canonical}" =~ /m68k-apple-macos/ Set obj_format "coff" Set TDEFINES '-d M68KCOFF' Set EXTRA_OBJECTS '"{o}"m68k-parse.c.o'Else If "{target_canonical}" =~ /powerpc-apple-macos/ Set obj_format "coff" Set bfd_gas yes Set em macosElse If "{target_canonical}" =~ /i386-\Option-x-go32/ Set obj_format "coff" Set TDEFINES '-d I386COFF'Else If "{target_canonical}" =~ /m68k-\Option-x-coff/ Set TDEFINES '-d M68KCOFF'Else If "{target_canonical}" =~ /mips-idt-ecoff/ Set bfd_gas yes Set TDEFINES '-d TARGET_BYTES_BIG_ENDIAN=1'Else If "{target_canonical}" =~ /mips-\Option-x-\Option-x/ # Assume other OSes etc use ELF Set obj_format "elf" Set bfd_gas yes Set TDEFINES '-d TARGET_BYTES_BIG_ENDIAN=1' forward-include "{srcroot}"bfd:elf-bfd.h 'bfd/elf-bfd.h'Else If "{target_canonical}" =~ /sh-\Option-x-hms/ Set obj_format "coff" forward-include "{srcroot}"opcodes:sh-opc.h 'opcodes/sh-opc.h'End Ifforward-include "{srcdir}"config:tc-{short_arch_name}.c targ-cpu.cforward-include "{srcdir}"config:tc-{short_arch_name}.h targ-cpu.hforward-include "{srcdir}"config:obj-{obj_format}.c obj-format.cforward-include "{srcdir}"config:obj-{obj_format}.h obj-format.hforward-include "{srcdir}"config:te-{em}.h targ-env.h# Special cases for float handling.If "{target_arch}" =~ /ns32k/ forward-include "{srcdir}"config:atof-ns32k.c atof-targ.cElse If "{target_arch}" =~ /tahoe/ forward-include "{srcdir}"config:atof-tahoe.c atof-targ.cElse If "{target_arch}" =~ /vax/ forward-include "{srcdir}"config:atof-vax.c atof-targ.cElse # Use IEEE by default. forward-include "{srcdir}"config:atof-ieee.c atof-targ.cEnd IfEcho '# From mpw-config.in' > "{o}"mk.tmpEcho "TDEFINES = " {TDEFINES} >> "{o}"mk.tmpEcho "EXTRA_OBJECTS = " {EXTRA_OBJECTS} >> "{o}"mk.tmp# (We use the -n option here so as not to get extra spaces inserted)Echo -n 'TARG_CPU_DEP = {TARG_CPU_DEP_' >> "{o}"mk.tmpEcho -n {short_arch_name} >> "{o}"mk.tmpEcho -n '}' >> "{o}"mk.tmpEcho '# End from mpw-config.in' >> "{o}"mk.tmpEcho '/* conf. Generated by mpw-configure. */' > "{o}"conf.newEcho -n '#define TARGET_CPU "' >> "{o}"conf.newEcho -n "{target_cpu}" >> "{o}"conf.newEcho '"' >> "{o}"conf.newEcho -n '#define TARGET_OS "' >> "{o}"conf.newEcho -n "{target_os}" >> "{o}"conf.newEcho '"' >> "{o}"conf.newEcho -n '#define TARGET_ALIAS "' >> "{o}"conf.newEcho -n "{target_alias}" >> "{o}"conf.newEcho '"' >> "{o}"conf.newEcho -n '#define TARGET_CANONICAL "' >> "{o}"conf.newEcho -n "{target_canonical}" >> "{o}"conf.newEcho '"' >> "{o}"conf.newEcho '#include "mpw.h"' >> "{o}"conf.newIf "{bfd_gas}" =~ /yes/ Echo "#define BFD_ASSEMBLER" >> "{o}"conf.newElse Echo "#define MANY_SEGMENTS" >> "{o}"conf.newEnd IfEcho '#define CR_EOL' >> "{o}"conf.newEcho '#define OBJ_COFF_OMIT_TIMESTAMP' >> "{o}"conf.newEcho '#define LOSING_COMPILER' >> "{o}"conf.newMoveIfChange "{o}"conf.new "{o}"confsed -e "s/@srcdir@/{srcdir}/" "{srcdir}"gdbinit.in > "{o}"_gdbinit
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?