mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-25 08:44:32 +01:00
build: Add rules to generate wine requests.
This commit is contained in:
parent
b3ad21ed92
commit
331f00b76b
2 changed files with 35 additions and 1 deletions
30
make/rules-wine-requests.mk
Normal file
30
make/rules-wine-requests.mk
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# parameters:
|
||||
# $(1): lowercase package name
|
||||
# $(2): uppercase package name
|
||||
#
|
||||
define create-rules-wine-requests
|
||||
$$($(2)_SRC)/include/wine/server_protocol.h: | $$(OBJ)/.$(1)-post-source
|
||||
$$($(2)_SRC)/include/wine/server_protocol.h: $$($(2)_ORIGIN)/include/wine/server_protocol.h
|
||||
cp -a $$< $$@
|
||||
$$($(2)_SRC)/server/request.h: | $$(OBJ)/.$(1)-post-source
|
||||
$$($(2)_SRC)/server/request.h: $$($(2)_ORIGIN)/server/request.h
|
||||
cp -a $$< $$@
|
||||
$$($(2)_SRC)/server/trace.c: | $$(OBJ)/.$(1)-post-source
|
||||
$$($(2)_SRC)/server/trace.c: $$($(2)_ORIGIN)/server/trace.c
|
||||
cp -a $$< $$@
|
||||
|
||||
$$(OBJ)/.$(1)-wine-requests: $$($(2)_SRC)/include/wine/server_protocol.h
|
||||
$$(OBJ)/.$(1)-wine-requests: $$($(2)_SRC)/server/request.h
|
||||
$$(OBJ)/.$(1)-wine-requests: $$($(2)_SRC)/server/trace.c
|
||||
$$(OBJ)/.$(1)-wine-requests: $$($(2)_ORIGIN)/server/protocol.def
|
||||
$$(OBJ)/.$(1)-wine-requests: $$($(2)_ORIGIN)/tools/make_requests
|
||||
$$(OBJ)/.$(1)-wine-requests: | $$(OBJ)/.$(1)-post-source
|
||||
@echo ":: wine-requesting $(1)..." >&2
|
||||
cd "$$($(2)_SRC)" && tools/make_requests
|
||||
touch $$@
|
||||
|
||||
$$(OBJ)/.$(1)-build32: $$(OBJ)/.$(1)-wine-requests
|
||||
$$(OBJ)/.$(1)-build64: $$(OBJ)/.$(1)-wine-requests
|
||||
endef
|
||||
|
||||
rules-wine-requests = $(call create-rules-wine-requests,$(1),$(call toupper,$(1)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue