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)