📄 makefile.common
字号:
## ----------------------------------------------------------------------# T-Kernel / Standard Extension## Copyright (C) 2006 by Ken Sakamura. All rights reserved.# T-Kernel / Standard Extension is distributed # under the T-License for T-Kernel / Standard Extension.# ----------------------------------------------------------------------## Version: 1.00.00# Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11.## ----------------------------------------------------------------------### Makefile for gmake# libtkse - T-Kernel startup routine (common description)## library versionLIB_VERSION = 2# source file dependencies (generated automatically)DEPS = DependenciesDEPENDENCIES_OUTPUT := $(DEPS)# ----------------------------------------------------------------------------# source file pathS = ../../srcHEADER_TKSE = $(BD)/tkse/include $(BD)/include/tkseVPATH = $(S) $(S)/share $(S)/sysdepend/$(MACHINE)HEADER := $(S) $(S)/sysdepend/$(MACHINE) \ $(HEADER_TKSE) $(HEADER)# ----------------------------------------------------------------------------# target fileTARGET_BASE = libtkseTARGET.a = $(TARGET_BASE).aTARGET.so = $(TARGET_BASE).so.$(LIB_VERSION)# source filesSRC += bfastlock.c def_msg.c isusemt.c kmalloc.c \ kmcheck.c knldbg.c libinit.c liblock.c \ malloc.c mcheck.c memalloc.c memcheck.c \ meminit.c smalloc.c smcheck.c vmalloc.c vmcheck.c \ MAIN.c exit.c _exit.c atexit.c atexitent.c \ atdelctx.c delctx.c fifolock.c gthreads.c isusemt.c \ libctx.c memalloc.c memcheck.c rawcons.c# object filesOBJ = $(addsuffix .o, $(basename $(notdir $(SRC))))# compiler optionsCFLAGS += $(CFLAGS_WARNING)# ----------------------------------------------------------------------------.PHONY: all clean installifeq ($(LIBTYPE), so) EXE_INST = $(TARGET.so) $(TARGET.so).map ALL = $(EXE_INST) $(TARGET.a)else ALL = $(TARGET.a)endifall: $(ALL)$(TARGET.a): $(OBJ) $(AR) $(ARFLAGS) $@ $? ifdef RANLIB $(RANLIB) $@ endif$(TARGET.so): $(OBJ) $(LINK.o) $(LDOBJS) $^ $(LOADLIBES) $(LDLIBS) $(OUTPUT_OPTION)install: $(addprefix $(LIB_INSTALLDIR)/, $(ALL))ifeq ($(LIBTYPE), so)install: $(addprefix $(EXE_INSTALLDIR)/, $(EXE_INST))endifclean: $(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 + -