summaryrefslogtreecommitdiff
path: root/Makefile
blob: 391a2785f65cdf03115869290047c62e3cc01092 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC=gcc
ifeq ($(PREFIX),)
	PREFIX := /usr/local
endif

blabouncer: blabouncer.c functions.c sockets.c config.c replay.c logging.c message.c
	$(CC) -D_DEFAULT_SOURCE -D_BSD_SOURCE -std=gnu99 -Wall -Wextra -lssl -lcrypto -o blabouncer blabouncer.c functions.c sockets.c config.c replay.c logging.c message.c

.PHONY: install
install: blabouncer
	install -d $(DESTDIR)$(PREFIX)/bin/
	install -m 755 blabouncer $(DESTDIR)$(PREFIX)/bin/

.PHONY: uninstall
uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/blabouncer