📄 makefile
字号:
include ../../../build-unix/Makefile.configOBJ_NAME = ext2gp2extINCDIR = -I../../../common/include/models -I../../includeSRCDIR = ../src CFLAGS = $(FLAGS) $(INCDIR).PHONY: clean all check run announceall: announce $(OBJ_NAME).exeannounce: @if ( test ! -d $(FLAG_BATCH) ); \ then echo; echo "$(OBJ_NAME):"; echo; \ fi check: announce $(OBJ_NAME).exe @$(VALGRIND) ./$(OBJ_NAME).exe > run.log @cat run.log | grep -v "stopped by user" | awk '{if($$0!="") print $$0}' > run_trimmed.log @cat ../results/expected.log | grep -v "stopped by user" | awk '{if($$0!="") print $$0}' > ./expected_trimmed.log @diff ./run_trimmed.log ./expected_trimmed.log > diff.log 2>&1;\ if [ -s diff.log ]; then echo "***ERROR:"; cat diff.log; else echo "OK"; firun: announce $(OBJ_NAME).exe @./$(OBJ_NAME).exe$(OBJ_NAME).exe: $(OBJ_NAME).o $(LD) -o $@ $(OBJ_NAME).o $(LDFLAGS)$(OBJ_NAME).o: $(SRCDIR)/$(OBJ_NAME).cpp $(GXX) -c $(CFLAGS) $< -o $@clean: rm -f *.o *.log $(OBJ_NAME).exe# DO NOT DELETE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -