aboutsummaryrefslogtreecommitdiffstats
path: root/tools/vtpm_manager/Makefile
blob: 1ae3a180eec8140f93e1dca55bb03ffcbe7f3db0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
XEN_ROOT = ../..

# Base definitions and rules
include $(XEN_ROOT)/tools/vtpm_manager/Rules.mk

SUBDIRS		= crypto tcs util manager
OPENSSL_HEADER	= /usr/include/openssl/crypto.h

.PHONY: all
all: build

.PHONY: build
build:
	@if [ -e $(OPENSSL_HEADER) ]; then \
		@set -e; for subdir in $(SUBDIRS); do \
			$(MAKE) -C $$subdir $@; \
		done; \
	else \
		echo "*** Cannot build vtpm_manager: OpenSSL developement files missing."; \
	fi

.PHONY: install
install: build
	@set -e; for subdir in $(SUBDIRS); do \
		$(MAKE) -C $$subdir $@; \
	done

.PHONY: clean
clean:
	@set -e; for subdir in $(SUBDIRS); do \
		$(MAKE) -C $$subdir $@; \
	done


.PHONY: mrproper
mrproper:
	@set -e; for subdir in $(SUBDIRS); do \
		$(MAKE) -C $$subdir $@; \
	done