Signed-off-by: Mika Laitio <mika.laitio@nokia.com>
$(MKDIR) -p $(DESTDIR)$(prefix)/$(LIBDIRNAME)/pkgconfig
$(INSTALL) -m0644 libuci.a $(DESTDIR)$(prefix)/$(LIBDIRNAME)/
$(INSTALL) -m0644 uci_config.h uci.h ucimap.h $(DESTDIR)$(prefix)/include/
- $(INSTALL) -m0644 libuci.pc $(DESTDIR)$(prefix)/$(LIBDIRNAME)/pkgconfig
+ $(INSTALL) -m0644 $(LIBUCIPC) $(DESTDIR)$(prefix)/$(LIBDIRNAME)/pkgconfig/libuci.pc
install-bin: all
$(MKDIR) -p $(DESTDIR)$(prefix)/$(LIBDIRNAME)
prefix=/usr
DESTDIR=
-LIBDIRNAME=lib
+UNAME_P := $(shell uname -p)
+ifeq ($(UNAME_P),x86_64)
+ LIBDIRNAME=lib64
+ LIBUCIPC=lib64uci.pc
+else
+ LIBDIRNAME=lib
+ LIBUCIPC=libuci.pc
+endif
COPTS=-O2
WOPTS=-pedantic -Werror -Wall
--- /dev/null
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${prefix}/lib64
+includedir=${prefix}/include
+
+Name: libuci
+Description: Unified Configuration Interface
+Version: 0.8
+Libs: -L${libdir} -luci
+Cflags: -I${includedir}