Makefile 333 B

12345678910111213
  1. EXE = test
  2. CPP = g++
  3. CFLAGS = --std=c++11 -fcilkplus -mavx2 -mfma -g -O3 -DNDEBUG
  4. LIBS = -lcilkrts
  5. %.o:%.cpp %.hpp config.hpp
  6. $(CPP) $(CFLAGS) -c $< -o $@
  7. $(EXE): results.o avx_matrix.o polygon_step.o polygon_generator.o polygon.o rationnal.o coeffs.o main.cpp
  8. $(CPP) $(CFLAGS) $^ -o $@ $(LIBS)
  9. clean:
  10. -$(RM) *.o $(EXE) *~