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

Side by Side Diff: tddl/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 | « tddl/CMakeLists.txt ('k') | tddl/tddl.h » ('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 # TPM Device Driver Library for the TPM-Emulator package
2 # Copyright (C) 2006 Mario Strasser <mast@gmx.net>,
3 # Swiss Federal Institute of Technology (ETH) Zurich
4 #
5 # $Id$
6
7 CC := gcc
8 WFLAGS := -Wall -Werror -Wno-unused -Wpointer-arith -Wcast-align \
9 -Wwrite-strings -Wsign-compare -Wno-multichar
10 #WFLAGS += -Wextra -Wcast-qual -Wmissing-prototypes -Wmissing-declarations -Wstr ict-aliasing
11 CFLAGS += $(WFLAGS) -O2
12
13 TDDL := libtddl.so
14 TDDLSO1 := $(TDDL).1.2
15 TDDLSO2 := $(TDDL).1.2.0
16
17 LIBDIR := /usr/lib/
18 INCDIR := /usr/include/
19
20 all: $(TDDL)
21
22 $(TDDL): tddl.c tddl.h
23 $(CC) $(CFLAGS) -I.. -fPIC -c -o tddl.o tddl.c
24 $(CC) -shared -o $(TDDLSO2) -Wl,-soname,$(TDDLSO1) tddl.o
25 test -s $(TDDLSO1) || ln -s $(TDDLSO2) $(TDDLSO1)
26 test -s $(TDDL) || ln -s $(TDDLSO1) $(TDDL)
27
28 test_tddl: test_tddl.c
29 $(CC) $(CFLAGS) -I. -L. test_tddl.c -ltddl -o test_tddl
30
31 clean:
32 rm -rf $(TDDL) $(TDDLSO1) $(TDDLSO2) *.o test_tddl
33
34 INSTALL ?= install
35
36 install: $(TDDL)
37 $(INSTALL) -D -d $(DESTDIR)/$(INCDIR)
38 $(INSTALL) -m 644 tddl.h $(DESTDIR)/$(INCDIR)
39 $(INSTALL) -D -d $(DESTDIR)/$(LIBDIR)
40 $(INSTALL) -m 644 $(TDDLSO2) $(DESTDIR)/$(LIBDIR)
41 cd $(DESTDIR)/$(LIBDIR); ln -s $(TDDLSO2) $(TDDLSO1); ln -s $(TDDLSO1) $ (TDDL); cd -
42
43 test: test_tddl
44 LD_LIBRARY_PATH=. ./test_tddl
45
46 .PHONY: all clean install test
47
OLDNEW
« no previous file with comments | « tddl/CMakeLists.txt ('k') | tddl/tddl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698