From 8450fa9418e3d0003a6990a5384437bde4ea76c0 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sat, 30 Mar 2024 13:27:28 +0000 Subject: Make Makefile pay attention to header files, and add a make clean. --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 391a278..c48a819 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3