1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
RIME_ROOT = $(CURDIR)
sharedir = $(DESTDIR)/usr/share
bindir = $(DESTDIR)/usr/bin
.PHONY: all thirdparty clean librime librime-static install-librime uninstall-librime release install uninstall debug install-debug uninstall-debug test
all: release
thirdparty:
make -f Makefile.thirdparty
thirdparty/%:
make -f Makefile.thirdparty $(@:thirdparty/%=%)
clean:
rm -Rf build build-static debug-build
librime: release
install-librime: install
uninstall-librime: uninstall
librime-static:
cmake . -Bbuild-static -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=ON -DBUILD_SHARED_LIBS=OFF
cmake --build build-static
release:
cmake . -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
cmake --build build
debug:
cmake . -Bdebug-build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
cmake --build debug-build
install:
cmake --build build --target install
install-debug:
cmake --build debug-build --target install
uninstall:
cmake --build build --target uninstall
uninstall-debug:
cmake --build debug-build --target uninstall
test: release
(cd build/test; ./rime_test)
test-debug: debug
(cd debug-build/test; ./rime_test)
|