.PHONY: clean
clean:
- rm -rf *.o *~ bbtest asttest cnftest *.a ASTKind.h ASTKind.cpp .#*
+ rm -rf *.o *~ bbtest asttest cnftest *.a ASTKind.h ASTKind.cpp .#* depend
rm -rf printer/*.o
depend: $(SRCS)
- $(CXX) -MM $(CXXFLAGS) $(SRCS) > $@
+ @$(CXX) -MM $(CXXFLAGS) $(SRCS) > $@
-include depend
-#include "AST.h"
+#include "../AST.h"
using namespace BEEV;
include ../../scripts/Makefile.common
-SRCS = AbstractionRefinement.cpp
+SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)
-CFLAGS += -I../sat/mtl -I../sat/simp -I../sat/core
-libabstractionrefinement.a: $(OBJS)
- $(AR) rc $@ $^
+libabstractionrefinement.a: $(OBJS) depend
+ $(AR) rc $@ $(OBJS)
$(RANLIB) $@
clean:
- rm -rf *.o *~ *.a .#*
+ rm -rf *.o *~ *.a .#* depend
+
+depend: $(SRCS)
+ @$(CXX) -MM $(CXXFLAGS) $(SRCS) > $@
+
+-include depend
+
\ No newline at end of file
include ../../scripts/Makefile.common
-SRCS = consteval.cpp
+SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)
-CFLAGS += -I../sat/mtl -I../sat/core -I../sat/simp
-libconsteval.a: $(OBJS)
- $(AR) rc $@ $^
+libconsteval.a: $(OBJS) depend
+ $(AR) rc $@ $(OBJS)
$(RANLIB) $@
+.PHONY: clean
clean:
- rm -rf *.o *~ *.a .#*
+ rm -rf *.o *~ *.a .#* depend
+
+depend: $(SRCS)
+ @$(CXX) -MM $(CXXFLAGS) $(SRCS) > $@
+
+-include depend
+
\ No newline at end of file
include ../../scripts/Makefile.common
-SRCS = c_interface.cpp
+SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)
-CFLAGS += -I../sat/mtl -I../sat/core
-libcinterface.a: $(OBJS)
- $(AR) rc $@ $^
+libcinterface.a: $(OBJS) depend
+ $(AR) rc $@ $(OBJS)
$(RANLIB) $@
+.PHONY: clean
clean:
- rm -rf *.o *~ *.a .#*
+ rm -rf *.o *~ *.a .#* depend
+
+depend: $(SRCS)
+ @$(CXX) -MM $(CXXFLAGS) $(SRCS) > $@
+
+-include depend
-c_interface.o: c_interface.h
include ../../scripts/Makefile.common
-SRCS = constantbv.cpp
+SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)
-libconstantbv.a: $(OBJS)
- $(AR) rc $@ $^
+libconstantbv.a: $(OBJS) depend
+ $(AR) rc $@ $(OBJS)
$(RANLIB) $@
+.PHONY: clean
clean:
- rm -rf *.o *~ *.a .#*
+ rm -rf *.o *~ *.a .#* depend
-constantbv.o: constantbv.h
+depend: $(SRCS)
+ @$(CXX) -MM $(CXXFLAGS) $(SRCS) > $@
+
+-include depend
include ../../scripts/Makefile.common
-SRCS = Globals.cpp main.cpp
+SRCS=$(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)
LIBS = -L../to-sat -ltosat -L../AST -last -L../abstraction-refinement -labstractionrefinement \
-L../sat -lminisat \
-L../bitvec -lconsteval \
-L../constantbv -lconstantbv \
-L../parser -lparser
-CFLAGS += -I../sat/mtl -I../sat/core -I../sat/simp -I../sat/unsound
-parser: Globals.o main.o
- $(CXX) $(CFLAGS) $(LDFLAGS) Globals.o main.o $(LIBS) -o stp
+#This rebuilds each time, because the target "parser" is not created
+#Until the dependencies on each of the libraries is included, that's safest.
+parser: $(OBJS) depend
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o stp
@mv stp ../../bin/stp
+.PHONY: clean
clean:
- rm -rf *.o *~ *.a .#*
+ rm -rf *.o *~ *.a .#* depend
+
+depend: $(SRCS)
+ @$(CXX) -MM $(CXXFLAGS) $(SRCS) > $@
+
+-include depend
********************************************************************/
// -*- c++ -*-
#include "../AST/AST.h"
-#include "../sat/core/Solver.h"
-#include "../sat/core/SolverTypes.h"
#include "../AST/printer/AssortedPrinters.h"
#ifdef EXT_HASH_MAP
include ../../scripts/Makefile.common
-SRCS = simplifier.cpp bvsolver.cpp
+SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)
CFLAGS += -I../sat/mtl -I../sat/simp -I../sat/core
-libsimplifier.a: $(OBJS)
- $(AR) rc $@ $^
+libsimplifier.a: $(OBJS) depend
+ $(AR) rc $@ $(OBJS)
$(RANLIB) $@
+.PHONY: clean
clean:
- rm -rf *.o *~ *.a .#*
+ rm -rf *.o *~ *.a .#* depend
+
+depend: $(SRCS)
+ @$(CXX) -MM $(CXXFLAGS) $(SRCS) > $@
+
+-include depend
+
include ../../scripts/Makefile.common
-SRCS = BitBlast.cpp SimpBool.cpp ToCNF.cpp ToSAT.cpp
+SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)
CFLAGS += -I../sat/mtl -I../sat/simp -I../sat/core
-libtosat.a: $(OBJS)
- $(AR) rc $@ $^
+libtosat.a: $(OBJS) depend
+ $(AR) rc $@ $(OBJS)
$(RANLIB) $@
+.PHONY: clean
clean:
- rm -rf *.o *~ *.a .#*
+ rm -rf *.o *~ *.a .#* depend
+
+depend: $(SRCS)
+ @$(CXX) -MM $(CXXFLAGS) $(SRCS) > $@
+
+-include depend
+
\ No newline at end of file