blob: 11ce9f41568c8f7bc670005b369dd1a10756191f (
plain) (
tree)
|
|
TARGET_MACHINE = x86_64
TARGET_OS = jove
TARGET_TRIPLET = $(TARGET_MACHINE)-$(TARGET_OS)
TARGET_BOOTLOADER = limine
CFLAGS = \
-ffreestanding \
-mno-sse \
-nostdlib \
-fno-pie \
-fno-pic \
-g \
-D$(TARGET_MACHINE) \
-I.
LDFLAGS = -nostdlib \
-z max-page-size=0x1000 \
-T link/$(TARGET_TRIPLET).ld
ifeq "$(TARGET_MACHINE)" "x86_64"
CFLAGS += -mno-red-zone \
-mcmodel=kernel \
-MMD
endif
|