projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
928edd2
)
add make install to the uci build directory
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 13 Apr 2008 13:20:29 +0000
(15:20 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 13 Apr 2008 13:20:29 +0000
(15:20 +0200)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
edbdc4e
..
421c2d9
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-5,6
+5,9
@@
PLUGIN_SUPPORT=1
DEBUG=0
DEBUG_TYPECAST=0
DEBUG=0
DEBUG_TYPECAST=0
+prefix=/usr
+DESTDIR=
+
COPTS=-O2
WOPTS=-pedantic -Wno-unused -Werror
FPIC=-fPIC
COPTS=-O2
WOPTS=-pedantic -Wno-unused -Werror
FPIC=-fPIC
@@
-15,6
+18,7
@@
LD=ld
CC=gcc
LIBS=-lc
RANLIB=ranlib
CC=gcc
LIBS=-lc
RANLIB=ranlib
+INSTALL=install
ifeq ($(DEBUG),1)
COPTS = -O0
ifeq ($(DEBUG),1)
COPTS = -O0
@@
-77,5
+81,11
@@
libuci.$(SHLIB_EXT): libuci-shared.o
clean:
rm -f uci uci-static *.[oa] *.so* *.dylib* uci_config.h
clean:
rm -f uci uci-static *.[oa] *.so* *.dylib* uci_config.h
+install: all
+ $(INSTALL) -m0644 libuci.a $(DESTDIR)$(prefix)/lib/
+ $(INSTALL) -m0755 $(SHLIB_FILE) $(DESTDIR)$(prefix)/lib/
+ ln -sf $(SHLIB_FILE) $(DESTDIR)$(prefix)/lib/libuci.$(SHLIB_EXT)
+ $(INSTALL) -m0755 uci $(DESTDIR)/usr/bin/
+
FORCE: ;
.PHONY: FORCE
FORCE: ;
.PHONY: FORCE