aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: f82d2069465ca17e356cd8447088c6f0c02dfe36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# SPDX-License-Identifier: CC0-1.0

BIN = irc

# TODO: Don't use weird GCC extensions
CFLAGS = -std=c99 -Os -D_POSIX_C_SOURCE=201112 -D_GNU_SOURCE -D_XOPEN_CURSES -D_XOPEN_SOURCE_EXTENDED=1 -D_DEFAULT_SOURCE -D_BSD_SOURCE
LDLIBS = -lncursesw -lssl -lcrypto

PREFIX=/usr/local

all: ${BIN}

install: ${BIN}
	mkdir -p ${PREFIX}/bin
	cp -f ${BIN} ${PREFIX}/bin
	chmod 755 ${PREFIX}/bin/${BIN}

uninstall:
	rm -f ${PREFIX}/bin/${BIN}

clean:
	rm -f ${BIN} *.o

.PHONY: all clean