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
26 DIAGDIR = $(AUXDIR)/diag
30 COM32DIR = $(AUXDIR)/com32
33 EXTLINUXDIR = $(BOOTDIR)/extlinux
44 gcc_ok = $(shell tmpf=gcc_ok.$$$$.tmp; \
45 if $(CC) $(GCCOPT) $(1) -c $(topdir)/dummy.c \
46 -o $$tmpf 2>/dev/null ; \
47 then echo '$(1)'; else echo '$(2)'; fi; \
66 com32 = $(topdir)/com32
68 # Common warnings we want for all gcc-generated code
69 GCCWARN := -W -Wall -Wstrict-prototypes
70 # Extremely useful variant for debugging...
71 #GCCWARN += -Wno-clobbered -Werror
73 # Common stanza to make gcc generate .*.d dependency files
74 MAKEDEPS = -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d
76 # Dependencies that exclude system headers; use whenever we use
77 # header files from the platform.
78 UMAKEDEPS = -Wp,-MT,$@,-MMD,$(dir $@).$(notdir $@).d
80 # Items that are only appropriate during development; this file is
81 # removed when tarballs are generated.
82 -include $(MAKEDIR)/devel.mk
84 # Local additions, like -DDEBUG can go here
85 -include $(MAKEDIR)/local.mk