|
|
- CXX = clang++
- CXXFLAGS = --std=c++17 -O3 -Iinclude
- USE_THREADS = -pthread
- USE_FILESYSTEM = -lc++fs
- USE_SDL = -lSDL2
-
- all: build
-
- build: pomodoro unix
-
- unix: yes
-
- clean: clean_pomodoro
-
- dirs:
- @mkdir -p ./build/bin
-
- pomodoro: dirs
- $(CXX) $(CXXFLAGS) $(USE_SDL) $(USE_THREADS) src/pomodoro/pomodoro.cpp -o ./build/bin/pomodoro_view
-
- clean_pomodoro:
- -@rm ./build/bin/pomodoro_view
-
- yes: dirs
- $(CXX) $(CXXFLAGS) src/yes/yes.cpp -o ./build/bin/yes
-
- yes_clean:
- -@rm ./build/bin/yes
-
- astyle:
- astyle --style=bsd --align-reference=type --align-pointer=type --break-blocks --indent-namespaces --indent=tab --add-brackets \
- include/rigid_paradise/*.h \
- src/pomodoro/pomodoro.cpp \
- src/yes/yes.cpp \
|