Rev 3478 | Rev 4425 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3478 | Rev 3515 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | BFD_NAME = elf32-littlearm |
39 | BFD_NAME = elf32-littlearm |
40 | BFD_ARCH = arm |
40 | BFD_ARCH = arm |
41 | TARGET = arm-linux-gnu |
41 | TARGET = arm-linux-gnu |
42 | TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm/bin |
42 | TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm/bin |
43 | 43 | ||
- | 44 | ifeq ($(MACHINE), gxemul_testarm) |
|
- | 45 | DMACHINE = MACHINE_GXEMUL_TESTARM |
|
- | 46 | endif |
|
- | 47 | ||
- | 48 | ifeq ($(MACHINE), qemu_icp) |
|
- | 49 | DMACHINE = MACHINE_QEMU_ICP |
|
- | 50 | endif |
|
- | 51 | ||
44 | ifeq ($(COMPILER),gcc_native) |
52 | ifeq ($(COMPILER),gcc_native) |
45 | CC = gcc |
53 | CC = gcc |
46 | AS = as |
54 | AS = as |
47 | LD = ld |
55 | LD = ld |
48 | OBJCOPY = objcopy |
56 | OBJCOPY = objcopy |
Line 74... | Line 82... | ||
74 | SOURCES = \ |
82 | SOURCES = \ |
75 | main.c \ |
83 | main.c \ |
76 | boot.S \ |
84 | boot.S \ |
77 | asm.S \ |
85 | asm.S \ |
78 | mm.c \ |
86 | mm.c \ |
79 | print/gxemul.c \ |
87 | print/write.c \ |
80 | _components.c \ |
88 | _components.c \ |
81 | ../../../generic/printf.c \ |
89 | ../../../generic/printf.c \ |
82 | ../../../genarch/division.c |
90 | ../../../genarch/division.c |
83 | 91 | ||
84 | COMPONENTS = \ |
92 | COMPONENTS = \ |
Line 153... | Line 161... | ||
153 | 161 | ||
154 | %.o: %.S |
162 | %.o: %.S |
155 | $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
163 | $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
156 | 164 | ||
157 | %.o: %.c |
165 | %.o: %.c |
158 | $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ |
166 | $(CC) -D$(DMACHINE) $(DEFS) $(CFLAGS) -c $< -o $@ |