Subversion Repositories HelenOS

Rev

Rev 3022 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3022 Rev 4055
Line 25... Line 25...
25
# Where to install the package. GNU-EFI will create and access
25
# Where to install the package. GNU-EFI will create and access
26
# lib and include under the root
26
# lib and include under the root
27
#
27
#
28
INSTALLROOT=/usr/local
28
INSTALLROOT=/usr/local
29
 
29
 
30
TOPDIR    := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
30
TOPDIR    := $(shell pwd)
31
 
31
 
32
ARCH	   = $(shell uname -m | sed s,i[3456789]86,ia32,)
32
ARCH       = ia64
33
INCDIR	   = -I. -I$(CDIR)/inc -I$(CDIR)/inc/$(ARCH) -I$(CDIR)/inc/protocol 
33
INCDIR     = -I. -I$(CDIR)/inc -I$(CDIR)/inc/$(ARCH) -I$(CDIR)/inc/protocol 
34
CPPFLAGS   = -DCONFIG_$(ARCH)
34
CPPFLAGS   = -DCONFIG_$(ARCH)
35
CFLAGS	   = -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants
35
CFLAGS     = -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -frename-registers -mfixed-range=f32-f127
36
LDFLAGS	   = -nostdlib
36
LDFLAGS    = -nostdlib
37
INSTALL	   = install
37
INSTALL    = install
38
 
-
 
39
GCC_VERSION=$(shell $(CROSS_COMPILE)$(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.')
-
 
40
 
38
 
41
#  prefix	=
-
 
42
CC		= $(prefix)gcc
39
CC         = $(prefix)gcc
43
AS		= $(prefix)as
40
AS         = $(prefix)as
44
LD		= $(prefix)ld
41
LD         = $(prefix)ld
45
AR		= $(prefix)ar
42
AR         = $(prefix)ar
46
RANLIB	= $(prefix)ranlib
43
RANLIB     = $(prefix)ranlib
47
OBJCOPY	= $(prefix)objcopy
44
OBJCOPY    = $(prefix)objcopy
48
OBJDUMP	= $(prefix)objdump
45
OBJDUMP    = $(prefix)objdump
49
 
-
 
50
 
-
 
51
ifneq ($(GCC_VERSION),2)
-
 
52
        CFLAGS += -frename-registers
-
 
53
endif
-
 
54
 
-
 
55
CFLAGS += -mfixed-range=f32-f127
-
 
56
 
-