20 lines
413 B
Makefile
20 lines
413 B
Makefile
# 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))
|