EMILE/second/Makefile
Laurent Vivier 5db219863b Add vga.o
2004-06-22 21:22:08 +00:00

31 lines
741 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 serial.o vga.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