about summary refs log tree commit diff
path: root/package/targets.mak
blob: 6403a9b98a11603f8e7d57375aa37dc8abb32449 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
LIBEXEC_TARGETS :=

ifeq ($(MULTICALL),1)

BIN_TARGETS := $(package)
BIN_SYMLINKS := $(notdir $(wildcard src/$(package)/deps-exe/*))
EXTRA_TEMP := src/multicall/$(package).c

define symlink_definition
SYMLINK_TARGET_$(1) := $(package)
endef
$(foreach name,$(BIN_SYMLINKS),$(eval $(call symlink_definition,$(name))))

src/multicall/$(package).c: tools/gen-multicall.sh src/$(package)/deps-exe
	./tools/gen-multicall.sh $(package) > src/multicall/$(package).c

src/multicall/$(package).o: src/multicall/$(package).c src/include/$(package)/config.h

else

BIN_TARGETS := $(notdir $(wildcard src/$(package)/deps-exe/*))
BIN_SYMLINKS :=

endif