diff options
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,10 +1,16 @@ CC=gcc +BINARY=blabouncer + 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 +blabouncer: blabouncer.c functions.c sockets.c config.c replay.c logging.c message.c config.h functions.h logging.h message.h replay.h sockets.h structures.h + $(CC) -D_DEFAULT_SOURCE -D_BSD_SOURCE -std=gnu99 -Wall -Wextra -lssl -lcrypto -o $(BINARY) blabouncer.c functions.c sockets.c config.c replay.c logging.c message.c + +.PHONY: clean +clean: + rm -f $(BINARY) .PHONY: install install: blabouncer |