source: trunk/packages/xen-common/xen-common/tools/vtpm_manager/Makefile @ 95

Last change on this file since 95 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

File size: 986 bytes
Line 
1XEN_ROOT = ../..
2
3# Base definitions and rules
4include $(XEN_ROOT)/tools/vtpm_manager/Rules.mk
5
6SUBDIRS         = crypto tcs util manager migration
7OPENSSL_HEADER  = /usr/include/openssl/crypto.h
8
9.PHONY: all
10all: build
11
12.PHONY: build
13build:
14        @set -e; if [ -e $(OPENSSL_HEADER) ]; then            \
15                if [ ! -e "migration/vtpm_ipc.c" ]; then        \
16                        ln -s ../manager/vtpm_ipc.c migration;  \
17                fi;                                    \
18                for subdir in $(SUBDIRS); do          \
19                        $(MAKE) -C $$subdir $@;       \
20                done;                                 \
21        else \
22                echo "*** Cannot build vtpm_manager: OpenSSL developement files missing."; \
23        fi
24
25.PHONY: install
26install: build
27        @set -e; for subdir in $(SUBDIRS); do \
28                $(MAKE) -C $$subdir $@; \
29        done
30
31.PHONY: clean
32clean:
33        @set -e; for subdir in $(SUBDIRS); do \
34                $(MAKE) -C $$subdir $@; \
35        done
36
37
38.PHONY: mrproper
39mrproper:
40        rm -f migration/vtpm_ipc.c
41        @set -e; for subdir in $(SUBDIRS); do \
42                $(MAKE) -C $$subdir $@; \
43        done
44
45
Note: See TracBrowser for help on using the repository browser.