X-Git-Url: https://git.armaanb.net/?p=libacheam.git;a=blobdiff_plain;f=Makefile;h=3d0bd0da1b2338ab689f957456765c2265935787;hp=a301e4aed716f72e877fb7a4dcd01a8d9d66ace7;hb=HEAD;hpb=4357f941feae9024605fbabf6b549d242edcd9b5 diff --git a/Makefile b/Makefile index a301e4a..3d0bd0d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ DESTDIR ?= /usr/local CFLAGS := -Wall -Wextra -pedantic -std=c99 -fPIC ${CFLAGS} -all: shared static man +all: shared static man pkgconfig shared: ${CC} -shared ${LDFLAGS} -o libacheam.so src/libacheam/*.c ${CFLAGS} @@ -10,6 +10,9 @@ static: ${CC} ${LDFLAGS} src/libacheam/*.c ${CFLAGS} -c ar rcs libacheam.a *.o +pkgconfig: + sed "s|PREFIX_HERE|${DESTDIR}|g" acheam.pc.in > acheam.pc + man: for i in man/*.scd; do \ outp=$$(echo "$$i" | rev | cut -f 2- -d '.' | rev); \