Subversion Repositories shark

Rev

Rev 2 | Go to most recent revision | 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
VMINCL  = -I$(BASE)/include/i386 -I$(BASE)/include -I$(BASE)/include/sys/ll
7
LIB_PATH    = $(BASE)/lib/
8
LIB_DIR  = $(BASE)\lib
9
 
10
C_OPT =  -Wall -O -finline-functions -fno-builtin -nostdinc -D__GNU__ -D__OLD_GNU__ -I$(INCL)
11
ASM_OPT =  -x assembler-with-cpp -D__GNU__ -I$(INCL)
12
LINK_OPT = -Bstatic -Ttext 0x320000 -oformat coff-go32 -s -nostartfiles -nostdlib -L$(LIB_PATH)
13
 
14
MKDIR	= md
15
CP	= copy
16
CAT	= @type
17
RM	= -del
18
 
19
# Common rules
20
%.o : %.s
21
	$(REDIR) $(CC) $(ASM_OPT) $(A_OUTPUT) -c $<
22
%.o : %.c
23
	$(REDIR) $(CC) $(C_OPT) $(C_OUTPUT) -c $<