|
|
- CXX = g++
- AR = llvm-ar
- CXXFLAGS = --std=c++17 -O3 -Iinclude
- USE_THREADS = -pthread
- USE_FILESYSTEM = -lc++fs
- USE_SDL = -lSDL2
- USE_PIANO = -L./build/lib/ -lpiano
-
- all: build
-
- build: pomodoro unix
-
- unix: yes
-
- clean: clean_pomodoro
-
- dirs:
- @mkdir -p ./build/bin
- @mkdir -p ./build/tmp
- @mkdir -p ./build/lib
-
- 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
-
- libpiano: dirs
- $(CXX) $(CXXFLAGS) -c src/libpiano/piano.cpp -o ./build/tmp/piano.o
- $(AR) rc ./build/lib/libpiano.a ./build/tmp/piano.o
- rm ./build/tmp/*
-
- clean_libpiano:
- -@rm ./build/tmp/piano.o ./build/lib/libpiano.a ./build/tmp/testpiano
-
- test_piano: libpiano dirs
- $(CXX) $(CXXFLAGS) $(USE_PIANO) $(USE_THREADS) src/libpiano/test.cpp -o ./build/tmp/testpiano
- -./build/tmp/testpiano
- -@rm ./build/tmp/*
-
-
- 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 \
|