Merge branch 'ctrl-mbr'
[profile/ivi/syslinux.git] / MCONFIG
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.
10 ##
11 ## -----------------------------------------------------------------------
12
13 ##
14 ## Common configurables
15 ##
16
17 # No builtin rules
18 MAKEFLAGS += -r
19 MAKE      += -r
20
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
30
31 BOOTDIR     = /boot
32 EXTLINUXDIR = $(BOOTDIR)/extlinux
33
34 NASM     = nasm
35 NASMOPT  = -O9999
36
37 PERL     = perl
38
39 CHMOD    = chmod
40
41 CC       = gcc
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; \
45                    rm -f $$tmpf)
46
47 LD       = ld
48 OBJDUMP  = objdump
49 OBJCOPY  = objcopy
50 AR       = ar
51 NM       = nm
52 RANLIB   = ranlib
53 GZIPPROG = gzip
54 PNGTOPNM = pngtopnm
55
56 com32    = $(topdir)/com32