mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 20:19:44 +00:00
d1f3a23bfa
This adds a test case for Multiboot memory map in the tests/multiboot directory, where future i386 test kernels can be dropped. Because this requires an x86 build host and an installed 32 bit libgcc, the test is not part of a regular 'make check'. The reference output for the test is verified against test runs of the same multiboot kernel booted by some GRUB 0.97. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
19 lines
354 B
Makefile
19 lines
354 B
Makefile
CC=gcc
|
|
CCFLAGS=-m32 -Wall -Wextra -Werror -fno-stack-protector -nostdinc -fno-builtin
|
|
ASFLAGS=-m32
|
|
|
|
LD=ld
|
|
LDFLAGS=-melf_i386 -T link.ld
|
|
LIBS=$(shell $(CC) $(CCFLAGS) -print-libgcc-file-name)
|
|
|
|
all: mmap.elf
|
|
|
|
mmap.elf: start.o mmap.o libc.o
|
|
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CCFLAGS) -c -o $@ $^
|
|
|
|
%.o: %.S
|
|
$(CC) $(ASFLAGS) -c -o $@ $^
|