Add pkg-config specification for CK.

ck_pring
Samy Al Bahra 14 years ago
parent c1d0f39ec0
commit 7d4fb66fb8

@ -4,6 +4,7 @@ CFLAGS=@CFLAGS@
PREFIX=@PREFIX@ PREFIX=@PREFIX@
LIBRARY=@LIBRARY@ LIBRARY=@LIBRARY@
HEADERS=@HEADERS@ HEADERS=@HEADERS@
PKGCONFIG_DATA=@LIBRARY@/pkgconfig
all: all:
make -C src all || exit make -C src all || exit
@ -26,12 +27,16 @@ install: all
cp -r include/gcc/* $(HEADERS)/gcc || exit cp -r include/gcc/* $(HEADERS)/gcc || exit
chmod 755 $(HEADERS)/gcc chmod 755 $(HEADERS)/gcc
chmod 644 $(HEADERS)/gcc/ck_*.h $(HEADERS)/gcc/*/ck_*.h || exit chmod 644 $(HEADERS)/gcc/ck_*.h $(HEADERS)/gcc/*/ck_*.h || exit
mkdir -p $(PKGCONFIG_DATA) || exit
chmod 755 $(PKGCONFIG_DATA)
cp build/ck.pc $(PKGCONFIG_DATA)/ck.pc || exit
uninstall: uninstall:
rm -f $(LIBRARY)/libck* rm -f $(LIBRARY)/libck*
rm -f $(HEADERS)/ck_*.h rm -f $(HEADERS)/ck_*.h
rm -f $(HEADERS)/gcc/ck_*.h rm -f $(HEADERS)/gcc/ck_*.h
rm -f $(HEADERS)/gcc/*/ck_*.h rm -f $(HEADERS)/gcc/*/ck_*.h
rm -f $(PKGCONFIG_DATA)/ck.pc
clean: clean:
make -C src clean make -C src clean
@ -41,4 +46,5 @@ clean:
distribution: clean distribution: clean
rm -f build/ck.build rm -f build/ck.build
rm -f build/regressions.build rm -f build/regressions.build
rm -f build/ck.pc
rm -f Makefile rm -f Makefile

@ -0,0 +1,10 @@
prefix=@PREFIX@
includedir=@HEADERS@
libdir=@LIBRARY@
Name: Concurrency Kit
Description: Toolkit for well-specified design and implementation of concurrent systems
URL: http://www.concurrencykit.org/
Version: 0.1.0
Libs: -L${libdir} -lck
Cflags: -D__@PROFILE@__ -I${includedir}

2
configure vendored

@ -158,6 +158,7 @@ if test "$PROFILE"; then
printf "Generating build files..........." printf "Generating build files..........."
generate build/ck.build.in build/ck.build generate build/ck.build.in build/ck.build
generate build/regressions.build.in build/regressions.build generate build/regressions.build.in build/regressions.build
generate build/ck.pc.in build/ck.pc
generate Makefile.in Makefile generate Makefile.in Makefile
echo "success" echo "success"
generate_stdout generate_stdout
@ -335,6 +336,7 @@ printf "Generating build files..........."
generate build/ck.build.in build/ck.build generate build/ck.build.in build/ck.build
generate build/regressions.build.in build/regressions.build generate build/regressions.build.in build/regressions.build
generate build/ck.pc.in build/ck.pc
generate Makefile.in Makefile generate Makefile.in Makefile
echo "success" echo "success"

Loading…
Cancel
Save