lua-osx/config.mk

21 lines
428 B
Makefile
Raw Normal View History

2022-12-11 18:58:11 +01:00
# Compiler and tools
CC = cc
LD = $(CC)
LUA = lua
LDOC = ldoc
2022-12-11 18:58:11 +01:00
PKGCONFIG = pkg-config
CP = cp
2022-12-14 12:38:12 +01:00
RM = rm -f
2022-12-11 18:58:11 +01:00
MKDIR = mkdir
RMDIR = rmdir
# Compilation flags
CFLAGS = -pipe -Os -fPIC -Wall -pedantic
# Linking options
LDFLAGS = -W -O1
# Lua setup
LUA_INCDIR = $(shell $(PKGCONFIG) --variable=includedir $(LUA))
LUA_LIBDIR = $(shell $(PKGCONFIG) --variable=libdir $(LUA))
LIBDIR = $(shell $(PKGCONFIG) --variable=INSTALL_CMOD $(LUA))