blob: 14aedd3ad3cb9a33dc2232fe99bb54b67818b7cc [file]
# Customize below to fit your system
# paths
PREFIX = /usr/local
INCPREFIX = $(PREFIX)/include
LIBPREFIX = $(PREFIX)/lib
MANPREFIX = $(PREFIX)/share/man
# flags
CPPFLAGS = -D_DEFAULT_SOURCE
CFLAGS = -std=c99 -Os -Wall -Wextra -Wpedantic
LDFLAGS = -s
BUILD_CPPFLAGS = $(CPPFLAGS)
BUILD_CFLAGS = $(CFLAGS)
BUILD_LDFLAGS = $(LDFLAGS)
SHFLAGS = -fPIC -ffreestanding
SOFLAGS = -shared -nostdlib -Wl,--soname=libgrapheme.so
# tools
CC = cc
BUILD_CC = $(CC)
AR = ar
RANLIB = ranlib
LDCONFIG = ldconfig # unset to not call ldconfig(1) after install/uninstall
SH = sh