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

📄 makefile

📁 基于psos操作系统的dec21140驱动
💻
字号:
##   Makefile for TriMedia pSOS components#   Copyright (c) 1996,2000 TriMedia Teacnologies Inc.##   Module name              : Makefile    1.61##   Last update              : 06:21:10 - 98/11/02##   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#PSOS_SYSTEM = $(TCS)/OS/pSOS/pSOSystemEXAMPLES    = $(TCS)/examplesFILES       = $(EXAMPLES)/misc/files/files.cECHO_OPTION = @##################################################################### Compilation- and link flags####################################################################CINCS       = -I. -I$(PSOS_SYSTEM)/include CFLAGS      = LDFLAGS     =  ##################################################################### Desired name of application, plus objects to link####################################################################APPLICATION = serial_target.outOBJECTS     = $(OBJDIR)/root.o     \              $(OBJDIR)/dec21140.o \              $(OBJDIR)/pci.o      \              $(SERIAL_DRIVER) 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 smaller# serial  --> For a system that performs#             I/O via serial communication,#             as defined by a user-proveded#             serial communication driver#HOST = Win95#HOST = WinNT#HOST = MacOS#HOST = tmsim#HOST = nohostHOST = serial#-------------------------------------------# 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 = pna#PNA = nopna#PPP   = pppPPP    = noppp##################################################################### Include invariant part of this makefile####################################################################include $(PSOS_SYSTEM)/include/Makefile.inc##################################################################### Application building####################################################################SERIAL_DRIVER           = $(SERIAL_DRIVER_$(DYNAMIC))SERIAL_DRIVER_dynamic   = $(OBJDIR)/SerialRPC.dllSERIAL_DRIVER_nodynamic = $(OBJDIR)/SerialRPC.oSERIAL_EXPORTS=_SerialRPC_write_buffer,_SerialRPC_read_buffer,_SerialRPC_init$(OBJDIR)/SerialRPC.dll : SerialRPC.c	@ echo "Compiling SerialRPC.c"	@ $(CC)  $(PSOS_DEF_FLAGS) $(CFLAGS) $(CINCS) -btype dll SerialRPC.c -o $@ \                    -bexport $(SERIAL_EXPORTS)  $(PSOS_LINK)$(OBJDIR)/%o: %c	@ echo "Compiling $(*)c"	@ $(CC)  $(PSOS_DEF_FLAGS) $(CFLAGS) $(CINCS) -c $(*)c -o $@$(APPLICATION) : $(PSOS_CHECK) .$(PSOS_CONFIG) .$(OBJDIR) $(OBJECTS) 	@ echo "Linking $(APPLICATION)"	@ $(CC) $(PSOS_DEF_FLAGS) \		$(OBJECTS) $(PSOS_LINK) $(PSOS_CONFIG)/bsp.a \		$(LDFLAGS) $(CFLAGS) -o $(APPLICATION) $(FILES)##################################################################### Cleanup####################################################################clean :; rm -rf *.o *.a *.bin *% $(APPLICATION)  \                        .PSOS_CONFIG* PSOS_CONFIG* \                        .OBJDIR*      OBJDIR*

⌨️ 快捷键说明

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