blob: c93863a64b96b85d28ed6eb7d164c764a21270e1 [file] [log] [blame]
Vadim Bendebury6d18fd02012-09-27 19:24:07 -07001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2012 The ChromiumOS Authors. All rights reserved.
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; version 2 of the License.
9##
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13## GNU General Public License for more details.
14##
15## You should have received a copy of the GNU General Public License
16## along with this program; if not, write to the Free Software
17## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18##
19
20PROGRAM = cbmem
21ROOT = ../../src
Paul Menzelc3fc1e02013-04-05 11:39:42 +020022CC ?= $(CROSS_COMPILE)gcc
Vadim Bendebury7c6b6bb2012-10-19 10:57:18 -070023CFLAGS ?= -O2
24CFLAGS += -Wall -Werror
25CPPFLAGS += -iquote $(ROOT)/include -iquote $(ROOT)/src/arch/x86
Vadim Bendebury6d18fd02012-09-27 19:24:07 -070026
27OBJS = $(PROGRAM).o
28
Vadim Bendebury7c6b6bb2012-10-19 10:57:18 -070029all: $(PROGRAM)
Vadim Bendebury6d18fd02012-09-27 19:24:07 -070030
31$(PROGRAM): $(OBJS)
Vadim Bendebury6d18fd02012-09-27 19:24:07 -070032
33clean:
34 rm -f $(PROGRAM) *.o *~
35
36distclean: clean
37 rm -f .dependencies
38
Vadim Bendebury7c6b6bb2012-10-19 10:57:18 -070039.dependencies:
Vadim Bendebury6d18fd02012-09-27 19:24:07 -070040 @$(CC) $(CFLAGS) -MM *.c > .dependencies
41
Vadim Bendebury7c6b6bb2012-10-19 10:57:18 -070042.PHONY: all clean distclean
Vadim Bendebury6d18fd02012-09-27 19:24:07 -070043
44-include .dependencies