Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 1 | # |
| 2 | # ifdtool - dump Intel Firmware Descriptor information |
| 3 | # |
| 4 | # Copyright (C) 2011 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. |
| 14 | # |
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 15 | |
| 16 | PROGRAM = ifdtool |
| 17 | |
| 18 | CC = gcc |
| 19 | INSTALL = /usr/bin/install |
| 20 | PREFIX = /usr/local |
Alexandru Gagniuc | 71a7ba2 | 2015-09-10 08:37:42 -0700 | [diff] [blame] | 21 | CFLAGS = -O2 -g -Wall -W -Werror |
Patrick Georgi | 472efa6 | 2012-02-16 20:44:20 +0100 | [diff] [blame] | 22 | LDFLAGS = |
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 23 | |
| 24 | OBJS = ifdtool.o |
| 25 | |
| 26 | all: dep $(PROGRAM) |
| 27 | |
| 28 | $(PROGRAM): $(OBJS) |
| 29 | $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS) |
| 30 | |
| 31 | clean: |
| 32 | rm -f $(PROGRAM) *.o *~ |
| 33 | |
| 34 | distclean: clean |
| 35 | rm -f .dependencies |
| 36 | |
| 37 | dep: |
| 38 | @$(CC) $(CFLAGS) -MM *.c > .dependencies |
| 39 | |
| 40 | install: $(PROGRAM) |
| 41 | mkdir -p $(DESTDIR)$(PREFIX)/bin |
| 42 | $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/bin |
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 43 | |
Patrick Georgi | 472efa6 | 2012-02-16 20:44:20 +0100 | [diff] [blame] | 44 | .PHONY: all clean distclean dep |
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 45 | |
| 46 | -include .dependencies |