From 8a576e5e029a7225f55a7f6dafce5336b014bb1c Mon Sep 17 00:00:00 2001 From: TheDarkBug Date: Sat, 24 Jul 2021 12:56:18 +0200 Subject: [PATCH] Fixed installing process on freebsd --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index a143f03..1701187 100644 --- a/Makefile +++ b/Makefile @@ -10,16 +10,17 @@ else ifeq ($(shell uname), Darwin) PREFIX = /usr/local/bin LIBDIR = /usr/local/lib MANDIR = /usr/local/share/man/man1 +else ifeq ($(shell uname), FreeBSD) + CFLAGS += -D__FREEBSD__ + CFLAGS_DEBUG += -D__FREEBSD__ + PREFIX = /usr/bin + LIBDIR = /usr/lib + MANDIR = /usr/share/man/man1 endif CC = cc MAN_COMPILER = pandoc -ifeq ($(shell uname), FreeBSD) - CFLAGS += -D__FREEBSD__ - CFLAGS_DEBUG += -D__FREEBSD__ -endif - build: $(FILES) $(CC) $(CFLAGS) -o $(NAME) $(FILES)