Makefile 381 B

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