- CPP = g++ -g --std=c++11 -march=corei7 -Wno-return-local-addr -fPIC -rdynamic -fmax-errors=1 -I/usr/local/include
- LDFLAGS = #-L/usr/local/lib -lgmpxx -lgmp -lflint
- MOD = ../permutations.so
- all: $(MOD)
- permutations.o: ../permutations/permutations.cpp
- $(CPP) -c $< -o $@
- $(MOD): init.cpp init.hpp permutations.o
- $(CPP) -shared $(LDFLAGS) $^ -o $@
- clean:
- -$(RM) $(MOD) *.o
|