Makefile 696 B

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