Fix compilation under MacOSX

This commit is contained in:
Gabriele Gristina
2019-07-10 18:43:19 +02:00
parent 77c5e28bce
commit 563050c8ba
6 changed files with 41 additions and 6 deletions

View File

@@ -12,13 +12,20 @@ endif
# Your platform. See PLATS for possible values.
PLAT= none
platform= $(shell uname)
CC= gcc
CFLAGS= -O3 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
LIBS= -lm $(SYSLIBS) $(MYLIBS)
ifeq ($(platform),Darwin)
AR= /usr/bin/ar rc
RANLIB= /usr/bin/ranlib
else
AR= ar rc
RANLIB= ranlib
endif
RM= rm -f
SYSCFLAGS=