summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-08-13 10:07:44 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-08-13 10:07:44 +0000
commitd4b5e87662e6d334e12a92ef93a97a5454c06750 (patch)
tree8647386877cd753336ad13fd1f79743a95929a79 /c
parent2907b361799b83c856556dda16643ee618b60cb6 (diff)
downloadrtems-d4b5e87662e6d334e12a92ef93a97a5454c06750.tar.bz2
2003-08-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Add bsp.pc.in * bsp.pc.in: New (pkgconfig support).
Diffstat (limited to 'c')
-rw-r--r--c/src/ChangeLog5
-rw-r--r--c/src/Makefile.am7
-rw-r--r--c/src/bsp.pc.in20
3 files changed, 32 insertions, 0 deletions
diff --git a/c/src/ChangeLog b/c/src/ChangeLog
index 776f48aa98..3e2f655387 100644
--- a/c/src/ChangeLog
+++ b/c/src/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * Makefile.am: Add bsp.pc.in
+ * bsp.pc.in: New (pkgconfig support).
+
2003-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Use rtems-bugs@rtems.com as bug report email address.
diff --git a/c/src/Makefile.am b/c/src/Makefile.am
index 21840e35c3..db8374adef 100644
--- a/c/src/Makefile.am
+++ b/c/src/Makefile.am
@@ -38,5 +38,12 @@ preinstall-stamp:
touch preinstall-stamp
CLEANFILES = preinstall-stamp
+@host_alias@-@RTEMS_BSP@.pc: config.status bsp.pc.in
+ ./config.status --file=$@:$(srcdir)/bsp.pc.in
+
+pkgconfigdir = $(prefix)/lib/pkgconfig
+pkgconfig_DATA = @host_alias@-@RTEMS_BSP@.pc
+DISTCLEANFILES += @host_alias@-@RTEMS_BSP@.pc
+
include $(top_srcdir)/../../automake/subdirs.am
include $(top_srcdir)/../../automake/host.am
diff --git a/c/src/bsp.pc.in b/c/src/bsp.pc.in
new file mode 100644
index 0000000000..5451620d98
--- /dev/null
+++ b/c/src/bsp.pc.in
@@ -0,0 +1,20 @@
+#
+# pkg-config support file for RTEMS BSP @RTEMS_BSP@
+#
+# Warning: This stuff is experimental and may be changed at any time.
+#
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+CPU_CFLAGS=@CPU_CFLAGS@
+CFLAGS_OPTIMIZE=@CFLAGS_OPTIMIZE_V@
+CFLAGS_DEBUG=@CFLAGS_DEBUG_V@
+RTEMS_BSP=@RTEMS_BSP@
+
+Name: @host_alias@-@RTEMS_BSP@
+Version: @VERSION@
+Description: RTEMS BSP @RTEMS_BSP@
+Libs:
+Cflags: -qrtems -B${exec_prefix}/lib/ -B${libdir}/ --specs bsp_specs ${CPU_CFLAGS}