Makefile 512 B

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