config.mk (601B)
1 # tisp version number 2 VERSION = 0.0.0 3 4 # paths 5 PREFIX = /usr/local 6 MANPREFIX = $(PREFIX)/share/man 7 8 # includes and libraries 9 INCS = -Iinclude 10 LIBS = -lm -ldl 11 12 # flags 13 CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=600 14 CFLAGS = -std=c99 -O3 -pedantic -Wall -fPIC $(INCS) $(CPPFLAGS) 15 LDFLAGS = -O3 -Wl,-rpath=$(DESTDIR)$(PREFIX)/lib/tisp $(LIBS) 16 17 # turn off debug mode by default 18 DEBUG ?= 0 19 20 # do not load tibs statically, use load procedure instead 21 # TODO include -ldl when on, enable (load) of shared libs 22 # CFLAGS += -DTIB_DYNAMIC 23 24 # compiler and linker 25 CC ?= cc