⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 TM1300/PNX1300系列DSP(主要用于视频处理)操作系统pSOS系统的几个demo
💻
字号:
##   Makefile for TriMedia pSOS components#   Copyright (c) 1996,2000 TriMedia Technologies Inc.##   Module name              : Makefile    1.64##   Last update              : 13:49:39 - 00/06/19##   This is a makefile skeleton for a pSOS application which allows#   the use of dynamic linking, and pSOS components, pNA and PPP.#   This makefile is designed to be used in the Unix environment.#   See its usage in $(TCS)/examples/psos/psos_demo1 as an example.#   Care was taken to make it portable for use with Microsoft nmake.##   Note on using this with Microsoft's nmake:#   Because this makefile includes $(PSOS_SYSTEM)/include/Makefile.inc,#   which contains nested macros, it cannot be ported to be used with#   nmake.  To use nmake, start with #   $(TCS)/examples/psos/psos_demo1/Makefile.simple and follow the#   directions to use nmake.##   Note on using $(PSOS_SYSTEM)/include/Makefile.inc on your own:#   (See below for examples)#   1) The macros HOST, ENDIAN, PSOS, DYNAMIC, and PNA must be set#   2) Define OBJECTS with your own object files like this:#      $(OBJDIR)/<file>.o#   3) Put $(PSOS_CHECK), $(OBJECTS), .$(PSOS_CONFIG), and .$(OBJDIR) #      as dependencies for your application#   4) Link $(PSOS_LINK) and $(PSOS_CONFIG)/bsp.a together with#      $(OBJECTS) to compile the application##   Note: Makefile.inc sets the following macros#	  CC = $(TCS)/bin/tmcc -host $(HOST) -$(ENDIAN) \#		$($(PSOS)_PSOS_SWITCH) $($(PNA)_PNA_SWITCH)#         LD = $(TCS)/bin/tmld#         AR = $(TCS)/bin/tmar#   To add options to CC, LD, or AR, add them to CFLAGS, LDFLAGS,#   or AFLAGS respectively#TCS         = /usr/local/tcsPSOS_SYSTEM = $(TCS)/OS/pSOS/pSOSystem##################################################################### Compilation- and link flags####################################################################CINCS       = -I. -I$(PSOS_SYSTEM)/include CFLAGS      =LDFLAGS     = ##################################################################### Desired name of application, plus objects to link####################################################################APPLICATION = a.outOBJECTS     = $(OBJDIR)/root.o target: $(APPLICATION)##################################################################### Selected application configuration#####################################################################-------------------------------------------# Generate pSOS application for#  Win95  --> Windows 95 hosted system#  WinNT  --> Windows NT hosted system#  MacOS  --> Mac hosted system#  tmsim  --> tmsim simulation only#  nohost --> Any of the above, or for#             standalone execution.#             'nohost' does not link in#             any communication library,#             and therefore is much smallerHOST  = Win95#HOST = WinNT#HOST = MacOS#HOST = tmsim#HOST = nohost#-------------------------------------------# Endianness of generated executable:#   el --> compile and link for little endian#   eb --> compile and link for big endian ENDIAN  = el#ENDIAN = eb#-------------------------------------------# In generated pSOS application:#   psos  --> use single-processor version of pSOS kernel#   psosm --> use multi-processor version of pSOS kernel PSOS  = psos#PSOS = psosm#-------------------------------------------# In generated pSOS application:#   nodynamic --> don't use the dynamic loader#   dynamic --> allow use of dynamic loader DYNAMIC  = nodynamic#DYNAMIC = dynamic#-------------------------------------------# (Sub)component enabling/disabling switches:##PNA   = pnaPNA    = nopna#PPP   = pppPPP    = noppp##################################################################### Include invariant part of this makefile####################################################################include $(PSOS_SYSTEM)/include/Makefile.inc##################################################################### Application building####################################################################$(OBJDIR)/%o: %c	@ echo "Compiling $(*)c"	@ $(CC)  $(PSOS_DEF_FLAGS) $(CFLAGS) $(CINCS) -c $(*)c -o $@$(APPLICATION) : $(PSOS_CHECK) .$(PSOS_CONFIG) .$(OBJDIR) $(OBJECTS) Makefile	@ echo "Linking $(APPLICATION)"	@ $(CC) $(PSOS_DEF_FLAGS) \		$(OBJECTS) $(PSOS_LINK) $(PSOS_CONFIG)/bsp.a \		$(LDFLAGS) $(CFLAGS) -o $(APPLICATION)##################################################################### Cleanup####################################################################clean :; rm -rf *.o *.a *% $(APPLICATION)  \                        .PSOS_CONFIG* PSOS_CONFIG* \                        .OBJDIR*      OBJDIR*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -