projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
load the saved history by default to make things easier for the lua binding
[project/uci.git]
/
lua
/
Makefile
diff --git
a/lua/Makefile
b/lua/Makefile
index
9cc6c39
..
9b6e728
100644
(file)
--- a/
lua/Makefile
+++ b/
lua/Makefile
@@
-1,7
+1,7
@@
include ../Makefile.inc
include ../Makefile.inc
-CPPFLAGS=-I..
-LIBS=-L.. -luci
+CPPFLAGS=-I..
$(shell pkg-config --silence-errors --cflags lua5.1)
+LIBS=-L.. -luci
$(shell pkg-config --silence-errors --libs lua5.1)
PLUGIN_LD=$(CC)
ifeq ($(OS),Darwin)
PLUGIN_LD=$(CC)
ifeq ($(OS),Darwin)
@@
-16,7
+16,7
@@
uci.so: uci.o
$(PLUGIN_LD) $(PLUGIN_LDFLAGS) -o $@ $^ $(LIBS)
%.o: %.c
$(PLUGIN_LD) $(PLUGIN_LDFLAGS) -o $@ $^ $(LIBS)
%.o: %.c
- $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CPPFLAGS) $(CFLAGS)
$(FPIC)
-c -o $@ $<
install:
mkdir -p $(DESTDIR)$(prefix)/lib/lua/5.1
install:
mkdir -p $(DESTDIR)$(prefix)/lib/lua/5.1