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