📄 makefile.bak
字号:
#* @(#) pSOSystem PowerPC/V2.5.0: apps/xxxx/makefile.diab (hello ppc) 4.66 98/11/13 18:07:08 *
#***********************************************************************
#* *
#* MODULE: makefile *
#* DATE: 98/11/13 *
#* PURPOSE: Sample makefile to build a pSOSystem application *
#* *
#*---------------------------------------------------------------------*
#* *
#* 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. *
#* *
#*---------------------------------------------------------------------*
#* *
#* Before using this makefile, you must define environment variable *
#* PSS_ROOT to point to the pSOSystem "root" directory. You may *
#* also need to change the definition of PSS_BSP to point to the *
#* board support package you are using. PSS_BSP must be the full *
#* path name of the board support package. *
#* *
#* You can also define an environment variable called PSS_COMPLIB. *
#* This may be used to link any additional library you want (for *
#* example, -lc). Note: PSS_COMPLIB must contain the full *
#* path name of the library. *
#* *
#* In SNiFF+ environment you should use following command for build: *
#* 'psosmake SNIFF_MAKE [target_name]' *
#***********************************************************************
#-----------------------------------------------------------------------
# PSS_REL_LEVEL is used in $(SNIFF_MAKE_CMD).mk file to redefine
# PSS_ROOT and PSS_BSP using relative paths. This is required by the
# SNiFF+ build environment to implement workspace over-riding.
#-----------------------------------------------------------------------
PSS_BSP=$(PSS_ROOT)/bsps/muxca
PSS_REL_LEVEL=../..
#-----------------------------------------------------------------------
# PSS_DRVOBJS is a list of drivers to be added to the OS, above and
# beyond those included in the pSOSystem board-support package. (The
# driver configuration file drv_conf.o must always be included in this
# list.)
#-----------------------------------------------------------------------
PSS_DRVOBJS = drv_conf.o
#-----------------------------------------------------------------------
# PSS_APPOBJS is a list of object files for the application. When the
# os and application are built separately PSS_APPOBJS will be included
# as part of the application download file.
# When the os and application are built together PSS_APPOBJS will be
# included in the system download file
#-----------------------------------------------------------------------
PSS_APPOBJS = root.o smcuart.o flash.o sccuart.o alarm.o cmdproc.o data.o hardware.o inthandle.o loop.o panel.o system.o tcpip.o feeddog.o pidproc.o nib.o psi.o repid.o caproc.o emm.o ecm.o appmon.o
#-----------------------------------------------------------------------
# PSS_SHARED_LIBS is a list of shared libraries to make.
# Each is made in a subdirectory named the same as the shared library.
# Each entry is listed as lib/lib.slb.
# For example lib_a is lib_a/lib_a.slb.
#-----------------------------------------------------------------------
PSS_SHARED_LIBS =
#-----------------------------------------------------------------------
# PSS_APPCOPTS can be used to add non-standard compiler options.
# PSS_APPLOPTS can be used to add non-standard linker options.
#-----------------------------------------------------------------------
PSS_APPCOPTS=-Xsmall-data=8
PSS_APPLOPTS=-e _START
#-----------------------------------------------------------------------
# PSS_APPINCS can be used to add non-standard include paths for the
# application, such as paths to directories containing custom drivers.
#-----------------------------------------------------------------------
PSS_APPINCS=
#-----------------------------------------------------------------------
# PSS_APPLINKS can be used to add non-standard library paths for the
# application, such as paths to directories containing custom drivers.
#-----------------------------------------------------------------------
PSS_APPLINKS=
#---------------------------------------------------------------------
# DRV_LIB?s are the libraries that you want to link with your
# application like all the networking libraries.
#
# So set DRV_LIB1....DRV_LIB5 with what ever libraries you intend to
# link.
# DRV_LIB1=
# DRV_LIB2=
# DRV_LIB3=
# DRV_LIB4=
# DRV_LIB5=
#---------------------------------------------------------------------
DRV_LIB1 =
DRV_LIB2 =
DRV_LIB3 =
DRV_LIB4 =
DRV_LIB5 =
#-----------------------------------------------------------------------
# PSS_COMPLIB specifies libraries to be searched. These are specified
# as command-line options:
#
# By default PSS_COMPLIB is set to include the appropriate libc library
# If you need any other libraries, you can add them.
#
#-----------------------------------------------------------------------
PSS_COMPLIB = -lc
FIX_LIB =
#---------------------------------------------------------------------
# APP_LIB is the name of the library file that will contain the
# compiled application code and Library to be linked with Application
#---------------------------------------------------------------------
APP_LIB1 =
APP_LIB2 =
APP_LIB3 =
APP_LIB4 =
APP_LIB5 =
#-----------------------------------------------------------------------
# Target "all" defines what is made when make is invoked with no
# arguments. You may want to change this if you are building something
# else all the time. The possible targets are:
# ram.elf - OS and application together in RAM
# rom.elf - OS and application together in ROM
# os.elf - OS only, downloaded to RAM
# app.elf - application only, downloaded to RAM
# app_ld.elf - Loadable application, can be loaded by pSOSystem loader
# lddriver.elf - Loadable driver, Can be loaded by lddriver app.
# Targets with a ".elf extension are ELF format. You may build any of
# these in S-record format instead by substituting a ".hex" extension,
# such as "ram.hex" or "ram.elf".
#-----------------------------------------------------------------------
all: ram.elf ram.hex rom.hex flash.hex
#-----------------------------------------------------------------------
# define PSS_CONFIG to point to the configs directory
#-----------------------------------------------------------------------
PSS_CONFIG=$(PSS_ROOT)/configs/std
#-----------------------------------------------------------------------
# $(SNIFF_MAKE_CMD).mk implemets the SNiFF+ workspace over-riding and
# should be included before any other file. For non SNiFF+ build it has
# no effect.
#-----------------------------------------------------------------------
include $(PSS_CONFIG)/$(SNIFF_MAKE_CMD).mk
include $(PSS_BSP)/bsp.mk
include $(PSS_CONFIG)/config.mk
clean:
@rm -f ram.coff *.cfe *.cof *.elf ram.* rom.* *.a
@rm -f *.o *.map *.hex *.x *.opt *.L app.* qpsos.tmp
@rm -f ram.dld rom.dld os.dld app.dld lib.dld driver.dld
@rm -f *.db *.db2 *.ou1 *.blk
root.o: root.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO root.o $<
smcuart.o: smcuart.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO smcuart.o $<
sccuart.o: sccuart.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO sccuart.o $<
flash.o: flash.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO flash.o $<
alarm.o: alarm.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO alarm.o $<
cmdproc.o: cmdproc.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO cmdproc.o $<
data.o: data.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO data.o $<
hardware.o: hardware.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO hardware.o $<
inthandle.o: inthandle.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO inthandle.o $<
loop.o: loop.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO loop.o $<
panel.o: panel.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO panel.o $<
system.o: system.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO system.o $<
tcpip.o: tcpip.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO tcpip.o $<
feeddog.o: feeddog.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO feeddog.o $<
pidproc.o: pidproc.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO pidproc.o $<
nib.o: nib.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO nib.o $<
psi.o: psi.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO psi.o $<
repid.o: repid.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO repid.o $<
caproc.o: caproc.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO caproc.o $<
emm.o: emm.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO emm.o $<
ecm.o: ecm.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO ecm.o $<
appmon.o: appmon.c \
sys_conf.h \
makefile
$(CC) $(COPTS) -XO appmon.o $<
drv_conf.o: drv_conf.c \
makefile sys_conf.h $(PSS_BSP)/bsp.h
$(CC) $(COPTS) -o drv_conf.o $<
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -