1 ## -*- makefile -*- -------------------------------------------------------
3 ## Copyright 2008 H. Peter Anvin - All Rights Reserved
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
8 ## Boston MA 02110-1301, USA; either version 2 of the License, or
9 ## (at your option) any later version; incorporated herein by reference.
11 ## -----------------------------------------------------------------------
14 ## Common configurables
25 AUXDIR = $(DATADIR)/syslinux
29 COM32DIR = $(AUXDIR)/com32
32 EXTLINUXDIR = $(BOOTDIR)/extlinux
42 gcc_ok = $(shell tmpf=gcc_ok.$$$$.tmp; \
43 if $(CC) $(1) -c $(topdir)/dummy.c -o $$tmpf 2>/dev/null ; \
44 then echo '$(1)'; else echo '$(2)'; fi; \
56 com32 = $(topdir)/com32
58 # Common stanza to make gcc generate .*.d dependency files
59 MAKEDEPS = -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d
61 # Dependencies that exclude system headers; use whenever we use
62 # header files from the platform.
63 UMAKEDEPS = -Wp,-MT,$@,-MMD,$(dir $@).$(notdir $@).d