commit a435f60a568643b2aa807169be55795897d4a063
parent 6d369a3decf25f4f2c96cff0038073046592e41e
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 24 Nov 2023 10:49:16 +0100
Add pkg-config file
Fix Makefile prerequisites on local pkg-config file. Its name was wrong.
Diffstat:
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -73,7 +73,7 @@ pkg:
-e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g'\
sbb.pc.in > sbb.pc
-scam-local.pc: scam.pc.in
+sbb-local.pc: sbb.pc.in
sed -e '1d'\
-e 's#^includedir=.*#includedir=./src/#'\
-e 's#^libdir=.*#libdir=./#'\
@@ -142,5 +142,5 @@ $(TEST_DEP): config.mk sbb-local.pc
$(TEST_OBJ): config.mk sbb-local.pc
$(CC) $(CFLAGS_EXE) $(SBB_CFLAGS) $(RSYS_CFLAGS) -c $(@:.o=.c) -o $@
-#TODO_EXE: config.mk scam-local.pc $(LIBNAME)
+#TODO_EXE: config.mk sbb-local.pc $(LIBNAME)
# $(CC) $(CFLAGS_EXE) -o $@ src/$@.o $(LDFLAGS_EXE) $(SBB_LIBS) $(RSYS_LIBS)
diff --git a/sbb.pc.in b/sbb.pc.in
@@ -0,0 +1,11 @@
+prefix=@PREFIX@
+includedir=${prefix}/include
+libdir=${prefix}/lib
+
+Requires: rsys >= @RSYS_VERSION@
+Name: Star-Blackbody
+Description: Star Blackbody
+Version: @VERSION@
+Libs: -L${libdir} -lsbb
+Libs.private: -lm
+CFlags: -I${includedir}