Makefile revision e642198b93cf2c50e279a6598f21f69564b13c6f
1322536d2f9d30f42218cc9f2ab40574557da8a9Gaurav Shah# Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 2322536d2f9d30f42218cc9f2ab40574557da8a9Gaurav Shah# Use of this source code is governed by a BSD-style license that can be 3322536d2f9d30f42218cc9f2ab40574557da8a9Gaurav Shah# found in the LICENSE file. 4322536d2f9d30f42218cc9f2ab40574557da8a9Gaurav Shah 527bfc8be07935ccb0dab251c5d084c64830163c2Gaurav Shahexport CC ?= gcc 6456678b0c45d9fa6ad45d5dc6769051a731207f3Gaurav Shahexport CFLAGS = -Wall -DNDEBUG -O3 -Werror 77ca31f3e4d21bb7dfa39e1e4b9ab42c7047e66d8Gaurav Shahexport TOP = $(shell pwd) 80b8f35c6a56a0e645254dd7f07ca68e01c8ee629Bill Richardsonexport FWDIR=$(TOP)/vboot_firmware 9fc70d72aaab4d558e39ec43832375267603bfd93Gaurav Shahexport INCLUDES = \ 100b8f35c6a56a0e645254dd7f07ca68e01c8ee629Bill Richardson -I$(FWDIR)/include \ 113003c1dd5048dde791e69850333539edc1c767ebRandall Spangler -I$(TOP)/misclibs/include 12322536d2f9d30f42218cc9f2ab40574557da8a9Gaurav Shah 130b8f35c6a56a0e645254dd7f07ca68e01c8ee629Bill Richardsonexport FWLIB=$(FWDIR)/vboot_fw.a 140b8f35c6a56a0e645254dd7f07ca68e01c8ee629Bill Richardson 153003c1dd5048dde791e69850333539edc1c767ebRandall SpanglerSUBDIRS=vboot_firmware misclibs vfirmware vkernel utility tests 16322536d2f9d30f42218cc9f2ab40574557da8a9Gaurav Shah 17322536d2f9d30f42218cc9f2ab40574557da8a9Gaurav Shahall: 18b31ddcec6a826986cd215725bf4defbc6021fe6bLouis Yung-Chieh Lo set -e; \ 19322536d2f9d30f42218cc9f2ab40574557da8a9Gaurav Shah for i in $(SUBDIRS); do \ 20b31ddcec6a826986cd215725bf4defbc6021fe6bLouis Yung-Chieh Lo make -C $$i; \ 21322536d2f9d30f42218cc9f2ab40574557da8a9Gaurav Shah done 22322536d2f9d30f42218cc9f2ab40574557da8a9Gaurav Shah 23322536d2f9d30f42218cc9f2ab40574557da8a9Gaurav Shahclean: 24b31ddcec6a826986cd215725bf4defbc6021fe6bLouis Yung-Chieh Lo set -e; \ 25322536d2f9d30f42218cc9f2ab40574557da8a9Gaurav Shah for i in $(SUBDIRS); do \ 26b31ddcec6a826986cd215725bf4defbc6021fe6bLouis Yung-Chieh Lo make -C $$i clean; \ 27322536d2f9d30f42218cc9f2ab40574557da8a9Gaurav Shah done 28371df8bbbf9088dc1206701bdc2294d9598bb339Bill Richardson 29371df8bbbf9088dc1206701bdc2294d9598bb339Bill Richardsoninstall: 30371df8bbbf9088dc1206701bdc2294d9598bb339Bill Richardson $(MAKE) -C utility install 31e642198b93cf2c50e279a6598f21f69564b13c6fGaurav Shah 32e642198b93cf2c50e279a6598f21f69564b13c6fGaurav Shahruntests: 33e642198b93cf2c50e279a6598f21f69564b13c6fGaurav Shah $(MAKE) -C tests runtests 34