-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (24 loc) · 661 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (24 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version=0.01
name=lua-php-utils
dist=$(name)-$(version)
LUA_VERSION = 5.1
# See http://lua-users.org/wiki/BuildingModules for platform specific
# details.
## Linux/BSD
PREFIX ?= /usr/local
LDFLAGS += -shared
## OSX (Macports)
#PREFIX ?= /opt/local
#LDFLAGS += -bundle -undefined dynamic_lookup
LUA_INCLUDE_DIR ?= $(PREFIX)/include
LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION)
.PHONY: all clean dist test t
all:
@echo Nothing to do.
test:
prove -r t
valtest:
TEST_LUA_USE_VALGRIND=1 prove -r t
install:
$(INSTALL) -d $(DESTDIR)/$(LUA_LIB_DIR)/php
$(INSTALL) php/utils.lua $(DESTDIR)/$(LUA_LIB_DIR)/php