Subversion Repositories shark

Rev

Rev 306 | Rev 332 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
311 giacomo 1
include $(BASE)/../shark.cfg
2
 
2 pj 3
CC  = gcc
4
AS  = gcc
5
LD  = ld
6
AR  = ar
7
INCL   = $(BASE)
8
LIB_PATH    = $(BASE)/lib/
9
LIB_DIR  = $(BASE)\lib
10
 
311 giacomo 11
ifeq ($(TSC),TRUE)
12
CFG_OPT = -D__TSC__
13
ifeq ($(APIC),TRUE)
14
CFG_OPT += -D__APIC__
15
endif
16
endif
17
 
18
C_OPT =  -Wall -O -fno-builtin -nostdinc $(CFG_OPT) -D__GNU__ -I$(INCL) -DMAIN=__kernel_init__
19
ASM_OPT =  -x assembler-with-cpp $(CFG_OPT) -D__GNU__ -I$(INCL)
40 pj 20
LINK_OPT = -T $(BASE)/mk/os.x -Bstatic -Ttext 0x320000 -oformat coff-go32 -s -nostartfiles -nostdlib -L$(LIB_PATH)
2 pj 21
 
22
MKDIR	= md
145 giacomo 23
CP	= cp
2 pj 24
CAT	= @type
25
RM	= -del
26
RMDIR	= -deltree
27
 
28
# Common rules
29
%.o : %.s
30
	$(REDIR) $(CC) $(ASM_OPT) -c $<
31
%.o : %.c
32
	$(REDIR) $(CC) $(C_OPT) -c $<