This commit is contained in:
Armin 2026-11-27 00:10:52 +01:00
commit 643c6df5ef
4 changed files with 2360 additions and 0 deletions

17
Makefile Normal file
View file

@ -0,0 +1,17 @@
CC ?= cc
CFLAGS ?= -O2 -Wall -Wextra -Wpedantic -pthread $(shell pkg-config --cflags ncurses 2>/dev/null)
LDLIBS ?= -pthread $(shell pkg-config --libs ncurses 2>/dev/null || echo -lncurses)
HAVE_OPENSSL := $(shell pkg-config --exists openssl && echo yes)
ifeq ($(HAVE_OPENSSL),yes)
CFLAGS += -DUSE_OPENSSL $(shell pkg-config --cflags openssl)
LDLIBS += $(shell pkg-config --libs openssl)
endif
irc9: irc9.c
$(CC) $(CFLAGS) -D_DARWIN_C_SOURCE -o $@ $< $(LDLIBS)
clean:
rm -f irc9
.PHONY: clean