source: trunk/Softwares/Basic_test.or32/Makefile.morpheo @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 1.9 KB
Line 
1#-----[ Usual commands ]----------------------------------------------------------
2RM                      = rm -fr
3MKDIR                   = mkdir -p
4ECHO                    = echo
5CCACHE                  =
6LS                      = ls
7TEST                    = test
8CAT                     = cat
9READ                    = read
10SED                     = sed
11MAKE                    = make -s
12CD                      = cd
13PWD                     = pwd
14
15#-----[ Directory ]---------------------------------------------------------------
16DIR_LDSCRIPT            = $(TOOLS)/newlib/libgloss/or32
17
18DIR_INCLUDE             = -I$(TOOLS)/newlib/newlib/libc/include/        \
19                          -I$(TOOLS)/newlib/libgloss/or32/include/
20DIR_LIBRARY             = -L$(TOOLS)/newlib/or32-elf/newlib/            \
21                          -L$(TOOLS)/newlib/or32-elf/libgloss/or32/     \
22                          -L$(TOOLS)/or1k/lib/gcc/or32-elf/3.4.4/
23
24#-----[ To the compilation ]------------------------------------------------------
25OPTIMIZE                = -O3 -fomit-frame-pointer -fdelayed-branch -mror -mcmov -msext -mhard-mul -msoft-div -msoft-float
26#Option :
27# -fomit-frame-pointer                  : n'utilise pas le pointeur de frame
28# -fdelayed-branch                      : utilise les delayed slot
29# ON            OFF
30# -mror         -mno-ror                : utilisation de l'instruction l.ror
31# -mcmov        -mno-cmov               : utilisation de l'instruction l.cmov
32# -msext        -mno-sext               : utilisation des instructions l.extXX
33# -mhard-mul    -msoft-mul              : utilisation du multiplieur materiel
34# -mhard-div    -msoft-div              : utilisation du diviseur materiel
35# -mhard-float  -msoft-float            : utilisation du flottant materiel
36# -msibcall     -mno-sibcall            : Enable sibcall optimization
37# -mlogue       -mno-logue              : Schedule pro/epi-logue.
38# -maj          -mno-aj                 : Use aligned jumps.
39
40# Tools
41CC                      = $(CCACHE) or32-elf-gcc
42AS                      =           or32-elf-as
43LD                      =           or32-elf-ld
44OBJDUMP                 =           or32-elf-objdump
45NM                      =           or32-elf-nm
46
47# Tools's option
48CC_OPT                  = $(DIR_INCLUDE) $(OPTIMIZE) -Wlong-long -D__or32__ -DHAVE_LIBC -D__DYNAMIC_REENT__
49# -DHAVE_LIBC
50AS_OPT                  =
51LD_OPT                  = -T$(DIR_LDSCRIPT)/or32.ld $(DIR_LIBRARY)  -lor32 -lc -lor32 -lc -lm -lgcc
52OBJDUMP_OPT             = -D
53NM_OPT                  = -n
Note: See TracBrowser for help on using the repository browser.