sb/amd/sr5650: Add fine-grained bounds checking
[coreboot.git] / util / cbmem / Makefile
blob485955b68a0818b27c3639daa0f547c3b0ad4992
1 ##
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.
16 PROGRAM = cbmem
17 ROOT = ../../src
18 CC ?= $(CROSS_COMPILE)gcc
19 INSTALL ?= /usr/bin/env install
20 PREFIX ?= /usr/local
21 CFLAGS ?= -O2
22 CFLAGS += -Wall -Wextra -Wmissing-prototypes -Werror
23 CPPFLAGS += -I . -I $(ROOT)/commonlib/include
24 CPPFLAGS += -include ../../src/commonlib/include/commonlib/compiler.h
26 OBJS = $(PROGRAM).o
28 all: $(PROGRAM)
30 $(PROGRAM): $(OBJS)
32 clean:
33 rm -f $(PROGRAM) *.o .dependencies *~ junit.xml
35 install: $(PROGRAM)
36 $(INSTALL) -d $(DESTDIR)$(PREFIX)/sbin/
37 $(INSTALL) cbmem $(DESTDIR)$(PREFIX)/sbin/
39 distclean: clean
41 .dependencies:
42 @$(CC) $(CFLAGS) $(CPPFLAGS) -MM *.c > .dependencies
44 .PHONY: all clean distclean
46 -include .dependencies