mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-23 18:19:39 +00:00
Makefile: introduce, depend on and use GEN_OFFSETS
1. We need to regenerate *-blob.h files if generating script changes 2. Do not use hardcoded script name Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
parent
e315bea38a
commit
4bb4bfdac1
1 changed files with 6 additions and 4 deletions
10
Makefile
10
Makefile
|
|
@ -73,6 +73,8 @@ DEPS := $(patsubst %.o,%.d,$(OBJS)) \
|
|||
$(patsubst %.o,%.d,$(OBJS-BLOB)) \
|
||||
$(patsubst %.o,%.d,$(ROBJS-BLOB))
|
||||
|
||||
GEN-OFFSETS := gen-offsets.sh
|
||||
|
||||
all: $(PROGRAM)
|
||||
|
||||
$(OBJS-BLOB): $(SRCS-BLOB)
|
||||
|
|
@ -87,9 +89,9 @@ $(HEAD-BIN): $(HEAD-LDS) $(OBJS-BLOB) parasite-util-net.o
|
|||
$(E) " GEN " $@
|
||||
$(Q) $(LD) -T $^ -o $@
|
||||
|
||||
$(HEAD-BLOB-GEN): $(HEAD-BIN)
|
||||
$(HEAD-BLOB-GEN): $(HEAD-BIN) $(GEN-OFFSETS)
|
||||
$(E) " GEN " $@
|
||||
$(Q) $(SH) gen-offsets.sh \
|
||||
$(Q) $(SH) $(GEN-OFFSETS) \
|
||||
parasite_h__ \
|
||||
parasite_blob_offset__ \
|
||||
parasite_blob \
|
||||
|
|
@ -105,9 +107,9 @@ $(RHEAD-BIN): $(ROBJS) $(RHEAD-LDS)
|
|||
$(E) " GEN " $@
|
||||
$(Q) $(LD) -T $(patsubst %.bin,%.lds.S,$@) -o $@ $(ROBJS)
|
||||
|
||||
$(RHEAD-BLOB-GEN): $(RHEAD-BIN)
|
||||
$(RHEAD-BLOB-GEN): $(RHEAD-BIN) $(GEN-OFFSETS)
|
||||
$(E) " GEN " $@
|
||||
$(Q) $(SH) gen-offsets.sh \
|
||||
$(Q) $(SH) $(GEN-OFFSETS) \
|
||||
restorer_h__ \
|
||||
restorer_blob_offset__ \
|
||||
restorer_blob \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue