Rev 41 | Rev 145 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
CC = gcc
AS = gcc
LD = ld
AR = ar
INCL = $(BASE)
LIB_PATH = $(BASE)/lib/
LIB_DIR = $(BASE)\lib
C_OPT = -Wall -O -fno-builtin -nostdinc -D__GNU__ -I$(INCL) -DMAIN=__kernel_init__
ASM_OPT = -x assembler-with-cpp -D__GNU__ -I$(INCL)
LINK_OPT = -T $(BASE)/mk/os.x -Bstatic -Ttext 0x320000 -oformat coff-go32 -s -nostartfiles -nostdlib -L$(LIB_PATH)
MKDIR = md
CP = copy
CAT = @type
RM = -del
RMDIR = -deltree
# Common rules
%.o : %.s
$(REDIR) $(CC) $(ASM_OPT) -c $<
%.o : %.c
$(REDIR) $(CC) $(C_OPT) -c $<