2004-02-15 20:46:45 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2004-05-19 00:09:58 +00:00
|
|
|
CPPFLAGS = -DVERSION="\"$(VERSION)\""
|
2004-05-24 23:59:13 +00:00
|
|
|
CFLAGS = -Wno-multichar -O -m68030 -nostdlib -nodefaultlibs -Wall -Werror -fpic
|
2004-03-04 22:47:46 +00:00
|
|
|
ASFLAGS =
|
2004-05-11 23:02:18 +00:00
|
|
|
LS = ls
|
|
|
|
AWK = awk
|
2004-02-15 20:46:45 +00:00
|
|
|
|
2004-02-26 20:12:01 +00:00
|
|
|
ifeq ($(KERNEL_ARCH),PowerPC)
|
|
|
|
CPPFLAGS += -DTARGET_PPC
|
2004-06-01 22:00:21 +00:00
|
|
|
OBJS = head.o MMU030_asm.o MMU040_asm.o main.o console.o printf.o \
|
2004-03-04 22:47:46 +00:00
|
|
|
font_8x16.o memory.o MMU030.o MMU040.o bootinfo.o misc.o glue.o \
|
2004-06-01 22:00:21 +00:00
|
|
|
bank.o arch.o load.o
|
2004-02-26 20:12:01 +00:00
|
|
|
else
|
|
|
|
ifeq ($(KERNEL_ARCH),Motorola)
|
|
|
|
CPPFLAGS += -DTARGET_M68K
|
2004-06-01 22:00:21 +00:00
|
|
|
OBJS = head.o MMU030_asm.o MMU040_asm.o main.o console.o printf.o \
|
2004-03-04 22:47:46 +00:00
|
|
|
font_8x16.o memory.o uncompress.o MMU030.o MMU040.o bootinfo.o \
|
2004-06-01 22:00:21 +00:00
|
|
|
misc.o glue.o enter_kernel030.o enter_kernel040.o bank.o arch.o \
|
|
|
|
load.o
|
2004-02-26 20:12:01 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2004-02-15 20:46:45 +00:00
|
|
|
second: second.o
|
2004-05-24 23:59:13 +00:00
|
|
|
$(OBJCOPY) -j .text -j .data -j .rodata -j .got \
|
2004-02-15 20:46:45 +00:00
|
|
|
-O binary second.o second
|
|
|
|
|
|
|
|
second.o: $(OBJS) ld.script
|
2004-06-01 22:00:21 +00:00
|
|
|
$(LD) -T ld.script -o second.o $(OBJS)
|
2004-02-15 20:46:45 +00:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $^
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f second *.o
|