Subversion Repositories shark

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
CC  = gcc
2
AS  = gcc
3
LD  = ld
4
AR  = ar
5
INCL   = $(BASE)
6
LIB_PATH    = $(BASE)/lib/
7
LIB_DIR  = $(BASE)/lib
8
 
41 pj 9
C_OPT =  -Wall -O -finline-functions -fno-builtin -nostdinc -D__LINUX__ -DMAIN=__kernel_init__ -I$(INCL)
2 pj 10
ASM_OPT =  -x assembler-with-cpp -D__LINUX__ -I$(INCL)
11
LINK_OPT = -Bstatic -Ttext 0x220000 -s -nostartfiles -nostdlib -L$(LIB_PATH)
12
 
13
MKDIR   = mkdir
14
CP	= cp
15
CAT	= cat
16
RM	= rm -f
17
RMDIR	= rm -rf
18
 
19
# Common rules
20
 
21
%.o : %.s
22
	$(REDIR) $(CC) $(ASM_OPT) -c $<
23
%.o : %.c
24
	$(REDIR) $(CC) $(C_OPT) -c $<
25
%.s : %.c
26
	$(REDIR) $(CC) $(C_OPT) -S $<
27