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

Side by Side Diff: src/platform/vboot_reference/vboot_firmware/Makefile

Issue 2586003: Explicitly list dependency files instead of searching for them. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Created 10 years, 6 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) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 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 LIBNAME = vboot_fw.a 5 LIBNAME = vboot_fw.a
6 6
7 CC ?= gcc 7 CC ?= gcc
8 CFLAGS = -Wall -DNDEBUG -O3 -Werror 8 CFLAGS = -Wall -DNDEBUG -O3 -Werror
9 9
10 FWTOP := $(shell pwd) 10 FWTOP := $(shell pwd)
11 LIBDIR = $(FWTOP)/lib 11 LIBDIR = $(FWTOP)/lib
12 STUBDIR = $(FWTOP)/stub 12 STUBDIR = $(FWTOP)/stub
13 TESTDIR = $(FWTOP)/linktest 13 TESTDIR = $(FWTOP)/linktest
14 14
15 INC = \ 15 INC = \
16 -I$(FWTOP)/include \ 16 -I$(FWTOP)/include \
17 -I$(LIBDIR)/include \ 17 -I$(LIBDIR)/include \
18 -I$(LIBDIR)/cgptlib/include \ 18 -I$(LIBDIR)/cgptlib/include \
19 -I$(LIBDIR)/cryptolib/include 19 -I$(LIBDIR)/cryptolib/include
20 20
21 21
22 LIB_SRCS := $(shell find $(LIBDIR) -iname '*.c') 22 # find ./lib -iname '*.c' | sort
23 LIB_OBJS := $(LIB_SRCS:%.c=%.o) 23 LIB_SRCS = \
24 » ./lib/cgptlib/cgptlib.c \
25 » ./lib/cgptlib/cgptlib_internal.c \
26 » ./lib/cgptlib/crc32.c \
27 » ./lib/cryptolib/padding.c \
28 » ./lib/cryptolib/rsa.c \
29 » ./lib/cryptolib/rsa_utility.c \
30 » ./lib/cryptolib/sha1.c \
31 » ./lib/cryptolib/sha2.c \
32 » ./lib/cryptolib/sha_utility.c \
33 » ./lib/firmware_image_fw.c \
34 » ./lib/kernel_image_fw.c \
35 » ./lib/load_kernel_fw.c \
36 » ./lib/rollback_index.c \
37 » ./lib/stateful_util.c \
38 » ./lib/tlcl.c
24 39
25 STUB_SRCS := $(shell find $(STUBDIR) -iname '*.c') 40 LIB_OBJS = $(LIB_SRCS:%.c=%.o)
26 STUB_OBJS := $(STUB_SRCS:%.c=%.o) 41
42 # find ./stub -iname '*.c' | sort
43 STUB_SRCS = \
44 » ./stub/boot_device_stub.c \
45 » ./stub/utility_stub.c
46
47 STUB_OBJS = $(STUB_SRCS:%.c=%.o)
27 48
28 49
29 test : $(LIBNAME) 50 test : $(LIBNAME)
30 $(CC) $(CFLAGS) $(INC) -o $(TESTDIR)/a.out $(TESTDIR)/main.c $(LIBNAME) 51 $(CC) $(CFLAGS) $(INC) -o $(TESTDIR)/a.out $(TESTDIR)/main.c $(LIBNAME)
31 52
32 $(LIBNAME) : $(LIB_OBJS) $(STUB_OBJS) 53 $(LIBNAME) : $(LIB_OBJS) $(STUB_OBJS)
33 rm -f $@ 54 rm -f $@
34 ar qc $@ $^ 55 ar qc $@ $^
35 56
36 %o : %c 57 %o : %c
37 $(CC) $(CFLAGS) $(INC) -c -o $@ $< 58 $(CC) $(CFLAGS) $(INC) -c -o $@ $<
38 59
39 clean: FORCE 60 clean: FORCE
40 rm -f $(LIBNAME) $(LIB_OBJS) $(STUB_OBJS) $(TESTDIR)/a.out 61 rm -f $(LIBNAME) $(LIB_OBJS) $(STUB_OBJS) $(TESTDIR)/a.out
41 62
42 FORCE: 63 FORCE:
43 64
44 65
45 .PHONY: FORCE 66 .PHONY: FORCE
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