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

Side by Side Diff: nvtool/Makefile

Issue 839001: Changes to TPM nvtool for ebuild. (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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009,2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2009,2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 TPM_NVTOOL = tpm-nvtool 5 TPM_NVTOOL = tpm-nvtool
6 6
7 OSNAME = $(shell uname) 7 OSNAME = $(shell uname)
8 8
9 CC = gcc 9 CC ?= gcc
10 CFLAGS = -Wall -g -I. -L/usr/local/lib 10 CFLAGS += -Wall -g -I. -L/usr/local/lib
11 LIBS = -ltspi 11 LIBS = -ltspi
12 12
13 ifeq ($(OSNAME), Darwin) 13 ifeq ($(OSNAME), Darwin)
14 ARCHS = -arch i386 14 ARCHS = -arch i386
15 LIBS += -liconv 15 LIBS += -liconv
16 else 16 else
17 ARCHS = 17 ARCHS =
18 endif 18 endif
19 19
20 TPM_NVTOOL_OBJS = main.o \ 20 TPM_NVTOOL_OBJS = main.o \
(...skipping 13 matching lines...) Expand all
34 %.o: %.c 34 %.o: %.c
35 $(CC) $(CFLAGS) $(ARCHS) $*.c -c -o $*.o 35 $(CC) $(CFLAGS) $(ARCHS) $*.c -c -o $*.o
36 $(CC) $(CFLAGS) $(ARCHS) -MM $*.c > $*.d 36 $(CC) $(CFLAGS) $(ARCHS) -MM $*.c > $*.d
37 @mv -f $*.d $*.d.tmp 37 @mv -f $*.d $*.d.tmp
38 @sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d 38 @sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d
39 @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | sed -e 's/^ *//' - e 's/$$/:/' >> $*.d 39 @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | sed -e 's/^ *//' - e 's/$$/:/' >> $*.d
40 @rm -f $*.d.tmp 40 @rm -f $*.d.tmp
41 41
42 clean: 42 clean:
43 rm -f $(TPM_NVTOOL) *.o *.d help/help.h 43 rm -f $(TPM_NVTOOL) *.o *.d help/help.h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698