2 ## This file is part of the coreboot project.
4 ## Copyright (C) 2012 The ChromiumOS Authors. All rights reserved.
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.
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.
18 CC ?
= $(CROSS_COMPILE
)gcc
19 INSTALL ?
= /usr
/bin
/env
install
22 CFLAGS
+= -Wall
-Wextra
-Wmissing-prototypes
-Werror
23 CPPFLAGS
+= -I .
-I
$(ROOT
)/commonlib
/include
24 CPPFLAGS
+= -include ..
/..
/src
/commonlib
/include/commonlib
/compiler.h
33 rm -f
$(PROGRAM
) *.o .dependencies
*~ junit.xml
36 $(INSTALL
) -d
$(DESTDIR
)$(PREFIX
)/sbin
/
37 $(INSTALL
) cbmem
$(DESTDIR
)$(PREFIX
)/sbin
/
42 @
$(CC
) $(CFLAGS
) $(CPPFLAGS
) -MM
*.c
> .dependencies
44 .PHONY
: all clean distclean
46 -include .dependencies