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

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

Issue 2219004: Rearrange vboot_reference directories to isolate external components. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Created 10 years, 7 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
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 LIBNAME = vboot_fw.a
6
7 CC ?= gcc
8 CFLAGS = -Wall -DNDEBUG -O3 -Werror
9
10 FWTOP := $(shell pwd)
11 LIBDIR = $(FWTOP)/lib
12 STUBDIR = $(FWTOP)/stub
13 TESTDIR = $(FWTOP)/linktest
14
15 INC = \
16 -I$(FWTOP)/include \
17 -I$(LIBDIR)/include \
18 -I$(LIBDIR)/cryptolib/include
19
20
21 LIB_SRCS := $(shell find $(LIBDIR) -iname '*.c')
22 LIB_OBJS := $(LIB_SRCS:%.c=%.o)
23
24 STUB_SRCS := $(shell find $(STUBDIR) -iname '*.c')
25 STUB_OBJS := $(STUB_SRCS:%.c=%.o)
26
27
28 test : $(LIBNAME)
29 $(CC) $(CFLAGS) $(INC) -o $(TESTDIR)/a.out $(TESTDIR)/main.c $(LIBNAME)
30
31 $(LIBNAME) : $(LIB_OBJS) $(STUB_OBJS)
32 rm -f $@
33 ar qc $@ $^
34
35 %o : %c
36 $(CC) $(CFLAGS) $(INC) -c -o $@ $<
37
38 clean: FORCE
39 rm -f $(LIBNAME) $(LIB_OBJS) $(STUB_OBJS) $(TESTDIR)/a.out
40
41 FORCE:
42
43
44 .PHONY: FORCE
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/utility/cgpt/Makefile ('k') | src/platform/vboot_reference/vboot_firmware/include/boot_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698