Makefile 466 B

1234567891011121314151617181920
  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 = ../garside.so
  4. APP = garside
  5. all: $(MOD)
  6. %.o:%.cpp %.hpp
  7. $(CPP) -c $< -o $@
  8. $(MOD): init.cpp stacked_list.o braids.o monoid.o
  9. $(CPP) -shared $(LDFLAGS) $^ -o $@
  10. $(APP): main.cpp stacked_list.o braids.o monoid.o
  11. $(CPP) $(LDFLAGS) $^ -o $@
  12. clean:
  13. -$(RM) *~
  14. -$(RM) *.o
  15. -$(RM) $(MOD)