mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-13 15:05:05 +00:00
31 lines
726 B
Makefile
31 lines
726 B
Makefile
#
|
|
#
|
|
# (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
#
|
|
#
|
|
|
|
#CPPFLAGS = -DVERSION="\"$(VERSION)\""
|
|
CPPFLAGS = -DVERSION="\"$(VERSION)\"" -DBANK_DUMP
|
|
CFLAGS = -Wno-multichar -O -m68030 -nostdlib -nodefaultlibs -Wall -Werror -fpic
|
|
ASFLAGS =
|
|
LS = ls
|
|
AWK = awk
|
|
|
|
OBJS = head.o MMU030_asm.o MMU040_asm.o main.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 \
|
|
load.o
|
|
|
|
second: second.o
|
|
$(OBJCOPY) -j .text -j .data -j .rodata -j .got \
|
|
-O binary second.o second
|
|
|
|
second.o: $(OBJS) ld.script
|
|
$(LD) -T ld.script -o second.o $(OBJS)
|
|
|
|
.c.o:
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $^
|
|
|
|
clean:
|
|
rm -f second *.o
|