wall2pnm

Tool for saving wallpaper as PNM
git clone https://noxz.tech/git/wall2pnm.git
wall2pnm

config.mk
1# wall2pnm version
2VERSION = 0.1
3
4# paths
5PREFIX = /usr/local
6MANPREFIX = $(PREFIX)/share/man
7
8X11INC = /usr/X11R6/include
9X11LIB = /usr/X11R6/lib
10
11# includes and libs
12INCS = -I. -I/usr/include -I${X11INC}
13LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 -lXext
14
15# flags
16CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600
17CFLAGS = -Wall -Wno-format-truncation -pedantic -std=c99 ${INCS} ${CPPFLAGS}
18LDFLAGS = -s ${LIBS}
19STCFLAGS = $(CPPFLAGS) $(CFLAGS)
20STLDFLAGS = $(LDFLAGS)
21
22# compiler and linker
23CC = gcc