File: Make.defaults

package info (click to toggle)
gnu-efi 3.0a-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 772 kB
  • ctags: 4,113
  • sloc: ansic: 10,304; asm: 312; makefile: 114
file content (66 lines) | stat: -rw-r--r-- 1,915 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
#  Copyright (C) 1999-2001 Hewlett-Packard Co.
#	Contributed by David Mosberger <davidm@hpl.hp.com>
#	Contributed by Stephane Eranian <eranian@hpl.hp.com>
#
# This file is part of the gnu-efi package.
#
#  GNU-EFI is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2, or (at your option)
#  any later version.
#
#  GNU-EFI is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with GNU-EFI; see the file COPYING.  If not, write to the Free
#  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#  02111-1307, USA.
#

#
# Where to install the package. GNU-EFI will create and access
# lib and include under the root
#
INSTALLROOT=/usr/local

TOPDIR    := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)

ARCH	   = $(shell uname -m | sed s,i[3456789]86,ia32,)
INCDIR	   = -I. -I$(CDIR)/inc -I$(CDIR)/inc/$(ARCH) -I$(CDIR)/inc/protocol 
CPPFLAGS   = -DCONFIG_$(ARCH)
CFLAGS	   = -O2 -fpic -Wall -fshort-wchar
LDFLAGS	   = -nostdlib
INSTALL	   = install


ifeq ($(ARCH),ia64)
  prefix	= /usr/bin/
  CC		= $(prefix)gcc
  AS		= $(prefix)as
  LD		= $(prefix)ld
  AR		= $(prefix)ar
  RANLIB	= $(prefix)ranlib
  OBJCOPY	= $(prefix)objcopy

GCC_VERSION=$(shell $(CROSS_COMPILE)$(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.')

ifneq ($(GCC_VERSION),2)
        CFLAGS += -frename-registers
endif

else
 ifeq ($(ARCH),ia32)
  prefix	= /opt/gcc3/bin/
  CC		= $(prefix)gcc
  AS		= $(prefix)as
  LD		= $(prefix)ld
  AR		= $(prefix)ar
  RANLIB	= $(prefix)ranlib
  OBJCOPY	= $(prefix)objcopy
 endif
endif