cloud-sat/makefile
2022-12-04 23:30:36 +08:00

19 lines
437 B
Makefile

SRCS = $(shell find . -name "*.cpp")
OBJS = $(addsuffix .o, $(basename $(SRCS)))
EXEC = light
LIBS = -lkissat -Lsolvers/kissat-inc/build/ \
-lpthread -pthread -lz -lm -lboost_thread -lboost_date_time -lboost_system -static
CXXFLAGS = -Isolvers/kissat-inc -std=c++11 -O3
$(EXEC): $(OBJS)
$(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS)
%.o: %.cpp
$(CXX) -c $< -o $@ $(CXXFLAGS) $(LIBS)
clean:
rm -f $(OBJS) $(EXEC)