📄 config.mk
字号:
#* @(#) pSOSystem SPL/V2.5.0-F8: configs/spl/config.mk 4.7 00/02/03 14:36:27 *#***********************************************************************#* *#* MODULE: configs/std/config.mk *#* DATE: 00/02/03 *#* PURPOSE: Macro definitions, linker commands, etc, for "make" *#* *#*---------------------------------------------------------------------*#* *#* Copyright 1991 - 2000, Integrated Systems, Inc. *#* ALL RIGHTS RESERVED *#* *#* Permission is hereby granted to licensees of Integrated Systems, *#* Inc. products to use or abstract this computer program for the *#* sole purpose of implementing a product based on Integrated *#* Systems, Inc. products. No other rights to reproduce, use, *#* or disseminate this computer program, whether in part or in *#* whole, are granted. *#* *#* Integrated Systems, Inc. makes no representation or warranties *#* with respect to the performance of this computer program, and *#* specifically disclaims any responsibility for any damages, *#* special or consequential, connected with the use of this program. *#* *#*---------------------------------------------------------------------*#***********************************************************************##------------------------------------------------------------------------# Compiler commands and command-line options#------------------------------------------------------------------------#------------------------------------------------------------------------# Note the CC and CXX commands are continued on several lines.## Only echo the "Making..." string if the silent flags was not given.## The command `echo ${MAKEFLAGS} | sed 's/[^s]//g'` echoes the make flags# to the standard input of the sed command. The sed command replaces# every character that is not an s with nothing. So if the silent flag# was given the left side of the equals results in "Xs". If the silent# flag was not given it would result in "X".#------------------------------------------------------------------------CC = @if [ "X`echo ${MAKEFLAGS} | sed 's/[^s]//g'`" = "X" ]; \ then \ echo "Making $@ \tfrom $<"; \ fi; \ dcc CXX = @if [ "X`echo ${MAKEFLAGS} | sed 's/[^s]//g'`" = "X" ]; \ then \ echo "Making $@ \tfrom $<"; \ fi; \ dplus#------------------------------------------------------------------------# Add following option to COPTS_FILE2 to generate listing files# -W:as:,-l -Xpass-source#------------------------------------------------------------------------COMP_OPTS1 = -O -g -t$(DTARGET)E$(DFP):psos -Xstruct-best-align=0COMP_OPTS2 = -Xforce-prototypes -Xstrict-ansi $(PSS_APPCOPTS) -D__DIAB -DSPLCOPTS_FILE1 = -I. -I$(PSS_ROOT)/include -I$(PSS_BSP) $(PSS_APPINCS)COPTS_FILE2 = -I$(PSS_ROOT)/bsps/devices $(PSS_VINCLUDE) -I@ -cCXX_OPTS = -Xexception#------------------------------------------------------------------------# COPT_PER_FILE is used to provide a convenient way to add per# file compile options. If a .cop file for a source file exist then# content of this file is passed as the compile options.#------------------------------------------------------------------------COPT_PER_FILE=`if [ -f ./$(*F).cop ]; then cat ./$(*F).cop; fi`COPTS = -@c.opt $(COPT_PER_FILE)CXXOPTS = -@cxx.opt $(COPT_PER_FILE)#------------------------------------------------------------------------# TARGET_CPU is used in application makefiles to pass on to incremental# linking and other tools.#------------------------------------------------------------------------TARGET_CPU = -t$(DTARGET)E$(DFP):psos#------------------------------------------------------------------------# DEVICES_CPU_DIR is used by application makefiles to make them generic# across platforms.#------------------------------------------------------------------------DEVICES_CPU_DIR = $(PSS_ROOT)/bsps/devices/powerpc#------------------------------------------------------------------------# Assembler command-line options## Note the AS command is continued on several lines.## Only echo the "Making..." string if the silent flags was not given.## The command `echo ${MAKEFLAGS} | sed 's/[^s]//g'` echoes the make flags# to the standard input of the sed command. The sed command replaces# every character that is not an s with nothing. So if the silent flag# was given the left side of the equals results in "Xs". If the silent# flag was not given it would result in "X".#------------------------------------------------------------------------AS = @if [ "X`echo ${MAKEFLAGS} | sed 's/[^s]//g'`" = "X" ]; \ then \ echo "Making $@ \tfrom $<"; \ fi; \ das#------------------------------------------------------------------------# Added target switch for the assembler# The target definition is located in bsp.mk of the bsp you are using#------------------------------------------------------------------------# Add following option to AOPTS_FILE1 to generate listing files -l#------------------------------------------------------------------------AOPTS_FILE1 = -I. $(PSS_APPINCS) -I$(PSS_ROOT)/include -I$(PSS_BSP)AOPTS_FILE2 = -I$(PSS_ROOT)/bsps/devices $(PSS_VINCLUDE) -I@AOPTS_FILE3 = -t$(DTARGET)E$(DFP):psosAOPTS = -@a.opt $(COPT_PER_FILE)#------------------------------------------------------------------------# Linker command name#------------------------------------------------------------------------LD = dldLOPTS = -t$(DTARGET)E$(DFP):psos -Xsuppress-dot -Xreloc-bug -m2 $(PSS_APPLOPTS)#------------------------------------------------------------------------# Librarian command name and options#------------------------------------------------------------------------LIB = darLIBOPTS = -qfLIBOPTS_SORT = -sR#========================================================================# Link everything together #========================================================================CFG1_OBJS= sysinit.o bspcfg.o pnacfg.o prepccfg.o dialog.oCFG2_OBJS= probecfg.o prpccfg.o psecfg.o psoscfg.o pmontcfg.oCFG3_OBJS= pollio.o philecfg.o gsblkcfg.o plmcfg.o pnetcfg.oCFG4_OBJS= ldcfg.o posixcfg.o rtacfg.o ram.elf: cxx.opt c.opt a.opt ill.opt begin.o compiler.o \ makefile \ ram.dld \ $(CFG1_OBJS) \ $(CFG2_OBJS) \ $(CFG3_OBJS) \ $(CFG4_OBJS) \ $(PSS_DRVOBJS) \ $(PSS_APPOBJS) \ $(PSS_BSP)/libbsp.a \ $(PSS_ROOT)/sys/os/libsys.a \ $(PSS_ROOT)/sys/libc/libprepc$(DFP).a \ $(PSS_ROOT)/sys/libc/libpnet.a @echo $(LOPTS) -o ram.elf -Wm ram.dld begin.o > l.opt @echo -L $(PSS_BSP) -L $(PSS_ROOT)/sys/os >> l.opt @echo -L $(PSS_ROOT)/sys/libc $(PSS_APPLINKS) >> l.opt @echo $(PSS_VLINK) >> l.opt @echo compiler.o >> l.opt @echo $(CFG1_OBJS) >> l.opt @echo $(CFG2_OBJS) >> l.opt @echo $(CFG3_OBJS) >> l.opt @echo $(CFG4_OBJS) >> l.opt @echo $(PSS_APPOBJS) >> l.opt @echo $(APP_LIB1) >> l.opt @echo $(APP_LIB2) >> l.opt @echo $(APP_LIB3) >> l.opt @echo $(APP_LIB4) >> l.opt @echo $(APP_LIB5) >> l.opt @echo $(PSS_DRVOBJS) >> l.opt @echo $(DRV_LIB1) >> l.opt @echo $(DRV_LIB2) >> l.opt @echo $(DRV_LIB3) >> l.opt @echo $(DRV_LIB4) >> l.opt @echo $(DRV_LIB5) >> l.opt @echo -lbsp -ldrv >> l.opt @echo -lsys >> l.opt @echo -lprepc$(DFP) -lpnet -lquery >> l.opt @echo $(FIX_LIB) >> l.opt @echo $(PSS_COMPLIB) >> l.opt $(LD) -@l.opt > ram.map ddump -tv ram.elf >> ram.mapram.dld: $(PSS_BSP)/anchor.dld \ $(PSS_BSP)/ram.dld @cat $(PSS_BSP)/ram.dld > ram.dld @cat $(PSS_BSP)/anchor.dld >> ram.dldram.hex: ram.elf ddump -Rv ram.elf -o ram.hexrom.elf: cxx.opt c.opt a.opt ill.opt rombegin.o compiler.o \ makefile \ rom.dld \ $(CFG1_OBJS) \ $(CFG2_OBJS) \ $(CFG3_OBJS) \ $(CFG4_OBJS) \ $(PSS_DRVOBJS) \ $(PSS_BSP)/libbsp.a \ $(PSS_APPOBJS) \ $(PSS_ROOT)/sys/os/libsys.a \ $(PSS_ROOT)/sys/libc/libprepc$(DFP).a \ $(PSS_ROOT)/sys/libc/libpnet.a @echo $(LOPTS) -o rom.elf -Wm rom.dld rombegin.o > l.opt @echo -L $(PSS_BSP) -L $(PSS_ROOT)/sys/os >> l.opt @echo -L $(PSS_ROOT)/sys/libc $(PSS_APPLINKS) >> l.opt @echo $(PSS_VLINK) >> l.opt @echo compiler.o >> l.opt @echo $(CFG1_OBJS) >> l.opt @echo $(CFG2_OBJS) >> l.opt @echo $(CFG3_OBJS) >> l.opt @echo $(CFG4_OBJS) >> l.opt @echo $(PSS_APPOBJS) >> l.opt @echo $(APP_LIB1) >> l.opt @echo $(APP_LIB2) >> l.opt @echo $(APP_LIB3) >> l.opt @echo $(APP_LIB4) >> l.opt @echo $(APP_LIB5) >> l.opt @echo $(PSS_DRVOBJS) >> l.opt @echo $(DRV_LIB1) >> l.opt @echo $(DRV_LIB2) >> l.opt @echo $(DRV_LIB3) >> l.opt @echo $(DRV_LIB4) >> l.opt @echo $(DRV_LIB5) >> l.opt @echo -lbsp -ldrv >> l.opt @echo -lsys >> l.opt @echo -lprepc$(DFP) -lpnet -lquery >> l.opt @echo $(FIX_LIB) >> l.opt @echo $(PSS_COMPLIB) >> l.opt $(LD) -@l.opt > rom.map ddump -tv rom.elf >> rom.maprom.dld: $(PSS_BSP)/anchor.dld \ $(PSS_BSP)/rom.dld @cat $(PSS_BSP)/rom.dld > rom.dld @cat $(PSS_BSP)/anchor.dld >> rom.dldrom.hex: rom.elf ddump -Rv rom.elf -o rom.hexos.elf: cxx.opt c.opt a.opt ill.opt begin.o \ makefile \ os.dld \ $(CFG1_OBJS) \ $(CFG2_OBJS) \ $(CFG3_OBJS) \ $(CFG4_OBJS) \ $(PSS_DRVOBJS) \ $(PSS_BSP)/libbsp.a \ $(PSS_ROOT)/sys/os/libsys.a \ $(PSS_ROOT)/sys/libc/libprepc$(DFP).a \ $(PSS_ROOT)/sys/libc/libpnet.a @echo $(LOPTS) -o os.elf -Wm os.dld begin.o > l.opt @echo -L $(PSS_BSP) -L $(PSS_ROOT)/sys/os >> l.opt @echo -L $(PSS_ROOT)/sys/libc $(PSS_APPLINKS) >> l.opt @echo $(PSS_VLINK) >> l.opt @echo $(CFG1_OBJS) >> l.opt @echo $(CFG2_OBJS) >> l.opt @echo $(CFG3_OBJS) >> l.opt @echo $(CFG4_OBJS) >> l.opt @echo $(PSS_DRVOBJS) >> l.opt @echo $(DRV_LIB1) >> l.opt @echo $(DRV_LIB2) >> l.opt @echo $(DRV_LIB3) >> l.opt @echo $(DRV_LIB4) >> l.opt @echo $(DRV_LIB5) >> l.opt @echo -lbsp -ldrv >> l.opt @echo -lsys >> l.opt @echo -lprepc$(DFP) -lpnet -lquery >> l.opt @echo $(FIX_LIB) >> l.opt @echo $(PSS_COMPLIB) >> l.opt $(LD) -@l.opt > os.map ddump -tv os.elf >> os.mapos.dld: $(PSS_BSP)/anchor.dld \ $(PSS_BSP)/os.dld @cat $(PSS_BSP)/os.dld > os.dld @cat $(PSS_BSP)/anchor.dld >> os.dldos.hex: os.elf ddump -Rv os.elf -o os.hexapp.elf: cxx.opt c.opt a.opt ill.opt beginapp.o bspcalls.o compiler.o \ makefile \ app.dld \ $(PSS_APPOBJS) \ $(PSS_ROOT)/sys/os/libsys.a \ $(PSS_ROOT)/sys/libc/libprepc$(DFP).a @echo $(LOPTS) -o app.elf -Wm app.dld beginapp.o > l.opt @echo bspcalls.o >> l.opt @echo -L $(PSS_BSP) -L $(PSS_ROOT)/sys/os >> l.opt @echo -L $(PSS_ROOT)/sys/libc $(PSS_APPLINKS) >> l.opt @echo $(PSS_VLINK) >> l.opt @echo compiler.o >> l.opt @echo $(PSS_APPOBJS) >> l.opt @echo $(APP_LIB1) >> l.opt @echo $(APP_LIB2) >> l.opt @echo $(APP_LIB3) >> l.opt @echo $(APP_LIB4) >> l.opt @echo $(APP_LIB5) >> l.opt @echo -lsys >> l.opt @echo -lprepc$(DFP) -lquery >> l.opt @echo $(FIX_LIB) >> l.opt @echo $(PSS_COMPLIB) >> l.opt $(LD) -@l.opt > app.map ddump -tv app.elf >> app.mapapp.dld: $(PSS_BSP)/anchor.dld \ $(PSS_BSP)/app.dld
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -