config.mk (921B)
1# Customize below to fit your system (run ./configure for automatic presets) 2 3# paths (unset $PCPREFIX to not install a pkg-config-file) 4DESTDIR = 5PREFIX = /usr/local 6INCPREFIX = $(PREFIX)/include 7LIBPREFIX = $(PREFIX)/lib 8MANPREFIX = $(PREFIX)/share/man 9PCPREFIX = $(LIBPREFIX)/pkgconfig 10 11# names 12ANAME = libgrapheme.a 13SONAME = libgrapheme.so.$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH) 14BINSUFFIX = 15 16# flags 17CPPFLAGS = -D_ISOC99_SOURCE 18CFLAGS = -std=c99 -Os -Wall -Wextra -Wpedantic 19LDFLAGS = -s 20 21BUILD_CPPFLAGS = $(CPPFLAGS) 22BUILD_CFLAGS = $(CFLAGS) 23BUILD_LDFLAGS = $(LDFLAGS) 24 25SHFLAGS = -fPIC -ffreestanding 26SOFLAGS = -shared -nostdlib -Wl,--soname=libgrapheme.so.$(VERSION_MAJOR).$(VERSION_MINOR) 27SOSYMLINK = true 28 29# tools (unset $LDCONFIG to not call ldconfig(1) after install/uninstall) 30CC = cc 31BUILD_CC = $(CC) 32AR = ar 33RANLIB = ranlib 34LDCONFIG = ldconfig 35SH = sh