limine/test/Makefile

21 lines
675 B
Makefile
Raw Normal View History

CC = cc
CFLAGS = -O2
2021-03-02 20:39:39 +03:00
LD = cc
QEMU = qemu-system-x86_64
QEMUFLAGS = -m 1G -enable-kvm -cpu host
LDINTERNALFLAGS := -Tlinker.ld -nostdlib -static-pie -pie -fno-pic -fpie -z max-page-size=0x1000
INTERNALCFLAGS := -I../stivale -I. -ffreestanding -fno-stack-protector \
2021-03-29 19:50:26 +03:00
-fno-pic -fpie -fomit-frame-pointer -mno-red-zone -mno-80387 -mno-mmx -mno-3dnow -mno-sse \
-mno-sse2 -masm=intel
2021-03-02 20:39:39 +03:00
all: test.elf
2021-03-02 20:39:39 +03:00
test.elf: stivale.o stivale2.o e9print.o
$(LD) $(LDINTERNALFLAGS) stivale.o stivale2.o e9print.o -o test.elf
%.o: %.c
$(CC) $(CFLAGS) $(INTERNALCFLAGS) -c $< -o $@
clean:
2021-03-04 07:30:31 +03:00
rm -rf test.elf stivale.o stivale2.o e9print.o