📄 makefile.common
字号:
## ----------------------------------------------------------------------# T-Kernel## Copyright (C) 2004 by Ken Sakamura. All rights reserved.# T-Kernel is distributed under the T-License.# ----------------------------------------------------------------------## Version: 1.01.00# Released by T-Engine Forum(http://www.t-engine.org) at 2004/6/28.## ----------------------------------------------------------------------### Makefile for gmake# libtk - T-Kernel library (common description)## source file dependencies (generated automatically)DEPS = DependenciesDEPENDENCIES_OUTPUT := $(DEPS)# ----------------------------------------------------------------------------# target fileTARGET = libtk.a# source file pathS = ../../srcVPATH = $(S) $(S)/sysdepend/$(TETYPE)_$(MACHINE)HEADER += $(S) $(S)/sysdepend/$(TETYPE)_$(MACHINE)# source filesSRC += libinit.c knlinit.c _commarea.c liblock.c \ fastlock.c fastmlock.c \ chkspc.c chkspc2.c chkspc3.c \ bchkspc.c bchkspc2.c bchkspc3.c \ memalloc.c memcheck.c tkminit.c malloc.c \ kmalloc.c kmcheck.c vmalloc.c vmcheck.c smalloc.c smcheck.c \ dbgmode.c fsrcvmode.c getdembf.c \ prreg.c _exit.cOBJ = $(addsuffix .o, $(basename $(notdir $(SRC))))# compiler optionsCFLAGS += $(CFLAGS_WARNING)# ----------------------------------------------------------------------------.PHONY: all clean installALL = $(TARGET)all: $(ALL)$(TARGET): $(OBJ) $(AR) $(ARFLAGS) $@ $? ifdef RANLIB $(RANLIB) $@ endifinstall: $(TARGET:%=$(LIB_INSTALLDIR)/%)clean: $(RM) $(OBJ) $(ALL) $(DEPS)# generate dependenciesifdef DEPENDENCIES_OUTPUT $(DEPS): ; touch $(DEPS)else $(DEPS): $(SRC) ; $(MAKEDEPS) $@ $?endifinclude $(DEPS)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -