Commit 10a8bcc8 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

api: install a pkg-config file

parent fdd4b706
......@@ -78,9 +78,10 @@ SOURCES = memory/static.c \
all: glue/version.h $(TOOLS) $(TESTS) $(ARCHIVE) $(LIBRARY)
install: all
mkdir -p $(STAGING)$(PREFIX)/bin $(STAGING)$(PREFIX)/include $(STAGING)$(PREFIX)/lib
mkdir -p $(STAGING)$(PREFIX)/bin $(STAGING)$(PREFIX)/include $(STAGING)$(PREFIX)/lib/pkgconfig
cp -d $(LIBRARY) $(EXTRA) $(ARCHIVE) $(STAGING)$(PREFIX)/lib
cp etherbone.h $(STAGING)$(PREFIX)/include
sed "s#@PREFIX@#$(PREFIX)#" < etherbone.pc.in > $(STAGING)$(PREFIX)/lib/pkgconfig/etherbone.pc
cp $(TOOLS) $(STAGING)$(PREFIX)/bin
glue/version.h::
......
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: etherbone
Description: Wishbone serial protocol library
Version: 1.0
Libs: -L${libdir} -letherbone
Cflags: -I${includedir}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment