nbd-server: do not exit on failed memory allocation
[qemu.git] / tests / multiboot / Makefile
blob36f01dc647761d39c7b07c6ac2b3ba69d018e50d
1 CC=gcc
2 CCFLAGS=-m32 -Wall -Wextra -Werror -fno-stack-protector -nostdinc -fno-builtin
3 ASFLAGS=-m32
5 LD=ld
6 LDFLAGS=-melf_i386 -T link.ld
7 LIBS=$(shell $(CC) $(CCFLAGS) -print-libgcc-file-name)
9 all: mmap.elf modules.elf
11 mmap.elf: start.o mmap.o libc.o
12 $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
14 modules.elf: start.o modules.o libc.o
15 $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
17 %.o: %.c
18 $(CC) $(CCFLAGS) -c -o $@ $^
20 %.o: %.S
21 $(CC) $(ASFLAGS) -c -o $@ $^