summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorcoast <coasteen@proton.me>2026-02-27 07:43:27 +0330
committercoast <coasteen@proton.me>2026-02-27 07:43:27 +0330
commitb02684445412f0707cce91c3989c2bbeb06ee602 (patch)
tree542dd38dcd7f3bfc9cd18f7614bca79d5b8e8102 /makefile
parentcb5e57dd373c1c06ec1030d71ed80933b7cb96bd (diff)
downloadchd-b02684445412f0707cce91c3989c2bbeb06ee602.tar.gz
chd-b02684445412f0707cce91c3989c2bbeb06ee602.tar.bz2
chd-b02684445412f0707cce91c3989c2bbeb06ee602.tar.xz
chd-b02684445412f0707cce91c3989c2bbeb06ee602.tar.zst
use xcb. add signal handling, FD_CLOEXEC on client fds, bind ACK replies; build: link -lxcb, silence write() warning
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 1 insertions, 11 deletions
diff --git a/makefile b/makefile
index 6a09f2a..50368b1 100644
--- a/makefile
+++ b/makefile
@@ -1,26 +1,18 @@
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
-
X11INC = /usr/local/include
X11LIB = /usr/local/lib
-
INCS = -I$(X11INC)
-LIBS = -L$(X11LIB) -lX11
-
+LIBS = -L$(X11LIB) -lX11 -lxcb
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -D_GNU_SOURCE
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os $(INCS) $(CPPFLAGS)
LDFLAGS = $(LIBS)
-
CC = cc
-
all: piss
-
piss: src/daemon.c
$(CC) $(CFLAGS) -o piss src/daemon.c $(LDFLAGS)
-
clean:
rm -f piss
-
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f piss $(DESTDIR)$(PREFIX)/bin
@@ -28,9 +20,7 @@ install: all
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
cp -f src/piss.1 $(DESTDIR)$(MANPREFIX)/man1/piss.1
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/piss.1
-
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/piss
rm -f $(DESTDIR)$(MANPREFIX)/man1/piss.1
-
.PHONY: all clean install uninstall