Rev 82 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
82 | pj | 1 | CPP = gcc |
2 | pj | 2 | CC = gcc |
3 | AS = gcc |
||
4 | LD = ld |
||
5 | AR = ar |
||
6 | |||
7 | |||
8 | INCL = $(BASE)/include |
||
45 | pj | 9 | LIB_PATH = $(BASE)/lib |
64 | pj | 10 | OSLIB = $(BASE)/oslib |
45 | pj | 11 | OSLIB_PATH = $(OSLIB)/lib |
2 | pj | 12 | LIB_DIR = $(BASE)/lib |
13 | |||
14 | LIBRARYPATHNAME= $(LIB_PATH)/lib$(LIBRARY).a |
||
15 | LIBRARYDIR= $(LIB_PATH) |
||
16 | LIBRARYOBJS= $(LIB_OBJS) |
||
17 | |||
18 | |||
19 | C_WARN = -Wimplicit-function-declaration -Wall |
||
67 | giacomo | 20 | C_FLAGS = -O -finline-functions -fno-builtin -nostdinc |
66 | pj | 21 | C_INC = -I$(INCL) $(OTHERINCL) -I$(OSLIB) |
2 | pj | 22 | C_MAC = -D__LINUX__ |
23 | |||
24 | ASM_WARN = |
||
25 | ASM_FLAGS = -x assembler-with-cpp |
||
66 | pj | 26 | ASM_INC = -I$(INCL) $(OTHERINCL) -I$(OSLIB) |
2 | pj | 27 | ASM_MAC = -D__LINUX__ |
28 | |||
45 | pj | 29 | LINK_OPT = -Bstatic -Ttext 0x220000 -s -nostartfiles -nostdlib -L$(LIB_PATH) -L$(OSLIB_PATH) |
2 | pj | 30 | |
31 | C_OPT = $(C_DEF) $(C_WARN) $(C_INC) $(C_MAC) $(C_FLAGS) |
||
32 | C_OUTPUT = -o $*.o |
||
33 | |||
34 | ASM_OPT = $(ASM_DEF) $(ASM_WARN) $(ASM_INC) $(ASM_MAC) $(ASM_FLAGS) |
||
35 | ASM_OUTPUT = -o $*.o |
||
36 | |||
37 | MKDIR = mkdir |
||
38 | CP = cp |
||
39 | CAT = cat |
||
40 | RM = rm -f |
||
41 | CD = cd |
||
42 | |||
43 | # Common rules |
||
44 | |||
45 | %.o : %.s |
||
48 | pj | 46 | $(REDIR) $(CC) $(ASM_OPT) $(ASM_OUTPUT) -c $< |
2 | pj | 47 | %.o : %.c |
48 | $(REDIR) $(CC) $(C_OPT) $(C_OUTPUT) -c $< |
||
49 | %.s : %.c |
||
50 | $(REDIR) $(CC) $(C_OPT) $(C_OUTPUT) -S $< |
||
82 | pj | 51 | %.o : %.cpp |
52 | $(REDIR) $(CPP) $(C_OPT) $(C_OUTPUT) -c $< |