summaryrefslogtreecommitdiff
path: root/defaults.mk
blob: 2cc7ac1c463004f3e040b26fed78eadfb318ab43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# vim: set ft=make:ts=4:sw=4:nowrap

ARCH := x86_64
ABI := elf
TARGET := $(ARCH)-$(ABI)
CC := clang
CXX := clang++
AS := clang
LD := ld.bfd
OBJCOPY := objcopy

CFLAGS += -ffreestanding -mno-red-zone -ggdb -std=c2x \
          -Wall -Wextra -Werror -fno-stack-protector \
	  -Wpedantic

CXXFLAGS += -ffreestanding -mno-red-zone -ggdb \
	    -Wall -Wextra -Werror -fno-stack-protector

LDFLAGS += -nostdlib