Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: tpmd/Makefile

Issue 660204: Upgrade to tpm-emulator version 0.7. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tpmd/CMakeLists.txt ('k') | tpmd/unix/CMakeLists.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Software-Based Trusted Platform Module (TPM) Emulator for Linux
2 # Copyright (C) 2004-2006 Mario Strasser <mast@gmx.net>
3 #
4 # $Id$
5
6 CC := gcc
7 WFLAGS := -Wall -Werror -Wno-unused -Wpointer-arith -Wcast-align \
8 -Wwrite-strings -Wsign-compare -Wno-multichar
9 #WFLAGS += -Wextra -Wcast-qual -Wmissing-prototypes -Wmissing-declar ations -Wstrict-aliasing
10 CFLAGS += $(WFLAGS) -g -I.. -I. -O2 -fno-strict-aliasing
11 LDFLAGS += -lgmp
12
13 BINDIR := /usr/sbin/
14
15 TPMD := tpmd
16 DIRS := ../tpm ../crypto
17 SRCS := $(foreach dir, $(DIRS), $(wildcard $(dir)/*.c))
18 OBJS := $(patsubst %.c, %.o, $(SRCS))
19 OBJS := $(foreach dir, $(DIRS), $(patsubst $(dir)/%.o, %.o, $(filter $(dir)/% .o, $(OBJS))))
20
21 vpath %.c $(strip $(DIRS))
22
23 all: $(TPMD)
24
25 $(TPMD): $(OBJS)
26
27 clean:
28 rm -f $(TPMD) $(OBJS)
29
30 TPMD_USER ?= tss
31 TPMD_GROUP ?= tss
32 INSTALL ?= install
33
34 install: $(TPMD)
35 $(INSTALL) -m 755 -o $(TPMD_USER) -g $(TPMD_GROUP) -d $(DESTDIR)/var/lib /tpm
36 $(INSTALL) -m 755 -o $(TPMD_USER) -g $(TPMD_GROUP) -d $(DESTDIR)/var/run /tpm
37 $(INSTALL) -D -d $(DESTDIR)/$(BINDIR)
38 $(INSTALL) -m 755 $(TPMD) $(DESTDIR)/$(BINDIR)
39
40 .PHONY: all clean install
41
OLDNEW
« no previous file with comments | « tpmd/CMakeLists.txt ('k') | tpmd/unix/CMakeLists.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698