Makefile 292 B

12345678910111213
  1. EXE = test
  2. CPP = g++
  3. CFLAGS = -mavx2 -mfma -g -O3 -DNDEBUG
  4. LIBS =
  5. %.o:%.cpp %.hpp config.hpp
  6. $(CPP) $(CFLAGS) -c $< -o $@
  7. $(EXE): 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) *~