Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. EXE_W = wilf-worker
  2. EXE_S = wilf-server
  3. EXE_I = wilf-interface
  4. EXE_A = wilf-alone
  5. CPP = g++ -g
  6. CFLAGS = --std=c++11 -march=corei7 -O3 -DNDEBUG
  7. all: $(EXE_S) $(EXE_W) $(EXE_I) $(EXE_A)
  8. dist/message.o:dist/message.cpp dist/message.hpp
  9. $(CPP) $(CFLAGS) -c $< -o $@
  10. dist/client.o:dist/client.cpp dist/client.hpp
  11. $(CPP) $(CFLAGS) -c $< -o $@
  12. dist/server.o:dist/server.cpp dist/server.hpp
  13. $(CPP) $(CFLAGS) -c $< -o $@
  14. dist/interface.o:dist/interface.cpp dist/interface.hpp
  15. $(CPP) $(CFLAGS) -c $< -o $@
  16. dist/worker.o:dist/worker.cpp dist/worker.hpp
  17. $(CPP) $(CFLAGS) -c $< -o $@
  18. src/gtask.o:src/gtask.cpp src/gtask.hpp
  19. $(CPP) $(CFLAGS) -c $< -o $@
  20. src/semigroup.o:src/semigroup.cpp src/semigroup.hpp
  21. $(CPP) $(CFLAGS) -c $< -o $@
  22. src/treewalk.o:src/treewalk.cpp src/treewalk.hpp
  23. $(CPP) $(CFLAGS) -c $< -o $@
  24. $(EXE_W):dist/message.o dist/client.o dist/worker.o src/semigroup.o src/treewalk.o src/main-worker.cpp
  25. $(CPP) $(CFLAGS) $^ -o $@ $(LIBS)
  26. $(EXE_S):dist/message.o dist/server.o src/gtask.o src/semigroup.o src/treewalk.o src/main-server.cpp
  27. $(CPP) $(CFLAGS) $^ -o $@ $(LIBS)
  28. $(EXE_I):dist/message.o dist/client.o dist/interface.o src/main-interface.cpp
  29. $(CPP) $(CFLAGS) $^ -o $@ $(LIBS)
  30. $(EXE_A):src/semigroup.o src/treewalk.o src/main-alone.cpp
  31. $(CPP) $(CFLAGS) $^ -o $@ $(LIBS)
  32. clean:
  33. $(RM) -rf $(EXE_W) $(EXE_S) $(EXE_I) $(EXE_A) data/* dist/*.o dist/*~ src/*.o src/*~