Rev 112 | 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 | |||
112 | giacomo | 9 | C_OPT = -Wall -O -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 |
||
145 | giacomo | 14 | CP = cp |
2 | pj | 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 $< |