33 lines
778 B
Plaintext
33 lines
778 B
Plaintext
TARGET_NAME = solo5
|
|
LIBS += genode-os
|
|
include_rules
|
|
|
|
: solo5.symbols |> !abi_stub |>
|
|
|
|
: solo5.pc.in |> ^ SED %B^ \
|
|
sed \
|
|
-e "s|@includedir@|`nix-store --add upstream/include`|" \
|
|
-e "s|@version@|`git describe`|" \
|
|
< %f > %o \
|
|
|> $(PKG_CONFIG_DIR)/solo5.pc $(GENODE_DIR)/<pkg-config>
|
|
|
|
: |> cc -Iupstream/include/solo5 upstream/%o/%o.c -o %o |> mfttool
|
|
|
|
DEFINES += -D__SOLO5_BINDINGS__
|
|
CXXFLAGS += -Drestrict=__restrict__
|
|
|
|
DEFINES += -Wno-builtin-declaration-mismatch
|
|
|
|
INCLUDES += -Iupstream/include/solo5
|
|
INCLUDES += -Iupstream/include/crt
|
|
|
|
#: foreach ../../tenders/common/mft.c |> !cc |> {obj}
|
|
|
|
BINDINGS_DIR = upstream/bindings/genode
|
|
|
|
: foreach $(BINDINGS_DIR)/*.cc |> !cxx |> {obj}
|
|
: {obj} |> !lib |> solo5.lib.so {bin}
|
|
: {bin} |> !collect_bin |>
|
|
|
|
include &(BIN_RULES)
|