You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

5 years ago
  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. #
  15. PROGRAM = ifdtool
  16. CC = gcc
  17. INSTALL = /usr/bin/install
  18. PREFIX = /usr/local
  19. CFLAGS = -O2 -g -Wall -W -Werror -I../commonlib/include
  20. LDFLAGS =
  21. OBJS = ifdtool.o
  22. all: dep $(PROGRAM)
  23. $(PROGRAM): $(OBJS)
  24. $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
  25. clean:
  26. rm -f $(PROGRAM) *.o *~ .dependencies
  27. distclean: clean
  28. dep:
  29. @$(CC) $(CFLAGS) -MM *.c > .dependencies
  30. %.o: %.c
  31. $(CC) $(CFLAGS) -c -o $@ $<
  32. install: $(PROGRAM)
  33. mkdir -p $(DESTDIR)$(PREFIX)/bin
  34. $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/bin
  35. .PHONY: all clean distclean dep