📄 gnu_compile_and_link.make
字号:
# file: $isip/util/misc/make/compile_and_link.make# this makefile contains a standard set of dependencies and targets# that are used by all makefiles in the environment.##------------------------------------------------------------------------------## define variables section##------------------------------------------------------------------------------# create filenames#SRCS = $(wildcard $(ISIP_FILES))OBJS = $(subst .cc,.o,$(SRCS))# define flags for the C++ and C compilers#I_FLAGS = $(ISIP_IFLAGS) $(ISIP_INCLUDE)CPLUS_FLAGS = -Wall $(ISIP_CFLAGS) -cC_FLAGS =LD_FLAGS = $(ISIP_CFLAGS)# define dependencies#ALL_DEPS = $(ISIP_DEPS)# define libraries#ALL_LIBS = $(ISIP_LFLAGS_BEFORE) -L$(ISIP)/lib $(ISIP_LIBS) $(ISIP_LFLAGS_AFTER)# define suffixes#.SUFFIXES: .cc# make sure we clean up# note: this code is executed ALL the time#.DONE:# make everything silent##.SILENT:#------------------------------------------------------------------------------## define targets and dependencies##------------------------------------------------------------------------------# define executable dependencies#$(ISIP_EXE): $(OBJS) echo "> linking $(ISIP_EXE)" gcc $(LD_FLAGS) -o $(ISIP_EXE) $(OBJS) $(ALL_LIBS)# include file dependencies (define only the significant relationships)#$(OBJS): $(ALL_DEPS)# define source file dependencies#.cc.o: echo "> compiling " $< "with flags" $(ISIP_CFLAGS) gcc $(I_FLAGS) $(CPLUS_FLAGS) $(C_FLAGS) $<# clean up#clean: echo "> removing binaries" $(ISIP_EXE) rm $(ISIP_EXE) echo "> removing" $(OBJS) rm $(OBJS)# check existence#check: $(SRCS)## end of file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -