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