Register NetBSD into the build system

This is probably not the best way. Also, I have not looked at Lua yet;
it may need to be built differently than with -DLUA_USE_LINUX.
This commit is contained in:
2017-12-13 17:06:47 +01:00
parent 8e51b68e83
commit bdeede6683
2 changed files with 13 additions and 4 deletions
+9 -3
View File
@@ -31,9 +31,15 @@ else
ifeq ($(platform),Darwin)
LUAPLATFORM = macosx
else
LUALIB += -ldl
LDLIBS += -ltermcap -lncurses
LUAPLATFORM = linux
ifeq ($(platform),NetBSD)
LDLIBS += -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib
LDLIBS += -ltermcap -lncurses
LUAPLATFORM = netbsd
else
LUALIB += -ldl
LDLIBS += -ltermcap -lncurses
LUAPLATFORM = linux
endif
endif
endif