lua-osx/config.mk

20 lines
413 B
Makefile
Raw Normal View History

2022-12-11 18:58:11 +01:00
# Compiler and tools
CC = cc
LD = $(CC)
LUA = lua
PKGCONFIG = pkg-config
CP = cp
RM = rm
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))