You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
698 B

5 years ago
  1. CXX = clang++
  2. CXXFLAGS = --std=c++17 -O3 -Iinclude
  3. USE_THREADS = -pthread
  4. USE_FILESYSTEM = -lc++fs
  5. USE_SDL = -lSDL2
  6. all: build
  7. build: pomodoro unix
  8. unix: yes
  9. clean: clean_pomodoro
  10. dirs:
  11. @mkdir -p ./build/bin
  12. pomodoro: dirs
  13. $(CXX) $(CXXFLAGS) $(USE_SDL) $(USE_THREADS) src/pomodoro/pomodoro.cpp -o ./build/bin/pomodoro_view
  14. clean_pomodoro:
  15. -@rm ./build/bin/pomodoro_view
  16. yes: dirs
  17. $(CXX) $(CXXFLAGS) src/yes/yes.cpp -o ./build/bin/yes
  18. yes_clean:
  19. -@rm ./build/bin/yes
  20. astyle:
  21. astyle --style=bsd --align-reference=type --align-pointer=type --break-blocks --indent-namespaces --indent=tab --add-brackets \
  22. include/rigid_paradise/*.h \
  23. src/pomodoro/pomodoro.cpp \
  24. src/yes/yes.cpp \