Makefile 336 B

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