blob: a377b76c9a17340124b0b9c8be7658142821038e [file] [log] [blame]
Gaurav Shah322536d2010-01-28 15:01:23 -08001# 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
Gaurav Shah27bfc8b2010-02-17 14:19:24 -08005export CC ?= gcc
Gaurav Shah456678b2010-03-10 18:38:45 -08006export CFLAGS = -Wall -DNDEBUG -O3 -Werror
Gaurav Shah7ca31f32010-02-16 19:04:11 -08007export TOP = $(shell pwd)
Bill Richardson0b8f35c2010-05-26 09:18:38 -07008export FWDIR=$(TOP)/vboot_firmware
Gaurav Shahfc70d722010-03-31 13:26:55 -07009export INCLUDES = \
Bill Richardson0b8f35c2010-05-26 09:18:38 -070010 -I$(FWDIR)/include \
Randall Spangler3003c1d2010-05-27 09:20:11 -070011 -I$(TOP)/misclibs/include
Gaurav Shah322536d2010-01-28 15:01:23 -080012
Bill Richardson0b8f35c2010-05-26 09:18:38 -070013export FWLIB=$(FWDIR)/vboot_fw.a
14
Randall Spangler3003c1d2010-05-27 09:20:11 -070015SUBDIRS=vboot_firmware misclibs vfirmware vkernel utility tests
Gaurav Shah322536d2010-01-28 15:01:23 -080016
17all:
Louis Yung-Chieh Lob31ddce2010-05-21 16:35:44 +080018 set -e; \
Gaurav Shah322536d2010-01-28 15:01:23 -080019 for i in $(SUBDIRS); do \
Louis Yung-Chieh Lob31ddce2010-05-21 16:35:44 +080020 make -C $$i; \
Gaurav Shah322536d2010-01-28 15:01:23 -080021 done
22
23clean:
Louis Yung-Chieh Lob31ddce2010-05-21 16:35:44 +080024 set -e; \
Gaurav Shah322536d2010-01-28 15:01:23 -080025 for i in $(SUBDIRS); do \
Louis Yung-Chieh Lob31ddce2010-05-21 16:35:44 +080026 make -C $$i clean; \
Gaurav Shah322536d2010-01-28 15:01:23 -080027 done
Bill Richardson371df8b2010-05-27 14:19:47 -070028
29install:
30 $(MAKE) -C utility install
Gaurav Shahe6421982010-06-03 07:49:32 -070031
32runtests:
33 $(MAKE) -C tests runtests