diff options
Diffstat (limited to 'intl/icu_capi/cpp/examples/pluralrules/Makefile')
-rw-r--r-- | intl/icu_capi/cpp/examples/pluralrules/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/intl/icu_capi/cpp/examples/pluralrules/Makefile b/intl/icu_capi/cpp/examples/pluralrules/Makefile new file mode 100644 index 0000000000..fd43d93d00 --- /dev/null +++ b/intl/icu_capi/cpp/examples/pluralrules/Makefile @@ -0,0 +1,28 @@ +# This file is part of ICU4X. For terms of use, please see the file +# called LICENSE at the top level of the ICU4X source tree +# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). + +.DEFAULT_GOAL := test +.PHONY: build test +FORCE: + +ALL_HEADERS := $(wildcard ../../include/*.hpp) $(wildcard ../../../c/include/*.h) + +CXX?=g++ + +$(ALL_HEADERS): + +../../../../../target/debug/libicu_capi_staticlib.a: FORCE + cargo build -p icu_capi_staticlib -p icu_provider --features provider_fs,deserialize_json + +a.out: ../../../../../target/debug/libicu_capi_staticlib.a $(ALL_HEADERS) test.cpp + $(CXX) -std=c++17 test.cpp ../../../../../target/debug/libicu_capi_staticlib.a -ldl -lpthread -lm -g + +build: a.out + +test: build + ./a.out + +clean: + git clean -xf * + rm -f ../../../../../target/debug/libicu_capi_staticlib.a |