Dribble/cpp/a_star/Makefile

15 lines
292 B
Makefile
Raw Normal View History

2024-05-06 19:33:33 +08:00
src = $(wildcard *.cpp)
obj = $(src:.c=.o)
CFLAGS = -O3 -shared -std=c++11 -fPIC -Wall $(PYBIND_INCLUDES)
all: $(obj)
g++ $(CFLAGS) -o a_star.so $^
debug: $(filter-out lib_main.cpp,$(obj))
g++ -O0 -std=c++14 -Wall -g -o debug.bin debug_main.cc $^
.PHONY: clean
clean:
rm -f $(obj) all