Subversion Repositories HelenOS

Rev

Rev 2726 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2726 Rev 2738
Line 36... Line 36...
36
LDFLAGS	   = -nostdlib
36
LDFLAGS	   = -nostdlib
37
INSTALL	   = install
37
INSTALL	   = install
38
 
38
 
39
GCC_VERSION=$(shell $(CROSS_COMPILE)$(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.')
39
GCC_VERSION=$(shell $(CROSS_COMPILE)$(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.')
40
 
40
 
41
ifeq ($(ARCH),ia64)
-
 
42
  prefix	=
41
#  prefix	=
43
  CC		= $(prefix)gcc
42
CC		= $(prefix)gcc
44
  AS		= $(prefix)as
43
AS		= $(prefix)as
45
  LD		= $(prefix)ld
44
LD		= $(prefix)ld
46
  AR		= $(prefix)ar
45
AR		= $(prefix)ar
47
  RANLIB	= $(prefix)ranlib
46
RANLIB	= $(prefix)ranlib
48
  OBJCOPY	= $(prefix)objcopy
47
OBJCOPY	= $(prefix)objcopy
-
 
48
OBJDUMP	= $(prefix)objdump
49
 
49
 
50
 
50
 
51
ifneq ($(GCC_VERSION),2)
51
ifneq ($(GCC_VERSION),2)
52
        CFLAGS += -frename-registers
52
        CFLAGS += -frename-registers
53
endif
53
endif
54
 
54
 
55
CFLAGS += -mfixed-range=f32-f127
55
CFLAGS += -mfixed-range=f32-f127
56
 
56
 
57
else
-
 
58
 ifeq ($(ARCH),ia32)
-
 
59
#
-
 
60
# gcc-3.x is required
-
 
61
#
-
 
62
  prefix	= 
-
 
63
  ifneq ($(GCC_VERSION),2)
-
 
64
    CC = $(prefix)gcc
-
 
65
  else
-
 
66
    CC = $(prefix)gcc3 #must have gcc 3.x
-
 
67
  endif
-
 
68
  AS		= $(prefix)as
-
 
69
  LD		= $(prefix)ld
-
 
70
  AR		= $(prefix)ar
-
 
71
  RANLIB	= $(prefix)ranlib
-
 
72
  OBJCOPY	= $(prefix)objcopy
-
 
73
 endif
-
 
74
endif
-
 
75
 
-