syslinux/mk/syslinux.mk
<<
>>
Prefs
   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
  18MAKEFLAGS += -r
  19MAKE      += -r
  20
  21BINDIR   = /usr/bin
  22SBINDIR  = /sbin
  23LIBDIR   = /usr/lib
  24DATADIR  = /usr/share
  25AUXDIR   = $(DATADIR)/syslinux
  26DIAGDIR  = $(AUXDIR)/diag
  27MANDIR   = /usr/man
  28INCDIR   = /usr/include
  29TFTPBOOT = /tftpboot
  30COM32DIR = $(AUXDIR)/com32
  31
  32BOOTDIR     = /boot
  33EXTLINUXDIR = $(BOOTDIR)/extlinux
  34
  35NASM     = nasm
  36NASMOPT  = -Ox
  37
  38PERL     = perl
  39UPX      = upx
  40
  41CHMOD    = chmod
  42
  43CC       = gcc
  44gcc_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; \
  48                   rm -f $$tmpf)
  49
  50LD       = ld
  51OBJDUMP  = objdump
  52OBJCOPY  = objcopy
  53AR       = ar
  54NM       = nm
  55RANLIB   = ranlib
  56STRIP    = strip
  57GZIPPROG = gzip
  58XZ       = xz
  59PNGTOPNM = pngtopnm
  60MCOPY    = mcopy
  61MFORMAT  = mformat
  62MKISOFS  = mkisofs
  63SED      = sed
  64WGET     = wget
  65
  66com32    = $(topdir)/com32
  67
  68# Common warnings we want for all gcc-generated code
  69GCCWARN := -W -Wall -Wstrict-prototypes
  70# Extremely useful variant for debugging...
  71#GCCWARN += -Wno-clobbered -Werror
  72
  73# Common stanza to make gcc generate .*.d dependency files
  74MAKEDEPS = -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d
  75
  76# Dependencies that exclude system headers; use whenever we use
  77# header files from the platform.
  78UMAKEDEPS = -Wp,-MT,$@,-MMD,$(dir $@).$(notdir $@).d
  79
  80# Items that are only appropriate during development; this file is
  81# removed when tarballs are generated.
  82-include $(MAKEDIR)/devel.mk
  83
  84# Local additions, like -DDEBUG can go here
  85-include $(MAKEDIR)/local.mk
  86
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.