r3094 - trunk/src/host/usbpath
werner at sita.openmoko.org
werner at sita.openmoko.org
Sat Oct 6 18:17:30 CEST 2007
Author: werner
Date: 2007-10-06 18:17:26 +0200 (Sat, 06 Oct 2007)
New Revision: 3094
Added:
trunk/src/host/usbpath/libusbpath.pc.in
Modified:
trunk/src/host/usbpath/Makefile
Log:
- added provision of libusbpath.pc
Modified: trunk/src/host/usbpath/Makefile
===================================================================
--- trunk/src/host/usbpath/Makefile 2007-10-06 15:03:26 UTC (rev 3093)
+++ trunk/src/host/usbpath/Makefile 2007-10-06 16:17:26 UTC (rev 3094)
@@ -13,16 +13,23 @@
libusbpath.a: path2devnum.o devnum2path.o portinfo.o
$(AR) crv $@ $^
-install: libusbpath.a
+libusbpath.pc: libusbpath.pc.in
+ sed 's#PREFIX#$(PREFIX)#' <$^ >$@ || { rm -f $@; exit 1; }
+
+install: libusbpath.a libusbpath.pc
install -m 555 usbpath $(PREFIX)/bin
install -m 444 libusbpath.a $(PREFIX)/lib
+ install -m 444 usbpath.h $(PREFIX)/include
+ install -D -m 444 libusbpath.pc $(PREFIX)/lib/pkgconfig
uninstall:
rm -f $(PREFIX)/bin/usbpath
rm -f $(PREFIX)/lib/libusbpath.a
+ rm -f $(PREFIX)/include/usbpath.h
+ rm -f $(PREFIX)/lib/pkgconfig/libusbpath.pc
clean:
rm -f *.o
spotless: clean
- rm -f libusbpath.a usbpath
+ rm -f libusbpath.a usbpath libusbpath.pc
Added: trunk/src/host/usbpath/libusbpath.pc.in
===================================================================
--- trunk/src/host/usbpath/libusbpath.pc.in 2007-10-06 15:03:26 UTC (rev 3093)
+++ trunk/src/host/usbpath/libusbpath.pc.in 2007-10-06 16:17:26 UTC (rev 3094)
@@ -0,0 +1,10 @@
+prefix=PREFIX
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libusbpath
+Description: Translation between USB device number and device path
+Version: 0.0.1
+Libs: -L${libdir} -lusb -lusbpath
+Cflags: -I${includedir}
More information about the commitlog
mailing list