| Line | |
|---|
| 1 | XEN_ROOT = ../.. |
|---|
| 2 | |
|---|
| 3 | # Base definitions and rules |
|---|
| 4 | include $(XEN_ROOT)/tools/vtpm_manager/Rules.mk |
|---|
| 5 | |
|---|
| 6 | SUBDIRS = crypto tcs util manager migration |
|---|
| 7 | OPENSSL_HEADER = /usr/include/openssl/crypto.h |
|---|
| 8 | |
|---|
| 9 | .PHONY: all |
|---|
| 10 | all: build |
|---|
| 11 | |
|---|
| 12 | .PHONY: build |
|---|
| 13 | build: |
|---|
| 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 |
|---|
| 26 | install: build |
|---|
| 27 | @set -e; for subdir in $(SUBDIRS); do \ |
|---|
| 28 | $(MAKE) -C $$subdir $@; \ |
|---|
| 29 | done |
|---|
| 30 | |
|---|
| 31 | .PHONY: clean |
|---|
| 32 | clean: |
|---|
| 33 | @set -e; for subdir in $(SUBDIRS); do \ |
|---|
| 34 | $(MAKE) -C $$subdir $@; \ |
|---|
| 35 | done |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | .PHONY: mrproper |
|---|
| 39 | mrproper: |
|---|
| 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.