Fixed installing process on freebsd

This commit is contained in:
TheDarkBug 2021-07-24 12:56:18 +02:00
parent d12f45aaa4
commit 8a576e5e02

View file

@ -10,16 +10,17 @@ else ifeq ($(shell uname), Darwin)
PREFIX = /usr/local/bin PREFIX = /usr/local/bin
LIBDIR = /usr/local/lib LIBDIR = /usr/local/lib
MANDIR = /usr/local/share/man/man1 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 endif
CC = cc CC = cc
MAN_COMPILER = pandoc MAN_COMPILER = pandoc
ifeq ($(shell uname), FreeBSD)
CFLAGS += -D__FREEBSD__
CFLAGS_DEBUG += -D__FREEBSD__
endif
build: $(FILES) build: $(FILES)
$(CC) $(CFLAGS) -o $(NAME) $(FILES) $(CC) $(CFLAGS) -o $(NAME) $(FILES)