Nico Huber | 413b0d9 | 2013-06-19 12:41:19 +0200 | [diff] [blame] | 1 | # |
| 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 | |
| 20 | PROGRAM = ifdfake |
| 21 | |
| 22 | CC ?= gcc |
| 23 | INSTALL ?= /usr/bin/install |
| 24 | PREFIX ?= /usr/local |
| 25 | CFLAGS ?= -O2 -g -Wall -W |
| 26 | |
| 27 | OBJS = ifdfake.o |
| 28 | |
| 29 | all: $(PROGRAM) |
| 30 | |
| 31 | $(PROGRAM): $(OBJS) |
| 32 | $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS) |
| 33 | |
| 34 | clean: |
| 35 | rm -f $(PROGRAM) *.o *~ |
| 36 | |
| 37 | distclean: clean |
| 38 | |
| 39 | install: $(PROGRAM) |
| 40 | mkdir -p $(DESTDIR)$(PREFIX)/bin |
| 41 | $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/bin |
| 42 | |
| 43 | .PHONY: all clean distclean |