makefile.common

来自「使用广泛的日本著名的开源嵌入式实时操作系统T-Kernel的源码」· COMMON 代码 · 共 78 行

COMMON
78
字号
## ----------------------------------------------------------------------#     T-Kernel##     Copyright (C) 2004-2006 by Ken Sakamura. All rights reserved.#     T-Kernel is distributed under the T-License.# ----------------------------------------------------------------------##     Version:   1.02.02#     Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/9.## ----------------------------------------------------------------------###	Makefile for gmake#	T-Kernel/OS (common description)## source file dependencies (generated automatically)DEPS = DependenciesDEPENDENCIES_OUTPUT := $(DEPS)# ----------------------------------------------------------------------------# target objectTARGET	= tkernel.oS	= ../../src# common source filesSRC	+=	tkstart.c timer.c wait.c task.c klock.c \		task_manage.c task_sync.c \		semaphore.c mutex.c eventflag.c \		mailbox.c messagebuf.c rendezvous.c \		mempool.c mempfix.c time_calls.c misc_calls.c \		subsystem.c objname.c \		tkdev_init.c cpu_calls.c cpu_init.c cpu_support.S \		version.cVPATH	+= $(S)HEADER	+= $(S)# additional source files (cpu-dependent)VPATH   += ../../../sysdepend/cpu/$(MACHINE)HEADER	+= ../../../sysdepend/cpu/$(MACHINE)# additional source files (device-dependent)VPATH   += ../../../sysdepend/device/$(TETYPE)_$(MACHINE)HEADER	+= ../../../sysdepend/device/$(TETYPE)_$(MACHINE)# header file path (T-Kernel common standard library)HEADER  += ../../../tstdlibOBJ = $(addsuffix .o, $(basename $(SRC)))ASM_SRC = $(filter %.S, $(SRC))ASM_OBJ	= $(addsuffix .o, $(basename $(ASM_SRC)))# compiler optionsCFLAGS += $(CFLAGS_WARNING)# ----------------------------------------------------------------------------.PHONY: all cleanall: $(TARGET)$(TARGET): $(OBJ)	$(LINK_R.o) $^ $(OUTPUT_OPTION)clean:	$(RM) $(OBJ) $(TARGET) $(DEPS)# generate dependencies$(DEPS): ; touch $(DEPS)include $(DEPS)

⌨️ 快捷键说明

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