This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
pinentry-dmenu-custom/config.mk

33 lines
859 B
Makefile
Raw Permalink Normal View History

2022-09-28 09:39:54 +02:00
# Pinentry settings
VERSION = 0.1
2024-02-05 17:56:12 +01:00
BUGREPORT = https:\/\/github.com\/0x766F6964\/pinentry-dmenu
2022-09-28 09:39:54 +02:00
# Paths
PREFIX = /usr/local
2024-02-05 17:56:12 +01:00
MANPREFIX = $(PREFIX)/share/man
2022-09-28 09:39:54 +02:00
2023-05-31 00:48:34 +02:00
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
2022-09-28 09:39:54 +02:00
# Xinerama, comment if you don't want it
XINERAMALIBS = -lXinerama
XINERAMAFLAGS = -DXINERAMA
# Freetype
FREETYPELIBS = -lfontconfig -lXft
FREETYPEINC = /usr/include/freetype2
# OpenBSD (uncomment)
2024-02-05 17:56:12 +01:00
#FREETYPEINC = $(X11INC)/freetype2
2022-09-28 09:39:54 +02:00
# Includes and libs
2024-02-05 17:56:12 +01:00
INCS = -I$(X11INC) -I$(FREETYPEINC)
LIBS = -lassuan -lgpg-error -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS)
2022-09-28 09:39:54 +02:00
# Flags
2024-02-05 17:56:12 +01:00
CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS) -DPACKAGE_VERSION=\"$(VERSION)\" -DPACKAGE_BUGREPORT=\"$(BUGREPORT)\" -DHAVE_MLOCK
CFLAGS = -std=c99 -pedantic -Wall -Os
LDFLAGS = -s
2022-09-28 09:39:54 +02:00
# Compiler and linker
CC = cc