forked from sky-big/Linux-0.12
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.header
executable file
·38 lines (29 loc) · 1.28 KB
/
Makefile.header
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
# This file is the Makefile Header for every sub Makefile, which designed to
# simplfy the porting and maintaining operation
# author: falcon <[email protected]>
# update: 2008-10-29
# Makefile头文件
CCCOLOR="\033[34m"
LINKCOLOR="\033[34;1m"
SRCCOLOR="\033[33m"
BINCOLOR="\033[37;1m"
MAKECOLOR="\033[32;1m"
ENDCOLOR="\033[0m"
QUIET_CC = @printf ' %b %b\n' $(CCCOLOR)CC$(ENDCOLOR) $(SRCCOLOR)$@$(ENDCOLOR) 1>&2;
QUIET_LINK = @printf ' %b %b\n' $(LINKCOLOR)LINK$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR) 1>&2;
QUIET_INSTALL = @printf ' %b %b\n' $(LINKCOLOR)INSTALL$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR) 1>&2;
AS86 =$(QUIET_CC)as86 -0 -a
LD86 =$(QUIET_LINK)ld86 -0
AS = $(QUIET_CC)as --32
LD = $(QUIET_LINK)ld
#LDFLAGS = -m elf_i386 -x
LDFLAGS = -m elf_i386
CC = $(QUIET_CC)gcc
#CFLAGS = -g -m32 -fomit-frame-pointer -fstrength-reduce #-Wall
#CFLAGS = -g -m32 -finline-functions -fomit-frame-pointer -fstrength-reduce -fno-stack-protector -fno-builtin-memset -fno-builtin-memcpy #-Wall
#CFLAGS = -g -m32 -fstrength-reduce -fomit-frame-pointer -fno-stack-protector -fno-builtin
CFLAGS =-O0 -g3 -gdwarf-2 -m32 -fstrength-reduce -fomit-frame-pointer -fno-stack-protector -fno-builtin #-Wall
CPP = cpp -nostdinc
AR = $(QUIET_LINK)ar
CPP_DISPLAY = $(QUIET_CC)cpp -nostdinc
gcc_version=${(4.4)}