-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
45 lines (39 loc) · 1.16 KB
/
makefile
File metadata and controls
45 lines (39 loc) · 1.16 KB
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
36
37
38
39
40
41
42
43
44
45
#------
# Load configuration
#
include config
#------
# Hopefully no need to change anything below this line
#
# INSTALL_LUACWRAP_SHARE=$(INSTALL_TOP_SHARE)/luacwrap
all clean test:
cd src; $(MAKE) $@
manual:
cd doc; $(MAKE) $@
#------
# Install LuaCwrap according to recommendation
#
install: all
cd src; mkdir -p $(INSTALL_TOP_LIB)
# install library
cd src; $(INSTALL_EXEC) $(LUACWRAP_VNAME) $(INSTALL_TOP_LIB)/$(LUACWRAP_VNAME)
# enable runtime binding via soname
$(INSTALL_LINK) $(INSTALL_TOP_LIB)/$(LUACWRAP_VNAME) $(INSTALL_TOP_LIB)/$(LUACWRAP_MNAME)
# enable -llua5.1-luacwrap for gcc
$(INSTALL_LINK) $(INSTALL_TOP_LIB)/$(LUACWRAP_VNAME) $(INSTALL_TOP_LIB)/$(LUACWRAP_LIBNAME).$(EXT)
# enable require("luacwrap") within lua scripts
sudo mkdir -p $(INSTALL_LUA_LIB)
$(INSTALL_LINK) $(INSTALL_TOP_LIB)/$(LUACWRAP_VNAME) $(INSTALL_LUA_LIB)/luacwrap.$(EXT)
# update linker cache
sudo ldconfig
#------
# Install LuaCwrap according to recommendation
#
uninstall:
rm $(INSTALL_TOP_LIB)/$(LUACWRAP_VNAME)
rm $(INSTALL_TOP_LIB)/$(LUACWRAP_MNAME)
rm $(INSTALL_TOP_LIB)/$(LUACWRAP_LIBNAME).$(EXT)
rm $(INSTALL_LUA_LIB)/luacwrap.$(EXT)
#------
# End of makefile
#