Details | 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 | |||
6 | |||
7 | INCL = $(BASE)/include |
||
8 | LIB_PATH = $(BASE)/lib/ |
||
9 | LIB_DIR = $(BASE)/lib |
||
10 | |||
11 | LIBRARYPATHNAME= $(LIB_PATH)/lib$(LIBRARY).a |
||
12 | LIBRARYDIR= $(LIB_PATH) |
||
13 | LIBRARYOBJS= $(LIB_OBJS) |
||
14 | |||
15 | |||
16 | C_WARN = -Wimplicit-function-declaration -Wall |
||
17 | C_FLAGS = -O -finline-functions -fno-builtin -nostdinc |
||
18 | C_INC = -I$(INCL) $(OTHERINCL) |
||
19 | C_MAC = -D__LINUX__ |
||
20 | |||
21 | ASM_WARN = |
||
22 | ASM_FLAGS = -x assembler-with-cpp |
||
23 | ASM_INC = -I$(INCL) |
||
24 | ASM_MAC = -D__LINUX__ |
||
25 | |||
26 | LINK_OPT = -Bstatic -Ttext 0x220000 -s -nostartfiles -nostdlib -L$(LIB_PATH) |
||
27 | |||
28 | C_OPT = $(C_DEF) $(C_WARN) $(C_INC) $(C_MAC) $(C_FLAGS) |
||
29 | C_OUTPUT = -o $*.o |
||
30 | |||
31 | ASM_OPT = $(ASM_DEF) $(ASM_WARN) $(ASM_INC) $(ASM_MAC) $(ASM_FLAGS) |
||
32 | ASM_OUTPUT = -o $*.o |
||
33 | |||
34 | MKDIR = mkdir |
||
35 | CP = cp |
||
36 | CAT = cat |
||
37 | RM = rm -f |
||
38 | CD = cd |
||
39 | |||
40 | # Common rules |
||
41 | |||
42 | %.o : %.s |
||
43 | $(REDIR) $(CC) $(ASM_OPT) $(A_OUTPUT) -c $< |
||
44 | %.o : %.c |
||
45 | $(REDIR) $(CC) $(C_OPT) $(C_OUTPUT) -c $< |
||
46 | %.s : %.c |
||
47 | $(REDIR) $(CC) $(C_OPT) $(C_OUTPUT) -S $< |
||
48 |