Makefile 373 B

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