~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to tools/vtpm_manager/migration/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
XEN_ROOT = ../../..
 
2
include $(XEN_ROOT)/tools/vtpm_manager/Rules.mk
 
3
 
 
4
VPATH = ../manager
 
5
 
 
6
BIND            = vtpm_migratord
 
7
BINC            = vtpm_migrator
 
8
 
 
9
SRCSD    = vtpm_manager_if.c vtpm_migratord.c vtpm_migratord_handler.c vtpm_ipc.c
 
10
SRCSC    = vtpm_manager_if.c vtpm_migrator_if.c vtpm_migratorc.c vtpm_ipc.c
 
11
 
 
12
OBJSD    = $(patsubst %.c,%.o,$(SRCSD))
 
13
OBJSC    = $(patsubst %.c,%.o,$(SRCSC))
 
14
 
 
15
.PHONY: all
 
16
all: build
 
17
 
 
18
.PHONY: build
 
19
build: $(BIND) $(BINC)
 
20
 
 
21
.PHONY: install
 
22
install: build
 
23
        $(INSTALL_PROG) $(BIND) $(TOOLS_INSTALL_DIR)
 
24
        $(INSTALL_PROG) $(BINC) $(TOOLS_INSTALL_DIR)
 
25
 
 
26
.PHONY: clean
 
27
clean:
 
28
        rm -f $(BINC) $(BIND)
 
29
        rm -f *.a *.so *.o *.rpm $(DEP_FILES)
 
30
 
 
31
.PHONY: mrproper
 
32
mrproper: clean
 
33
        rm -f *~
 
34
 
 
35
$(BIND): $(OBJSD)
 
36
        $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
 
37
 
 
38
$(BINC): $(OBJSC)
 
39
        $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
 
40
 
 
41
# libraries
 
42
LIBS += ../util/libTCGUtils.a