makefile
来自「一个类STL的多平台可移植的算法容器库,主要用于嵌入式系统编程时的内存管理等方面」· 代码 · 共 32 行
TXT
32 行
CC = gccBIN = gccycRM = rm -fCFLAGS = -Wall -gSOURCE = test_yc.c test_yc_dblnklst.c test_yc_dymemarr.c test_yc_dyrscarr.c \ test_yc_hashtable.c test_yc_sglnklst.c test_yc_string.c test_yc_tree.c \ test_yc_chkarray.cOBJ = test_yc.o test_yc_dblnklst.o test_yc_dymemarr.o test_yc_dyrscarr.o \ test_yc_hashtable.o test_yc_sglnklst.o test_yc_string.o test_yc_tree.o \ test_yc_chkarray.oYLIBSTATIC = ../../library/libyoungc.a.PHONY : clean mkylib clylib$(BIN) : $(YLIBSTATIC) $(OBJ) $(CC) $(OBJ) $(YLIBSTATIC) -o $(BIN) && $(RM) $(OBJ)mkylib : cd ../../young/youngc && make staticclylib : cd ../../young/youngc && make cleanclean : $(RM) $(BIN) $(OBJ)%.d: %.c @set -e; rm -f $@; \ $(CC) -M $(CFLAGS) $< > $@.$$$$; \ sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ rm -f $@.$$$$
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?