This repository has been archived on 2023-11-15. You can view files and clone it, but cannot push or open issues or pull requests.
feuille/config.mk
Tom MTT 8c30d271df feat: use paste size instead of NULL byte in order to write the paste
Previously, the pastes were written to disk until feuille encountered
a NULL byte. This is now fixed.

+ version bump.
2022-11-29 13:57:11 +01:00

30 lines
668 B
Makefile

# feuille version
VERSION = 1.19.0
# paths (customize them to fit your system)
PREFIX = /usr/local
MAN = $(PREFIX)/share/man
# includes and libs
INCS = -I/usr/include -I.
LIBS = -L/usr/lib -lc
# OpenBSD / FreeBSD (uncomment)
#MAN = $(PREFIX)/man
#INCS = -I/usr/share/include -I.
#LIBS = -L/usr/share/lib -lc
# compiler
CC = cc
# debug build
CFLAGS = -g -std=c99 -Wall -Wextra -Wpedantic -Wno-sign-compare -DVERSION=\"$(VERSION)\" -DDEBUG $(INCS)
LDFLAGS = -g $(LIBS)
# release build
CFLAGS$(DEBUG) = -std=c99 -Wall -Wextra -Wno-sign-compare -DVERSION=\"$(VERSION)\" -O3 $(INCS)
LDFLAGS$(DEBUG) = -s $(LIBS)
# static build (uncomment)
#LD_FLAGS += -static