Rev 40 | 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__GNU__ -I$(INCL) -DMAIN=__kernel_init__ |
2 | pj | 10 | ASM_OPT = -x assembler-with-cpp -D__GNU__ -I$(INCL) |
40 | pj | 11 | LINK_OPT = -T $(BASE)/mk/os.x -Bstatic -Ttext 0x320000 -oformat coff-go32 -s -nostartfiles -nostdlib -L$(LIB_PATH) |
2 | pj | 12 | |
13 | MKDIR = md |
||
14 | CP = copy |
||
15 | CAT = @type |
||
16 | RM = -del |
||
17 | RMDIR = -deltree |
||
18 | |||
19 | # Common rules |
||
20 | %.o : %.s |
||
21 | $(REDIR) $(CC) $(ASM_OPT) -c $< |
||
22 | %.o : %.c |
||
23 | $(REDIR) $(CC) $(C_OPT) -c $< |