19 lines
380 B
Makefile
19 lines
380 B
Makefile
SRCS = $(shell find . -name "*.cpp")
|
|
|
|
OBJS = $(addsuffix .o, $(basename $(SRCS)))
|
|
|
|
EXEC = light
|
|
|
|
LIBS = -lkissat -Lsolvers/kissat-inc/build/ \
|
|
-lpthread -lz -lm -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)
|