Makefile 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. all: prac
  2. CXXFLAGS=-march=native -std=c++17 -Wall -Wno-ignored-attributes -ggdb -O3
  3. LDFLAGS=-ggdb
  4. LDLIBS=-lbsd -lboost_system -lboost_context -lboost_chrono -lboost_thread -lpthread
  5. # Enable this to have all communication logged to stdout
  6. # CXXFLAGS += -DVERBOSE_COMMS
  7. BIN=prac
  8. SRCS=prac.cpp mpcio.cpp preproc.cpp online.cpp mpcops.cpp rdpf.cpp \
  9. cdpf.cpp duoram.cpp cell.cpp bst.cpp avl.cpp heap.cpp
  10. OBJS=$(SRCS:.cpp=.o)
  11. ASMS=$(SRCS:.cpp=.s)
  12. $(BIN): $(OBJS)
  13. g++ $(LDFLAGS) -o $@ $^ $(LDLIBS)
  14. %.s: %.cpp
  15. g++ $(CXXFLAGS) -S -o $@ $^
  16. # Remove the files created by the preprocessing phase
  17. reset:
  18. -rm -f *.p[012].t*
  19. clean: reset
  20. -rm -f $(BIN) $(OBJS) $(ASMS)
  21. depend:
  22. makedepend -Y -- $(CXXFLAGS) -- $(SRCS)
  23. # DO NOT DELETE THIS LINE -- make depend depends on it.
  24. prac.o: mpcio.hpp types.hpp bitutils.hpp corotypes.hpp mpcio.tcc preproc.hpp
  25. prac.o: options.hpp online.hpp
  26. mpcio.o: mpcio.hpp types.hpp bitutils.hpp corotypes.hpp mpcio.tcc rdpf.hpp
  27. mpcio.o: coroutine.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc mpcops.hpp mpcops.tcc
  28. mpcio.o: cdpf.hpp cdpf.tcc
  29. preproc.o: types.hpp bitutils.hpp coroutine.hpp corotypes.hpp mpcio.hpp
  30. preproc.o: mpcio.tcc preproc.hpp options.hpp rdpf.hpp dpf.hpp prg.hpp aes.hpp
  31. preproc.o: rdpf.tcc mpcops.hpp mpcops.tcc cdpf.hpp cdpf.tcc
  32. online.o: online.hpp mpcio.hpp types.hpp bitutils.hpp corotypes.hpp mpcio.tcc
  33. online.o: options.hpp mpcops.hpp coroutine.hpp mpcops.tcc rdpf.hpp dpf.hpp
  34. online.o: prg.hpp aes.hpp rdpf.tcc duoram.hpp duoram.tcc cdpf.hpp cdpf.tcc
  35. online.o: cell.hpp heap.hpp shapes.hpp shapes.tcc bst.hpp avl.hpp
  36. mpcops.o: mpcops.hpp types.hpp bitutils.hpp mpcio.hpp corotypes.hpp mpcio.tcc
  37. mpcops.o: coroutine.hpp mpcops.tcc
  38. rdpf.o: rdpf.hpp mpcio.hpp types.hpp bitutils.hpp corotypes.hpp mpcio.tcc
  39. rdpf.o: coroutine.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc mpcops.hpp mpcops.tcc
  40. cdpf.o: bitutils.hpp cdpf.hpp mpcio.hpp types.hpp corotypes.hpp mpcio.tcc
  41. cdpf.o: coroutine.hpp dpf.hpp prg.hpp aes.hpp cdpf.tcc
  42. duoram.o: duoram.hpp types.hpp bitutils.hpp mpcio.hpp corotypes.hpp mpcio.tcc
  43. duoram.o: coroutine.hpp rdpf.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc mpcops.hpp
  44. duoram.o: mpcops.tcc duoram.tcc cdpf.hpp cdpf.tcc shapes.hpp shapes.tcc
  45. cell.o: types.hpp bitutils.hpp duoram.hpp mpcio.hpp corotypes.hpp mpcio.tcc
  46. cell.o: coroutine.hpp rdpf.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc mpcops.hpp
  47. cell.o: mpcops.tcc duoram.tcc cdpf.hpp cdpf.tcc cell.hpp options.hpp
  48. bst.o: bst.hpp types.hpp bitutils.hpp duoram.hpp mpcio.hpp corotypes.hpp
  49. bst.o: mpcio.tcc coroutine.hpp rdpf.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc
  50. bst.o: mpcops.hpp mpcops.tcc duoram.tcc cdpf.hpp cdpf.tcc options.hpp
  51. avl.o: avl.hpp types.hpp bitutils.hpp duoram.hpp mpcio.hpp corotypes.hpp
  52. avl.o: mpcio.tcc coroutine.hpp rdpf.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc
  53. avl.o: mpcops.hpp mpcops.tcc duoram.tcc cdpf.hpp cdpf.tcc options.hpp bst.hpp
  54. heap.o: types.hpp bitutils.hpp duoram.hpp mpcio.hpp corotypes.hpp mpcio.tcc
  55. heap.o: coroutine.hpp rdpf.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc mpcops.hpp
  56. heap.o: mpcops.tcc duoram.tcc cdpf.hpp cdpf.tcc cell.hpp options.hpp
  57. heap.o: shapes.hpp shapes.tcc heap.hpp