mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
works provided that the hotplug scripts deliver the "suspend" before the "resume," but this is not always true. Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
40 lines
832 B
Makefile
40 lines
832 B
Makefile
XEN_ROOT = ../../..
|
|
include $(XEN_ROOT)/tools/vtpm_manager/Rules.mk
|
|
|
|
BIND = vtpm_migratord
|
|
BINC = vtpm_migrator
|
|
|
|
SRCSD = vtpm_manager_if.c vtpm_migratord.c vtpm_migratord_handler.c vtpm_ipc.c
|
|
SRCSC = vtpm_manager_if.c vtpm_migrator_if.c vtpm_migratorc.c vtpm_ipc.c
|
|
|
|
OBJSD = $(patsubst %.c,%.o,$(SRCSD))
|
|
OBJSC = $(patsubst %.c,%.o,$(SRCSC))
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
.PHONY: build
|
|
build: $(BIND) $(BINC)
|
|
|
|
.PHONY: install
|
|
install: build
|
|
$(INSTALL_PROG) $(BIND) $(TOOLS_INSTALL_DIR)
|
|
$(INSTALL_PROG) $(BINC) $(TOOLS_INSTALL_DIR)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f *.a *.so *.o *.rpm $(DEP_FILES)
|
|
|
|
.PHONY: mrproper
|
|
mrproper: clean
|
|
rm -f $(BINC) $(BIND) *~
|
|
|
|
$(BIND): $(OBJSD)
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
|
|
|
|
$(BINC): $(OBJSC)
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
|
|
|
|
# libraries
|
|
LIBS += ../util/libTCGUtils.a
|