10 lines
296 B
Makefile
10 lines
296 B
Makefile
ARCH ?= x86_64
|
|
|
|
CFLAGS := -ffreestanding -Wall -Wextra -g -fcommon -nostdinc
|
|
|
|
CURRENT_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
include $(CURRENT_DIR)/arch/$(ARCH)/$(ARCH).mk
|
|
|
|
LDFLAGS += -nostdlib -static $(shell $(CC) -print-libgcc-file-name) -T $(CURRENT_DIR)/arch/$(ARCH)/link.ld
|