Emery Hemingway
c5817f347a
Rather than call a small macro without inputs or outputs, ": |> !bin |>", include a file that will perform some metadata checks and invoke the !bin macro. In this way checks are extensible across packages by simply adding them to the common $(BIN_RULES) file.
18 lines
383 B
Plaintext
18 lines
383 B
Plaintext
TARGET_NAME = nic_bus
|
|
include_rules
|
|
|
|
PKGS = genode-os genode-prg
|
|
|
|
: foreach *.cc |> ^ CC %o^ \
|
|
$(CC) -std=gnu++11 `pkg-config --cflags $(PKGS)` -c %f -o %o |> %B.o {objs}
|
|
|
|
: {objs} |> ^o LD %o^ \
|
|
$(LD) `pkg-config --libs $(PKGS)` %f -o %o |> %d {binary}
|
|
|
|
: {binary} |> !collect_bin |>
|
|
|
|
include $(BIN_RULES)
|
|
|
|
PKG_DEPENDS += _/src/$(TARGET_NAME)
|
|
: runtime |> !collect_pkg_runtime |>
|