projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix a really stupid bug
[project/uci.git]
/
lua
/
Makefile
diff --git
a/lua/Makefile
b/lua/Makefile
index
76b936d
..
2861d21
100644
(file)
--- a/
lua/Makefile
+++ b/
lua/Makefile
@@
-1,7
+1,10
@@
include ../Makefile.inc
include ../Makefile.inc
+prefix=/usr/local
+libdir=$(prefix)/lib
+luadir=$(libdir)/lua/5.1
CPPFLAGS=-I.. $(shell pkg-config --silence-errors --cflags lua5.1)
CPPFLAGS=-I.. $(shell pkg-config --silence-errors --cflags lua5.1)
-LIBS=-L.. -luci
+LIBS=-L.. -luci
$(shell pkg-config --silence-errors --libs lua5.1)
PLUGIN_LD=$(CC)
ifeq ($(OS),Darwin)
PLUGIN_LD=$(CC)
ifeq ($(OS),Darwin)
@@
-19,8
+22,8
@@
uci.so: uci.o
$(CC) $(CPPFLAGS) $(CFLAGS) $(FPIC) -c -o $@ $<
install:
$(CC) $(CPPFLAGS) $(CFLAGS) $(FPIC) -c -o $@ $<
install:
- mkdir -p $(DESTDIR)$(
prefix)/lib/lua/5.1
- $(INSTALL) -m0644 uci.so $(DESTDIR)$(
prefix)/lib/lua/5.1
/
+ mkdir -p $(DESTDIR)$(
luadir)
+ $(INSTALL) -m0644 uci.so $(DESTDIR)$(
luadir)
/
clean:
rm -f *.so *.o uci.so
clean:
rm -f *.so *.o uci.so