📄 config.mk
字号:
#* @(#) pSOSystem PowerPC/V2.5.0: configs/ppc/config.mk 4.23 98/11/11 06:51:23 *#***********************************************************************#* *#* MODULE: configs/std/config.mk *#* DATE: 98/11/11 *#* PURPOSE: Macro definitions, linker commands, etc, for "make" *#* *#*---------------------------------------------------------------------*#* *#* Copyright 2000-2001 Wind River Systems, Inc.#* Copyright 1991 - 1998, 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#------------------------------------------------------------------------# Add following option to COPTS_FILE2 to generate listing files# -W:as:,-l -Xpass-source#------------------------------------------------------------------------CC = @echo "Making $@ \tfrom $<";dccCXX = @echo "Making $@ \tfrom $<";dplusCOMP_OPTS1 = -O -t$(DTARGET)E$(DFP):psos -Xstruct-best-align=0COMP_OPTS2 = -Xstrict-ansi $(PSS_APPCOPTS) -D__DIAB -DPPCCOPTS_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#------------------------------------------------------------------------# Assembler command-line options#------------------------------------------------------------------------AS = @echo "Making $@ \tfrom $<";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)AOPTS = -@a.opt $(COPT_PER_FILE)#------------------------------------------------------------------------# Linker command name#------------------------------------------------------------------------LD = dldLOPTS = -t$(DTARGET)E$(DFP) -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 \ 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 $(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 -m3 $(APP_LIB1) >> l.opt @echo -m3 $(APP_LIB2) >> l.opt @echo -m3 $(APP_LIB3) >> l.opt @echo -m3 $(APP_LIB4) >> l.opt @echo -m3 $(APP_LIB5) >> l.opt @echo $(PSS_DRVOBJS) >> l.opt @echo -m3 $(DRV_LIB1) >> l.opt @echo -m3 $(DRV_LIB2) >> l.opt @echo -m3 $(DRV_LIB3) >> l.opt @echo -m3 $(DRV_LIB4) >> l.opt @echo -m3 $(DRV_LIB5) >> l.opt @echo -lbsp -ldrv >> l.opt @echo -lsys >> l.opt @echo -lprepc$(DFP) -lpnet -lquery >> l.opt @echo -m3 $(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 begin.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 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_APPOBJS) >> l.opt @echo -m3 $(APP_LIB1) >> l.opt @echo -m3 $(APP_LIB2) >> l.opt @echo -m3 $(APP_LIB3) >> l.opt @echo -m3 $(APP_LIB4) >> l.opt @echo -m3 $(APP_LIB5) >> l.opt @echo $(PSS_DRVOBJS) >> l.opt @echo -m3 $(DRV_LIB1) >> l.opt @echo -m3 $(DRV_LIB2) >> l.opt @echo -m3 $(DRV_LIB3) >> l.opt @echo -m3 $(DRV_LIB4) >> l.opt @echo -m3 $(DRV_LIB5) >> l.opt @echo -lbsp -ldrv >> l.opt @echo -lsys >> l.opt @echo -lprepc$(DFP) -lpnet -lquery >> l.opt @echo -m3 $(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 -m3 $(DRV_LIB1) >> l.opt @echo -m3 $(DRV_LIB2) >> l.opt @echo -m3 $(DRV_LIB3) >> l.opt @echo -m3 $(DRV_LIB4) >> l.opt @echo -m3 $(DRV_LIB5) >> l.opt @echo -lbsp -ldrv >> l.opt @echo -lsys >> l.opt @echo -lprepc$(DFP) -lpnet -lquery >> l.opt @echo -m3 $(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 \ 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 $(PSS_APPOBJS) >> l.opt @echo -m3 $(APP_LIB1) >> l.opt @echo -m3 $(APP_LIB2) >> l.opt @echo -m3 $(APP_LIB3) >> l.opt @echo -m3 $(APP_LIB4) >> l.opt
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -