Makefile 619 B

1234567891011121314151617181920212223
  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++
  6. TARGET_ARCH = -march=corei7 -mtune=corei7
  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 *~