📄 subdir.mk
字号:
# Include makefile for building a sub directory# Expects: # SRCS - list of source files# SUBDIR - Path to directory with source files# BINDIR - Path to output directory# CPPBUILD - Build command for C++ files# SDFLAGS - Local flags (for this directory) for compiling# Flatten path in output bin dirSDFN := $(subst /,_,$(SUBDIR))SDFN := $(subst .,-,$(SDFN))LOBJS = $(addprefix $(BINDIR)/$(SDFN)_, $(SRCS:.cpp=.o))OBJS += $(LOBJS) $(LCOBJS)# Build cpp files-include $(addsuffix .d,$(LOBJS))$(BINDIR)/$(SDFN)_%.o: tspec:=$(SDFLAGS) $(BINDIR)/$(SDFN)_%.o: $(SUBDIR)/%.cpp $(CPP) $(CPPFLAGS) $(tspec) $(DEFS) $(INCZPCH) $(wxCPPFLAGS) -MT$@ -MF$@.d -MD -c $< -o $@ echo -# Reset local compile flags after using itSDFLAGS = SRCS=# Addition for DynObj header processingPDO_HDRS:= $(addprefix $(SUBDIR)/, $(DO_HDRS))PDO_SRCS:= $(addprefix $(SUBDIR)/, $(DO_SRCS))DO_HDRS:=DO_SRCS:=DO_ACC_SRCS+= $(PDO_SRCS)DO_ACC_HDRS+= $(PDO_HDRS)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -