📄 makefile
字号:
include ../../build-unix/Makefile.configOBJ_NAME = test_endian_convINCDIR =SRCDIR = ../srcCFLAGS = $(FLAGS) $(INCDIR).PHONY: clean all run check announceall: announce $(OBJ_NAME).exeannounce: @if ( test ! -d $(FLAG_BATCH) ); \ then echo; echo "$(OBJ_NAME):"; echo; \ ficheck: announce $(OBJ_NAME).exe @$(VALGRIND) ./$(OBJ_NAME).exe < ../results/input.txt > 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 < ../results/input.txtvalidate: announce $(OBJ_NAME).exe @-python ../src/testall.py 2> val.log @if [ -s val.log ]; then echo "***ERROR:"; cat val.log; else echo "OK"; fi$(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 + -