Makefile 671 B

12345678910111213141516171819202122232425
  1. # CILK_ROOT must contains the GCC/Cilk root directory
  2. OS = $(shell uname)
  3. CPPFLAGS = -DMAX_GENUS=$(MAX_GENUS) #-DNDEBUG
  4. CXXFLAGS = -std=c++11 -g -Wall -O3 # -fsanitize=thread # -Winline
  5. CXX = g++-7
  6. TARGET_ARCH = -march=native -mtune=native
  7. TARGET = wilf_alone
  8. # Pour compiler avec une valeur différente: make MAX_GENUS=35
  9. DEFAULT_MAX_GENUS=40
  10. MAX_GENUS=$(DEFAULT_MAX_GENUS)
  11. all: $(TARGET)
  12. monoid.o: monoid.cpp monoid.hpp
  13. treewalk.o: treewalk.cpp treewalk.hpp monoid.hpp
  14. wilf_alone: treewalk.o monoid.o
  15. $(CXX) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@
  16. clean:
  17. rm -rf $(TARGET) *.o *~ output/* param_* oar_wilf.sh
  18. test: all
  19. ./treewalk