Makefile 554 B

12345678910111213141516171819202122
  1. CPP = g++ -fmax-errors=10
  2. INCDIR = -I/usr/local/opt/readline/include -I/usr/local/include/
  3. LIBDIR = -L/usr/local/opt/readline/lib -L/usr/local/lib/
  4. CPPFLAG = -g --std=c++11 -O3 $(INCDIR)
  5. LDFLAG = -rdynamic -lgmpxx -lgmp -lflint -lreadline -ldl $(LIBDIR)
  6. EXE = gomu
  7. all: $(EXE)
  8. doc: array.hpp dictionnary.hpp interpreter.hpp kernel.hpp module.hpp
  9. doxygen doc/Doxyfile
  10. %.o:%.cpp %.hpp
  11. $(CPP) $(CPPFLAG) -o $@ -c $<
  12. $(EXE) : module.o kernel.o interpreter.o main.cpp
  13. $(CPP) $(CPPFLAG) $(LDFLAG) $^ -o $(EXE)
  14. clean:
  15. -$(RM) *.o
  16. -$(RM) $(EXE)