aboutsummaryrefslogtreecommitdiffstats
path: root/tools/vtpm_manager/manager/Makefile
blob: 278a37e963ef0622bbc65fef1f3b0dd46e09277a (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
XEN_ROOT = ../../..
include $(XEN_ROOT)/tools/vtpm_manager/Rules.mk

BIN		= vtpm_managerd

all: build

build: $(BIN)

install: build
	if [ ! -d "$(DESTDIR)/var/vtpm/fifos" ]; \
		then mkdir -p $(DESTDIR)/var/vtpm/fifos; \
	fi
	$(INSTALL_PROG) $(BIN) $(TOOLS_INSTALL_DIR)

clean:
	rm -f *.a *.so *.o *.rpm $(DEP_FILES)

mrproper: clean
	rm -f $(BIN) *~

$(BIN): $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@

# libraries
LIBS += ../tcs/libTCS.a ../util/libTCGUtils.a ../crypto/libtcpaCrypto.a
LIBS += -lcrypto -lpthread -lm