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