diff --git a/urjtag/.gitignore b/urjtag/.gitignore index b59244d1..c97307b6 100644 --- a/urjtag/.gitignore +++ b/urjtag/.gitignore @@ -65,6 +65,7 @@ Makefile.in # urjtag generated files # /include/urjtag/urjtag.h +/src/urjtag.pc /src/apps/bsdl2jtag/bsdl2jtag /src/apps/jtag/jtag /src/bsdl/bsdl_bison.c diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 3ec1506d..de0f1321 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -29,6 +29,10 @@ * doc/UrJTAG.txt: Add gnICE+ and list supported Blackfin processors. + * src/urjtag.pc.in: Start a pkg-config .pc file. + * src/Makefile.am: Install urjtag.pc. + * .gitignore: Ignore generated urjtag.pc. + 2010-02-04 Jie Zhang * src/tap/cable/ft2232.c (ft2232_gnice_init_common): Replace diff --git a/urjtag/src/Makefile.am b/urjtag/src/Makefile.am index 381d35eb..708e03af 100644 --- a/urjtag/src/Makefile.am +++ b/urjtag/src/Makefile.am @@ -45,6 +45,9 @@ if ENABLE_JIM SUBDIRS += jim endif +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = urjtag.pc + lib_LTLIBRARIES = liburjtag.la liburjtag_la_LDFLAGS = -version-info 0:0:0 diff --git a/urjtag/src/urjtag.pc.in b/urjtag/src/urjtag.pc.in new file mode 100644 index 00000000..307e6fe7 --- /dev/null +++ b/urjtag/src/urjtag.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +includedir=${prefix}/include + +Name: @PACKAGE_NAME@ +Description: Universal JTAG library, server and tools +Version: @PACKAGE_VERSION@ +URL: @PACKAGE_BUGREPORT@ +Libs: -lurjtag +Libs.private: @LIBS@ +Cflags: -I${includedir}