produce 68030 AND 68040 objects

This commit is contained in:
Laurent Vivier 2004-03-04 22:47:46 +00:00
parent ba5d1bc551
commit 233133127d

View File

@ -6,7 +6,7 @@
CPPFLAGS = -DKERNEL_ARGS="\"$(KERNEL_ARGS)\"" -DVERSION="\"$(VERSION)\""
CFLAGS = -Wno-multichar -O -m68030 -nostdlib -nodefaultlibs -Wall -Werror
ASFLAGS = -m68030
ASFLAGS =
LS = /bin/ls
AWK = /bin/awk
@ -18,14 +18,16 @@ KERNEL_SIZE=$(shell $(LS) -l $(KERNEL_BIN) | $(AWK) '{print $$5}')
ifeq ($(KERNEL_ARCH),PowerPC)
CPPFLAGS += -DTARGET_PPC
OBJS = head.o MMU_asm.o image.o console.o printf.o font_8x16.o memory.o \
MMU.o bootinfo.o misc.o glue.o bank.o arch.o
OBJS = head.o MMU030_asm.o MMU040_asm.o image.o console.o printf.o \
font_8x16.o memory.o MMU030.o MMU040.o bootinfo.o misc.o glue.o \
bank.o arch.o
else
ifeq ($(KERNEL_ARCH),Motorola)
CPPFLAGS += -DTARGET_M68K
OBJS = head.o MMU_asm.o image.o console.o printf.o font_8x16.o memory.o \
uncompress.o MMU.o bootinfo.o misc.o glue.o enter_kernel.o bank.o \
arch.o
OBJS = head.o MMU030_asm.o MMU040_asm.o image.o console.o printf.o \
font_8x16.o memory.o uncompress.o MMU030.o MMU040.o bootinfo.o \
misc.o glue.o \
enter_kernel030.o enter_kernel040.o bank.o arch.o
endif
endif
@ -46,8 +48,17 @@ image.o: main.o $(ZIPPED_KERNEL)
$(OBJCOPY) --add-section .image=$(ZIPPED_KERNEL) main.o image.o;
endif
.S.o:
$(AS) $(ASFLAGS) -o $@ $^
MMU030_asm.o: MMU030_asm.S
$(AS) $(ASFLAGS) -m68030 -o $@ $^
enter_kernel030.o: enter_kernel030.S
$(AS) $(ASFLAGS) -m68030 -o $@ $^
MMU040_asm.o: MMU040_asm.S
$(AS) $(ASFLAGS) -m68040 -o $@ $^
enter_kernel040.o: enter_kernel040.S
$(AS) $(ASFLAGS) -m68040 -o $@ $^
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $^