blob: 3a896eeb090c263667e357cc92e46ccc207b0a9c [file] [log] [blame]
Nico Huber413b0d92013-06-19 12:41:19 +02001#
2# ifdfake - Create an Intel Firmware Descriptor with just a section layout
3#
4# Copyright (C) 2013 secunet Security Networks AG
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 = ifdfake
21
22CC ?= gcc
23INSTALL ?= /usr/bin/install
24PREFIX ?= /usr/local
25CFLAGS ?= -O2 -g -Wall -W
26
27OBJS = ifdfake.o
28
29all: $(PROGRAM)
30
31$(PROGRAM): $(OBJS)
32 $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
33
34clean:
35 rm -f $(PROGRAM) *.o *~
36
37distclean: clean
38
39install: $(PROGRAM)
40 mkdir -p $(DESTDIR)$(PREFIX)/bin
41 $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/bin
42
43.PHONY: all clean distclean