mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-12-03 02:52:58 +00:00
e285764b78
* Reorganized examples * Documentation * Third party
11 lines
342 B
Makefile
11 lines
342 B
Makefile
BUILD_DIR=build-out
|
|
default all $(BUILD_DIR)/lib/liba.a: liba.cpp liba.h
|
|
rm -rf $(BUILD_DIR)/lib
|
|
mkdir -p $(BUILD_DIR)/lib
|
|
$(CLANG_WRAPPER) -fPIC -o $(BUILD_DIR)/lib/liba.o -c liba.cpp
|
|
ar rcs $(BUILD_DIR)/lib/liba.a $(BUILD_DIR)/lib/liba.o
|
|
|
|
install: $(BUILD_DIR)/lib/liba.a
|
|
cp -rv $(BUILD_DIR)/lib $(PREFIX)
|
|
cp liba.h $(PREFIX)/include
|