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

📄 os.mk

📁 《OSEK/VDX汽车电子嵌入式软件编程技术》中光盘的资料
💻 MK
字号:
#
#	$Copyright    2001 Joseph J. Lemieux  ALL RIGHTS RESERVED. $
#
#	$Filename: C:\OSEKBook\src\CH02\bld\os.mk $
#
#
# Define the location of the OSEK files. These definitions
# are needed to locate the OSEK binary files and Include files.
# This file is included in the Makefile and will define and
# generate all OSEK/VDX files.
#
# CHANGE_ME
#
# This entire file includes definitions that are specific to a given 
# OSEK/VDX Implementation. Each variable defined in this file will have
# to be changed based upon the location of the build directories.
#
# Define root directory
#
OSEK = C:\programs\wind\TornadoOW_PPC_2.0\target\osekworks

# Define location of system include files. These files are
# included in the application modules

OS_INC = $(OSEK)\include

# Define the location of the OSEK object and library files
# that will be included in the build.

OS_SYS = $(OSEK)\sys\ppc

# Define the location of the target board specific files that need
# to be linked into the final code files. These files are 
# typically driver files required by the implementation to
# support the specific hardware.

OS_TGT = $(OSEK)\bsp\ppc\axiomcme555

#
# Include the oil.mk file created by the system generator.
#

include $(BLD)\oil.mk

#
# Define the system include files that may be used by applications.
# This macro helps streamline the definition of dependencies in
# the make file
#

OS_INCS = $(OSEK_INC)\osekworks.h $(OSEK_INC)\osekworkscom.h $(OSEK_INC)\osekworksnm.h

#
# Define OIL file symbols. These symbols point to specific files
# used by the compiler. The OIL_FILE is application specific.
#
OIL_SRC        = $(SRC)\oil.c
OIL_INCS      = $(SRC)\oil.h
OIL_OUT_FILES = $(SRC)\oil.c $(SRC)\oil.h $(SRC)\oil.lk
OIL_FILE      = $(CFG)\cardgame.oil

#
# Define the OSEK OIL file compiler.
#
OIL_GEN = C:\programs\wind\TornadoOW_PPC_2.0\host\x86-win32\bin\oilreader

#
# Remake OIL reader output files as needed.
#
$(BLD)\oil.mk: $(OIL_FILE) $(SRC)/Makefile
	@$(BLANK)
	@echo ==== Processing oil files ====
	@$(BLANK)
	$(OIL_GEN) -t ppc -b axiomcme555 -o $(BLD) $(OIL_FILE)
	@$(BLANK)
	@echo ==== Compiling ====

oil.o: $(BLD)\oil.c $(OIL_INCS) $(SRC)/Makefile
	@$(BLANK)
	@echo -- $*.c --
	$(CC) $(CFLAGS) -w -o $(BUILD_DIR)\oil.o $(BLD)\oil.c > $(LST)\$*.lst


⌨️ 快捷键说明

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