com32/chain: make raw handover use total sectors info
[syslinux.git] / MCONFIG
blobc76b59171c2a9f38e68f95d1abeacbbc84314402
1 ## -*- makefile -*- -------------------------------------------------------
2 ##   
3 ##   Copyright 2008 H. Peter Anvin - All Rights Reserved
4 ##
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
17 # No builtin rules
18 MAKEFLAGS += -r
19 MAKE      += -r
21 BINDIR   = /usr/bin
22 SBINDIR  = /sbin
23 LIBDIR   = /usr/lib
24 DATADIR  = /usr/share
25 AUXDIR   = $(DATADIR)/syslinux
26 MANDIR   = /usr/man
27 INCDIR   = /usr/include
28 TFTPBOOT = /tftpboot
29 COM32DIR = $(AUXDIR)/com32
31 BOOTDIR     = /boot
32 EXTLINUXDIR = $(BOOTDIR)/extlinux
34 NASM     = nasm
35 NASMOPT  = -Ox
37 PERL     = perl
38 UPX      = upx
40 CHMOD    = chmod
42 CC       = gcc
43 gcc_ok   = $(shell tmpf=gcc_ok.$$$$.tmp; \
44                    if $(CC) $(GCCOPT) $(1) -c $(topdir)/dummy.c \
45                         -o $$tmpf 2>/dev/null ; \
46                    then echo '$(1)'; else echo '$(2)'; fi; \
47                    rm -f $$tmpf)
49 LD       = ld
50 OBJDUMP  = objdump
51 OBJCOPY  = objcopy
52 AR       = ar
53 NM       = nm
54 RANLIB   = ranlib
55 GZIPPROG = gzip
56 PNGTOPNM = pngtopnm
57 MCOPY    = mcopy
58 MFORMAT  = mformat
59 MKISOFS  = mkisofs
60 SED      = sed
61 WGET     = wget
63 com32    = $(topdir)/com32
65 # Common warnings we want for all gcc-generated code
66 GCCWARN := -W -Wall -Wstrict-prototypes
67 # Extremely useful variant for debugging...
68 #GCCWARN += -Wno-clobbered -Werror
70 # Common stanza to make gcc generate .*.d dependency files
71 MAKEDEPS = -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d
73 # Dependencies that exclude system headers; use whenever we use
74 # header files from the platform.
75 UMAKEDEPS = -Wp,-MT,$@,-MMD,$(dir $@).$(notdir $@).d
77 # Items that are only appropriate during development; this file is
78 # removed when tarballs are generated.
79 -include $(topdir)/MCONFIG.devel
81 # Local additions, like -DDEBUG can go here
82 -include $(topdir)/MCONFIG.local