forked from mirrors/gecko-dev
By update-icu4x.sh script. Depends on D192900 Differential Revision: https://phabricator.services.mozilla.com/D193880
26 lines
694 B
Makefile
26 lines
694 B
Makefile
# 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/*.h)
|
|
|
|
$(ALL_HEADERS):
|
|
|
|
../../../../../target/debug/libicu_capi_staticlib.a: FORCE
|
|
cargo build -p icu_capi_staticlib
|
|
|
|
a.out: ../../../../../target/debug/libicu_capi_staticlib.a $(ALL_HEADERS) test.c
|
|
gcc test.c ../../../../../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
|