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