diff --git a/atpg b/atpg index a18ba60..528a2ce 100755 Binary files a/atpg and b/atpg differ diff --git a/makefile b/makefile index 047e0f1..c5d6ec5 100644 --- a/makefile +++ b/makefile @@ -5,20 +5,14 @@ SOURCES := $(shell find ./src -type f -name "*.cpp") OBJECTS := $(addprefix build/,$(SOURCES:%=%.o)) # 声明编译器和编译选项 -CC := gcc CXX := g++ -CFLAGS := -O3 -g -Wall -Wextra -MMD -MP -flto CXXFLAGS := -O3 -g -Wall -Wextra -MMD -MP -flto # 默认目标,编译所有目标文件 atpg: $(OBJECTS) $(CXX) $(CXXFLAGS) $^ -o $@ -# 生成目标文件的规则 build/%.o: % | build - $(CC) $(CFLAGS) -c $< -o $@ - -build/%.o: %.cpp | build $(CXX) $(CXXFLAGS) -c $< -o $@ # 包含依赖文件 diff --git a/src/circuit.h b/src/circuit.h index 6d69c4a..76d4de8 100644 --- a/src/circuit.h +++ b/src/circuit.h @@ -5,6 +5,8 @@ #include #include #include +#include +#include using ll = long long;