init
This commit is contained in:
parent
d6a5dafd03
commit
643c6df5ef
4 changed files with 2360 additions and 0 deletions
17
Makefile
Normal file
17
Makefile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue