41,6 → 41,14 |
TARGET = arm-linux-gnu |
TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm/bin |
|
ifeq ($(MACHINE), gxemul_testarm) |
DMACHINE = MACHINE_GXEMUL_TESTARM |
endif |
|
ifeq ($(MACHINE), qemu_icp) |
DMACHINE = MACHINE_QEMU_ICP |
endif |
|
ifeq ($(COMPILER),gcc_native) |
CC = gcc |
AS = as |
76,7 → 84,7 |
boot.S \ |
asm.S \ |
mm.c \ |
print/gxemul.c \ |
print/write.c \ |
_components.c \ |
../../../generic/printf.c \ |
../../../genarch/division.c |
155,4 → 163,4 |
$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
|
%.o: %.c |
$(CC) $(DEFS) $(CFLAGS) -c $< -o $@ |
$(CC) -D$(DMACHINE) $(DEFS) $(CFLAGS) -c $< -o $@ |