Makefile 610 B

1234567891011121314151617181920212223
  1. FLAGS = -std=c++0x -O2 -g -Wall -fmessage-length=0 -Wreorder -Wwrite-strings -Wsign-compare
  2. LIBS = -lpthread
  3. OBJS = GSATHybride.o GSAT/GSAT.o GSAT/ArrayFiller.o GSAT/CFormula.o
  4. TARGET = GSATSolver
  5. all:
  6. g++ $(FLAGS) -c -o GSAT/GSAT.o GSAT/GSAT.cpp
  7. g++ $(FLAGS) -c -o GSAT/ArrayFiller.o GSAT/ArrayFiller.cpp
  8. g++ $(FLAGS) -c -o GSAT/CFormula.o GSAT/CFormula.cpp
  9. mpic++ $(FLAGS) -c -o GSATHybride.o GSATHybride.cpp
  10. mpic++ -o $(TARGET) Main.cpp $(FLAGS) $(OBJS) $(LIBS)
  11. clean:
  12. rm -f $(OBJS) $(TARGET)
  13. rm -rf *.*~
  14. rm -rf *~
  15. run:
  16. @mpirun -n 3 ./GSATSolver -i ../../benchmarks/uf150/uf150-099.cnf -t 2