clarify generic 'bsd' build target

We still only have OpenBSD working.
This commit is contained in:
Kartik K. Agaram 2022-01-24 17:25:50 -08:00
parent 3f6861b4db
commit 058145ee23
3 changed files with 15 additions and 9 deletions

View File

@ -38,7 +38,7 @@ RANLIB= ranlib
# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
# Convenience platforms targets.
PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
PLATS= aix ansi freebsd generic linux macosx mingw netbsd openbsd posix solaris
# What to install.
TO_BIN= lua luac

View File

@ -21,7 +21,7 @@ Here's how you run one of the example apps (the [Tower of Hanoi](https://en.wiki
```sh
git clone https://github.com/akkartik/teliva
cd teliva
make linux # replace with 'macosx' or 'bsd' depending on your OS
make linux # replace with 'macosx', etc. depending on your OS
src/teliva hanoi.tlv
```

View File

@ -20,7 +20,7 @@ MYLIBS=
# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
PLATS= aix ansi freebsd generic linux macosx mingw netbsd openbsd posix solaris
LUA_A= liblua.a
CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
@ -84,12 +84,6 @@ aix:
ansi:
$(MAKE) all MYCFLAGS=-DLUA_ANSI
bsd:
$(MAKE) -C lcurses CC="$(CC)" CFLAGS="$(CFLAGS)"
$(MAKE) -C luasocket freebsd
$(MAKE) -C luasec bsd
$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E -lncurses"
freebsd:
$(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E"
@ -115,6 +109,18 @@ mingw:
"AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
"MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua.exe
openbsd:
$(MAKE) -C lcurses CC="$(CC)" CFLAGS="$(CFLAGS)"
$(MAKE) -C luasocket freebsd
$(MAKE) -C luasec bsd
$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E -lncurses"
netbsd:
$(MAKE) -C lcurses CC="$(CC)" CFLAGS="$(CFLAGS)"
$(MAKE) -C luasocket freebsd
$(MAKE) -C luasec bsd
$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E -lncurses"
posix:
$(MAKE) all MYCFLAGS=-DLUA_USE_POSIX