Makefile 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. heapsampler.cpp
  11. OBJS=$(SRCS:.cpp=.o)
  12. ASMS=$(SRCS:.cpp=.s)
  13. $(BIN): $(OBJS)
  14. g++ $(LDFLAGS) -o $@ $^ $(LDLIBS)
  15. %.s: %.cpp
  16. g++ $(CXXFLAGS) -S -o $@ $^
  17. # Remove the files created by the preprocessing phase
  18. reset:
  19. -rm -f *.p[012].t*
  20. clean: reset
  21. -rm -f $(BIN) $(OBJS) $(ASMS)
  22. depend:
  23. makedepend -Y -- $(CXXFLAGS) -- $(SRCS)
  24. # DO NOT DELETE THIS LINE -- make depend depends on it.
  25. prac.o: mpcio.hpp types.hpp bitutils.hpp corotypes.hpp mpcio.tcc preproc.hpp
  26. prac.o: options.hpp online.hpp
  27. mpcio.o: mpcio.hpp types.hpp bitutils.hpp corotypes.hpp mpcio.tcc rdpf.hpp
  28. mpcio.o: coroutine.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc mpcops.hpp mpcops.tcc
  29. mpcio.o: cdpf.hpp cdpf.tcc
  30. preproc.o: types.hpp bitutils.hpp coroutine.hpp corotypes.hpp mpcio.hpp
  31. preproc.o: mpcio.tcc preproc.hpp options.hpp rdpf.hpp dpf.hpp prg.hpp aes.hpp
  32. preproc.o: rdpf.tcc mpcops.hpp mpcops.tcc cdpf.hpp cdpf.tcc
  33. online.o: online.hpp mpcio.hpp types.hpp bitutils.hpp corotypes.hpp mpcio.tcc
  34. online.o: options.hpp mpcops.hpp coroutine.hpp mpcops.tcc rdpf.hpp dpf.hpp
  35. online.o: prg.hpp aes.hpp rdpf.tcc duoram.hpp duoram.tcc cdpf.hpp cdpf.tcc
  36. online.o: cell.hpp heap.hpp shapes.hpp shapes.tcc bst.hpp avl.hpp
  37. online.o: heapsampler.hpp
  38. mpcops.o: mpcops.hpp types.hpp bitutils.hpp mpcio.hpp corotypes.hpp mpcio.tcc
  39. mpcops.o: coroutine.hpp mpcops.tcc
  40. rdpf.o: rdpf.hpp mpcio.hpp types.hpp bitutils.hpp corotypes.hpp mpcio.tcc
  41. rdpf.o: coroutine.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc mpcops.hpp mpcops.tcc
  42. cdpf.o: bitutils.hpp cdpf.hpp mpcio.hpp types.hpp corotypes.hpp mpcio.tcc
  43. cdpf.o: coroutine.hpp dpf.hpp prg.hpp aes.hpp cdpf.tcc
  44. duoram.o: duoram.hpp types.hpp bitutils.hpp mpcio.hpp corotypes.hpp mpcio.tcc
  45. duoram.o: coroutine.hpp rdpf.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc mpcops.hpp
  46. duoram.o: mpcops.tcc duoram.tcc cdpf.hpp cdpf.tcc shapes.hpp shapes.tcc
  47. cell.o: types.hpp bitutils.hpp duoram.hpp mpcio.hpp corotypes.hpp mpcio.tcc
  48. cell.o: coroutine.hpp rdpf.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc mpcops.hpp
  49. cell.o: mpcops.tcc duoram.tcc cdpf.hpp cdpf.tcc cell.hpp options.hpp
  50. bst.o: bst.hpp types.hpp bitutils.hpp duoram.hpp mpcio.hpp corotypes.hpp
  51. bst.o: mpcio.tcc coroutine.hpp rdpf.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc
  52. bst.o: mpcops.hpp mpcops.tcc duoram.tcc cdpf.hpp cdpf.tcc options.hpp
  53. avl.o: avl.hpp types.hpp bitutils.hpp duoram.hpp mpcio.hpp corotypes.hpp
  54. avl.o: mpcio.tcc coroutine.hpp rdpf.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc
  55. avl.o: mpcops.hpp mpcops.tcc duoram.tcc cdpf.hpp cdpf.tcc options.hpp bst.hpp
  56. heap.o: types.hpp bitutils.hpp duoram.hpp mpcio.hpp corotypes.hpp mpcio.tcc
  57. heap.o: coroutine.hpp rdpf.hpp dpf.hpp prg.hpp aes.hpp rdpf.tcc mpcops.hpp
  58. heap.o: mpcops.tcc duoram.tcc cdpf.hpp cdpf.tcc cell.hpp options.hpp
  59. heap.o: shapes.hpp shapes.tcc heap.hpp
  60. heapsampler.o: heapsampler.hpp mpcio.hpp types.hpp bitutils.hpp corotypes.hpp
  61. heapsampler.o: mpcio.tcc coroutine.hpp heap.hpp options.hpp mpcops.hpp
  62. heapsampler.o: mpcops.tcc duoram.hpp rdpf.hpp dpf.hpp prg.hpp aes.hpp
  63. heapsampler.o: rdpf.tcc duoram.tcc cdpf.hpp cdpf.tcc