Fixed installing process on freebsd
This commit is contained in:
parent
d12f45aaa4
commit
8a576e5e02
1 changed files with 6 additions and 5 deletions
11
Makefile
11
Makefile
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue