summaryrefslogtreecommitdiff
path: root/package/targets.mak
blob: f0d271538438125970e3c47de43d005ec199c993 (plain)
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 $(BIN_SYMLINKS:%=src/$(package)/%.c)
	./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