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