summaryrefslogtreecommitdiff
path: root/defaults.mk
blob: 585e9ab9a0223abefc2f27575b363728371025f8 (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