Subversion Repositories shark

Rev

Rev 90 | 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
 
93 giacomo 9
# Linux.mk for gcc 2.x
10
 
11
C_OPT =  -Wall -O -finline-functions -fno-builtin -nostdinc -D__LINUX__ -DMAIN=__kernel_init__ -I$(INCL)
2 pj 12
ASM_OPT =  -x assembler-with-cpp -D__LINUX__ -I$(INCL)
13
LINK_OPT = -Bstatic -Ttext 0x220000 -s -nostartfiles -nostdlib -L$(LIB_PATH)
14
 
15
MKDIR   = mkdir
16
CP	= cp
17
CAT	= cat
18
RM	= rm -f
19
RMDIR	= rm -rf
20
 
21
# Common rules
22
 
23
%.o : %.s
24
	$(REDIR) $(CC) $(ASM_OPT) -c $<
25
%.o : %.c
26
	$(REDIR) $(CC) $(C_OPT) -c $<
27
%.s : %.c
28
	$(REDIR) $(CC) $(C_OPT) -S $<
29