libpayload: increase MAX_ARGC_COUNT
[coreboot.git] / util / ifdtool / Makefile
blob77547efc36de46e6704a1644ec6d2f2db67c3b9c
2 # ifdtool - dump Intel Firmware Descriptor information
4 # Copyright (C) 2011 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.
16 PROGRAM = ifdtool
18 CC = gcc
19 INSTALL = /usr/bin/install
20 PREFIX = /usr/local
21 CFLAGS = -O2 -g -Wall -W -Werror
22 LDFLAGS =
24 OBJS = ifdtool.o
26 all: dep $(PROGRAM)
28 $(PROGRAM): $(OBJS)
29 $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
31 clean:
32 rm -f $(PROGRAM) *.o *~
33 distclean: clean
35 dep:
36 @$(CC) $(CFLAGS) -MM *.c > .dependencies
38 %.o: %.c
39 $(CC) $(CFLAGS) -c -o $@ $<
41 install: $(PROGRAM)
42 mkdir -p $(DESTDIR)$(PREFIX)/bin
43 $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/bin
45 .PHONY: all clean distclean dep