[9] | 1 | |
---|
| 2 | CXX = g++ |
---|
| 3 | CXXFLAGS = -pipe -O3 -w -DGMP_BIGNUM -DCOMPILE_FOR_GUI |
---|
| 4 | INCPATH = -I. -Isrc/shared -I/usr/include |
---|
| 5 | LINK = ar r |
---|
| 6 | LFLAGS = |
---|
| 7 | LIBS = $(SUBLIBS) -L/usr/lib/ -lgmpxx -lgmp |
---|
| 8 | TAR = tar -cf |
---|
| 9 | GZIP = gzip -9f |
---|
| 10 | COPY = cp -f |
---|
| 11 | COPY_FILE= $(COPY) |
---|
| 12 | COPY_DIR = $(COPY) -r |
---|
| 13 | INSTALL_FILE= $(COPY_FILE) |
---|
| 14 | INSTALL_DIR = $(COPY_DIR) |
---|
| 15 | DEL_FILE = rm -f |
---|
| 16 | SYMLINK = ln -sf |
---|
| 17 | DEL_DIR = rmdir |
---|
| 18 | MOVE = mv -f |
---|
| 19 | CHK_DIR_EXISTS= test -d |
---|
| 20 | MKDIR = mkdir -p |
---|
| 21 | |
---|
| 22 | ####### Output directory |
---|
| 23 | |
---|
| 24 | OBJECTS_DIR = ./ |
---|
| 25 | |
---|
| 26 | ####### Files |
---|
| 27 | |
---|
| 28 | HEADERS = src/src_sharpSAT/Basics.h \ |
---|
| 29 | src/shared/SomeTime.h \ |
---|
| 30 | src/shared/RealNumberTypes.h \ |
---|
| 31 | src/shared/Interface/AnalyzerData.h \ |
---|
| 32 | src/src_sharpSAT/MainSolver/DecisionStack.h \ |
---|
| 33 | src/src_sharpSAT/MainSolver/MainSolver.h \ |
---|
| 34 | src/src_sharpSAT/MainSolver/InstanceGraph/InstanceGraph.h \ |
---|
| 35 | src/src_sharpSAT/MainSolver/InstanceGraph/AtomsAndNodes.h \ |
---|
| 36 | src/src_sharpSAT/MainSolver/InstanceGraph/ComponentTypes.h \ |
---|
| 37 | src/src_sharpSAT/MainSolver/FormulaCache.h |
---|
| 38 | SOURCES = src/src_sharpSAT/Basics.cpp \ |
---|
| 39 | src/shared/SomeTime.cpp \ |
---|
| 40 | src/shared/RealNumberTypes.cpp \ |
---|
| 41 | src/shared/Interface/AnalyzerData.cpp \ |
---|
| 42 | src/src_sharpSAT/MainSolver/DecisionStack.cpp \ |
---|
| 43 | src/src_sharpSAT/MainSolver/MainSolver.cpp \ |
---|
| 44 | src/src_sharpSAT/MainSolver/InstanceGraph/InstanceGraph.cpp \ |
---|
| 45 | src/src_sharpSAT/MainSolver/InstanceGraph/AtomsAndNodes.cpp \ |
---|
| 46 | src/src_sharpSAT/main_.cpp \ |
---|
| 47 | src/src_sharpSAT/MainSolver/FormulaCache.cpp |
---|
| 48 | OBJECTS = Basics.o \ |
---|
| 49 | SomeTime.o \ |
---|
| 50 | RealNumberTypes.o \ |
---|
| 51 | AnalyzerData.o \ |
---|
| 52 | DecisionStack.o \ |
---|
| 53 | MainSolver.o \ |
---|
| 54 | InstanceGraph.o \ |
---|
| 55 | AtomsAndNodes.o \ |
---|
| 56 | main_.o \ |
---|
| 57 | FormulaCache.o |
---|
| 58 | TARGET = sharpSAT.a |
---|
| 59 | |
---|
| 60 | first: all |
---|
| 61 | ####### Implicit rules |
---|
| 62 | |
---|
| 63 | .SUFFIXES: .c .o .cpp .cc .cxx .C |
---|
| 64 | |
---|
| 65 | .cpp.o: |
---|
| 66 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< |
---|
| 67 | |
---|
| 68 | .cc.o: |
---|
| 69 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< |
---|
| 70 | |
---|
| 71 | .cxx.o: |
---|
| 72 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< |
---|
| 73 | |
---|
| 74 | .C.o: |
---|
| 75 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< |
---|
| 76 | |
---|
| 77 | .c.o: |
---|
| 78 | $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< |
---|
| 79 | |
---|
| 80 | ####### Build rules |
---|
| 81 | |
---|
| 82 | all: Makefile $(TARGET) |
---|
| 83 | |
---|
| 84 | $(TARGET): $(OBJECTS) |
---|
| 85 | $(LINK) $(LFLAGS) $(TARGET) $(OBJECTS) $(LIBS) |
---|
| 86 | clean: |
---|
| 87 | -$(DEL_FILE) $(OBJECTS) |
---|
| 88 | -$(DEL_FILE) *~ core *.core |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | ####### Sub-libraries |
---|
| 92 | |
---|
| 93 | distclean: clean |
---|
| 94 | -$(DEL_FILE) $(TARGET) $(TARGET) |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | FORCE: |
---|
| 98 | |
---|
| 99 | ####### Compile |
---|
| 100 | |
---|
| 101 | Basics.o: src/src_sharpSAT/Basics.cpp src/src_sharpSAT/Basics.h |
---|
| 102 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o Basics.o src/src_sharpSAT/Basics.cpp |
---|
| 103 | |
---|
| 104 | SomeTime.o: src/shared/SomeTime.cpp src/shared/SomeTime.h |
---|
| 105 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o SomeTime.o src/shared/SomeTime.cpp |
---|
| 106 | |
---|
| 107 | RealNumberTypes.o: src/shared/RealNumberTypes.cpp src/shared/RealNumberTypes.h |
---|
| 108 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o RealNumberTypes.o src/shared/RealNumberTypes.cpp |
---|
| 109 | |
---|
| 110 | AnalyzerData.o: src/shared/Interface/AnalyzerData.cpp src/shared/Interface/AnalyzerData.h |
---|
| 111 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o AnalyzerData.o src/shared/Interface/AnalyzerData.cpp |
---|
| 112 | |
---|
| 113 | DecisionStack.o: src/src_sharpSAT/MainSolver/DecisionStack.cpp src/src_sharpSAT/MainSolver/DecisionStack.h \ |
---|
| 114 | src/src_sharpSAT/Basics.h \ |
---|
| 115 | src/src_sharpSAT/MainSolver/InstanceGraph/ComponentTypes.h \ |
---|
| 116 | src/src_sharpSAT/MainSolver/InstanceGraph/AtomsAndNodes.h \ |
---|
| 117 | src/src_sharpSAT/MainSolver/InstanceGraph/InstanceGraph.h |
---|
| 118 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o DecisionStack.o src/src_sharpSAT/MainSolver/DecisionStack.cpp |
---|
| 119 | |
---|
| 120 | MainSolver.o: src/src_sharpSAT/MainSolver/MainSolver.cpp src/src_sharpSAT/MainSolver/MainSolver.h \ |
---|
| 121 | src/src_sharpSAT/Basics.h \ |
---|
| 122 | src/src_sharpSAT/MainSolver/InstanceGraph/InstanceGraph.h \ |
---|
| 123 | src/src_sharpSAT/MainSolver/FormulaCache.h \ |
---|
| 124 | src/src_sharpSAT/MainSolver/InstanceGraph/AtomsAndNodes.h \ |
---|
| 125 | src/src_sharpSAT/MainSolver/InstanceGraph/ComponentTypes.h \ |
---|
| 126 | src/src_sharpSAT/MainSolver/DecisionStack.h |
---|
| 127 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o MainSolver.o src/src_sharpSAT/MainSolver/MainSolver.cpp |
---|
| 128 | |
---|
| 129 | InstanceGraph.o: src/src_sharpSAT/MainSolver/InstanceGraph/InstanceGraph.cpp src/src_sharpSAT/MainSolver/InstanceGraph/InstanceGraph.h \ |
---|
| 130 | src/src_sharpSAT/Basics.h \ |
---|
| 131 | src/src_sharpSAT/MainSolver/InstanceGraph/AtomsAndNodes.h |
---|
| 132 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o InstanceGraph.o src/src_sharpSAT/MainSolver/InstanceGraph/InstanceGraph.cpp |
---|
| 133 | |
---|
| 134 | AtomsAndNodes.o: src/src_sharpSAT/MainSolver/InstanceGraph/AtomsAndNodes.cpp src/src_sharpSAT/MainSolver/InstanceGraph/AtomsAndNodes.h \ |
---|
| 135 | src/src_sharpSAT/Basics.h |
---|
| 136 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o AtomsAndNodes.o src/src_sharpSAT/MainSolver/InstanceGraph/AtomsAndNodes.cpp |
---|
| 137 | |
---|
| 138 | main_.o: src/src_sharpSAT/main.cpp src/src_sharpSAT/MainSolver/MainSolver.h \ |
---|
| 139 | src/src_sharpSAT/Basics.h \ |
---|
| 140 | src/src_sharpSAT/MainSolver/InstanceGraph/InstanceGraph.h \ |
---|
| 141 | src/src_sharpSAT/MainSolver/FormulaCache.h \ |
---|
| 142 | src/src_sharpSAT/MainSolver/InstanceGraph/AtomsAndNodes.h \ |
---|
| 143 | src/src_sharpSAT/MainSolver/InstanceGraph/ComponentTypes.h \ |
---|
| 144 | src/src_sharpSAT/MainSolver/DecisionStack.h |
---|
| 145 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main_.o src/src_sharpSAT/main_.cpp |
---|
| 146 | |
---|
| 147 | FormulaCache.o: src/src_sharpSAT/MainSolver/FormulaCache.cpp src/src_sharpSAT/MainSolver/FormulaCache.h \ |
---|
| 148 | src/src_sharpSAT/Basics.h \ |
---|
| 149 | src/src_sharpSAT/MainSolver/InstanceGraph/ComponentTypes.h \ |
---|
| 150 | src/src_sharpSAT/MainSolver/DecisionStack.h \ |
---|
| 151 | src/src_sharpSAT/MainSolver/InstanceGraph/AtomsAndNodes.h \ |
---|
| 152 | src/src_sharpSAT/MainSolver/InstanceGraph/InstanceGraph.h |
---|
| 153 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o FormulaCache.o src/src_sharpSAT/MainSolver/FormulaCache.cpp |
---|