Skip to content

Commit f3b5028

Browse files
committed
Added pkg
1 parent b5afa90 commit f3b5028

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

Makefile.am

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ ACLOCAL_AMFLAGS = -I m4
22

33
libbyteconvert_subdirs=libbyteconvert
44

5-
SUBDIRS=libbyteconvert
5+
SUBDIRS= $(libbyteconvert_subdirs)
6+
7+
pkgconfigdir = $(libdir)/pkgconfig
8+
pkgconfig_DATA = libbyteconvert.pc

configure.ac

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ AC_INIT([libbyteconvert], [0.1.0], [[email protected]])
22

33
AC_CONFIG_MACRO_DIR([m4])
44

5-
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
5+
AM_INIT_AUTOMAKE([-Wall foreign])
66
LT_INIT
77

88
# Checks for programs.
@@ -22,6 +22,7 @@ AC_FUNC_MALLOC
2222

2323
# Config files
2424
AC_CONFIG_FILES([Makefile
25-
libbyteconvert/Makefile])
25+
libbyteconvert/Makefile
26+
libbyteconvert.pc])
2627

2728
AC_OUTPUT

libbyteconvert.pc.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
prefix=@prefix@
2+
exec_prefix=@exec_prefix@
3+
libdir=@libdir@
4+
includedir=@includedir@
5+
6+
Name: libbyteconvert
7+
Description: conversion library
8+
Version: @VERSION@
9+
URL: https://github.com/SloCompTech/ByteConvert_cpp
10+
Requires: @PKG_CONFIG_REQUIRES@
11+
Libs: -L${libdir} -lbyteconvert
12+
Cflags: -I${includedir}

0 commit comments

Comments
 (0)