1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
# install locations
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
# variables used during build
PLATFORM = openbsd
ARCH = x86_64
HARECFLAGS = -N "" -m .main
QBEFLAGS =
ASFLAGS =
LDLINKFLAGS = -z nobtcfi
CFLAGS = -g -std=c11 -D_XOPEN_SOURCE=700 -Iinclude \
-Wall -Wextra -Werror -pedantic -Wno-unused-parameter
LDFLAGS =
LIBS = -lm
# commands used by the build script
CC = cc
# OpenBSD: gas is in the binutils package. as from the base system is too old.
AS = gas
LD = cc
QBE = qbe
# build locations
HARECACHE = .cache
BINOUT = .bin
# variables that will be embedded in the binary with -D definitions
DEFAULT_TARGET = $(ARCH)
VERSION = $$(./scripts/version)
|