📄 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# libtcstr - TRON code library (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)HEADER := $(S) $(HEADER_TKSE) $(HEADER)# ----------------------------------------------------------------------------# target fileTARGET_BASE = libtcstrTARGET.a = $(TARGET_BASE).aTARGET.so = $(TARGET_BASE).so.$(LIB_VERSION)# source filesSRC += _asctotc.c _hzkana.c \ eucstotcs.c euctotc.c tc_atoi.c tc_strcat.c tc_strchr.c \ tc_strcmp.c tc_strcpy.c tc_strlen.c tc_strncat.c \ tc_strncmp.c tc_strncpy.c tc_strrchr.c tc_strset.c \ tc_strtol.c tcstoeucs.c tctoeuc.c \ istlang.c istlangce.c istlangch.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 + -