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

Side by Side Diff: Makefile

Issue 2871019: More cleanup of MSVC errors (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
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 | firmware/Makefile » ('j') | firmware/Makefile » ('J')
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 export CC ?= gcc 5 export CC ?= gcc
6 export CXX ?= g++ 6 export CXX ?= g++
7 export CFLAGS = -Wall -DNDEBUG -O3 -Werror -DCHROMEOS_ENVIRONMENT 7 export CFLAGS = -Wall -DNDEBUG -O3 -Werror -DCHROMEOS_ENVIRONMENT
8 export TOP = $(shell pwd) 8 export TOP = $(shell pwd)
9 export FWDIR=$(TOP)/firmware 9 export FWDIR=$(TOP)/firmware
10 export HOSTDIR=$(TOP)/host 10 export HOSTDIR=$(TOP)/host
11 export INCLUDES = -I$(FWDIR)/include 11 export INCLUDES = -I$(FWDIR)/include -I$(FWDIR)/stub/include
12 12
13 export BUILD = ${TOP}/build 13 export BUILD = ${TOP}/build
14 export FWLIB = ${BUILD}/vboot_fw.a 14 export FWLIB = ${BUILD}/vboot_fw.a
15 export HOSTLIB= ${BUILD}/vboot_host.a 15 export HOSTLIB= ${BUILD}/vboot_host.a
16 16
17 SUBDIRS = firmware host utility cgpt tests 17 SUBDIRS = firmware host utility cgpt tests
18 18
19 all: 19 all:
20 set -e; \ 20 set -e; \
21 for d in $(shell find ${SUBDIRS} -name '*.c' -exec dirname {} \; |\ 21 for d in $(shell find ${SUBDIRS} -name '*.c' -exec dirname {} \; |\
22 sort -u); do \ 22 sort -u); do \
23 newdir=${BUILD}/$$d; \ 23 newdir=${BUILD}/$$d; \
24 if [ ! -d $$newdir ]; then \ 24 if [ ! -d $$newdir ]; then \
25 mkdir -p $$newdir; \ 25 mkdir -p $$newdir; \
26 fi; \ 26 fi; \
27 done && \ 27 done && \
28 for i in $(SUBDIRS); do \ 28 for i in $(SUBDIRS); do \
29 make -C $$i; \ 29 make -C $$i; \
30 done 30 done
31 31
32 clean: 32 clean:
33 /bin/rm -rf ${BUILD} 33 /bin/rm -rf ${BUILD}
34 34
35 install: 35 install:
36 $(MAKE) -C utility install 36 $(MAKE) -C utility install
37 $(MAKE) -C cgpt install 37 $(MAKE) -C cgpt install
38 38
39 runtests: 39 runtests:
40 $(MAKE) -C tests runtests 40 $(MAKE) -C tests runtests
OLDNEW
« no previous file with comments | « no previous file | firmware/Makefile » ('j') | firmware/Makefile » ('J')

Powered by Google App Engine
This is Rietveld 408576698