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)