代码拉取完成,页面将自动刷新
export PROJECT_NAME = exprAuto
CC = gcc
CPP = g++
INCLUDE = -Iinclude -I/usr/include/python3.8
# LIBS= -L/usr/lib/python3.8/config-3.8-x86_64-linux-gnu -lpython3.8 # may need -L to assign the Python lobrary path
LIBS = -lm -lpython3.8 -lfmt -lmpfr -lqd
ECHO = printf
# $(info $(CFLAGS) )
override CFLAGS += -g -Wall -Wextra -Wpedantic -Wno-unused-function -fdiagnostics-color=always --std=c++2a
# $(info $(CFLAGS) )
EXPRAUTO_ALL_SRCS_CPP = $(wildcard src/*.cpp)
EXPRAUTO_ALL_SRCS_OBJS = $(addprefix objs/, $(subst /,_,$(EXPRAUTO_ALL_SRCS_CPP:.cpp=.cpp.o)))
default: dirs \
bin/exprAuto.exe
dirs:
@mkdir -p bin objs outputs
.PHONY: dirs
bin/exprAuto.exe: $(EXPRAUTO_ALL_SRCS_OBJS)
@$(ECHO) "\033[1;32mBuilding $@ \n\033[0m"
$(CPP) -o $@ $^ $(LIBS)
objs/src_%.cpp.o: src/%.cpp
@$(ECHO) "\033[1;32mBuilding $@ \n\033[0m"
$(CPP) -o $@ -c $< $(CFLAGS) $(INCLUDE)
objs/src_%.cpp.d: src/%.cpp
# $(info include ruler about $* )
@set -e; rm -f $@; $(CPP) -MM $< $(INCLUDE) > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,objs/src_\1.cpp.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$;
-include $(EXPRAUTO_ALL_SRCS_OBJS:.o=.d)
.PHONY: clean
clean:
rm -f objs/*.d objs/*.o bin/*.exe
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。