sbase/config.mk
FRIGN d383612450 Add some info to config.mk
glibc breaks tools on 32bit systems due to a design flaw not allowing
64bit file offsets and only doing so with a cryptic flag.

Also, make sure to tell users about -lrt, which might be needed on
some systems.
2015-06-05 00:23:02 +01:00

19 lines
392 B
Makefile

# sbase version
VERSION = 0.0
# paths
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
CC = cc
LD = $(CC)
AR = ar
RANLIB = ranlib
# for NetBSD add -D_NETBSD_SOURCE
# for glibc on 32bit add -D_FILE_OFFSET_BITS=64 or use something sane
# -lrt might be needed on some systems
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
CFLAGS = -std=c99 -Wall -pedantic
LDFLAGS = -s