EMILE/second/Makefile

31 lines
741 B
Makefile
Raw Normal View History

2004-02-15 20:46:45 +00:00
#
#
# (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
#
#
2004-06-16 17:22:22 +00:00
#CPPFLAGS = -DVERSION="\"$(VERSION)\""
CPPFLAGS = -DVERSION="\"$(VERSION)\"" -DBANK_DUMP
CFLAGS = -Wno-multichar -O -m68030 -nostdlib -nodefaultlibs -Wall -Werror -fpic
2004-03-04 22:47:46 +00:00
ASFLAGS =
LS = ls
AWK = awk
2004-02-15 20:46:45 +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 \
misc.o glue.o enter_kernel030.o enter_kernel040.o bank.o arch.o \
2004-06-22 21:22:08 +00:00
load.o serial.o vga.o
2004-02-15 20:46:45 +00:00
second: second.o
$(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
$(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