Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
66 | pj | 1 | #makefile for an old gcc version. maybe obsolete |
2 | |||
2 | pj | 3 | CC = gcc |
4 | AS = gcc |
||
5 | LD = ld |
||
6 | AR = ar |
||
7 | INCL = $(BASE) |
||
8 | VMINCL = -I$(BASE)/include/i386 -I$(BASE)/include -I$(BASE)/include/sys/ll |
||
9 | LIB_PATH = $(BASE)/lib/ |
||
10 | LIB_DIR = $(BASE)\lib |
||
11 | |||
12 | C_OPT = -Wall -O -finline-functions -fno-builtin -nostdinc -D__GNU__ -D__OLD_GNU__ -I$(INCL) |
||
13 | ASM_OPT = -x assembler-with-cpp -D__GNU__ -I$(INCL) |
||
14 | LINK_OPT = -Bstatic -Ttext 0x320000 -oformat coff-go32 -s -nostartfiles -nostdlib -L$(LIB_PATH) |
||
15 | |||
16 | MKDIR = md |
||
17 | CP = copy |
||
18 | CAT = @type |
||
19 | RM = -del |
||
20 | |||
21 | # Common rules |
||
22 | %.o : %.s |
||
23 | $(REDIR) $(CC) $(ASM_OPT) $(A_OUTPUT) -c $< |
||
24 | %.o : %.c |
||
25 | $(REDIR) $(CC) $(C_OPT) $(C_OUTPUT) -c $< |