Skip to content

Commit

Permalink
Install header files, pkgconfig .pc file
Browse files Browse the repository at this point in the history
  • Loading branch information
fragglet committed Dec 13, 2005
1 parent b4e5adb commit bd148c5
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 10 deletions.
7 changes: 6 additions & 1 deletion Makefile.am
@@ -1,8 +1,13 @@

AUX_DIST_GEN = $(ac_aux_dir)

EXTRA_DIST = $(AUX_DIST_GEN)
EXTRA_DIST = $(AUX_DIST_GEN) libcalg-1.0.pc.in
MAINTAINERCLEANFILES = $(AUX_DIST_GEN)

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libcalg-1.0.pc

$(pkgconfig_DATA) : config.status

SUBDIRS=src test doc

2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -14,9 +14,9 @@ AC_SUBST(ac_aux_dir)

AC_OUTPUT([
Makefile
libcalg-1.0.pc
doc/Makefile
src/Makefile
test/Makefile
])
# c-algorithms.pc

11 changes: 11 additions & 0 deletions libcalg-1.0.pc.in
@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: LibCAlg
Description: C Algorithms Library. See http://c-algorithms.sf.net/
Version: @VERSION@
Libs: -L${libdir} -lcalg
Cflags: -I${includedir}/libcalg-1.0

26 changes: 18 additions & 8 deletions src/Makefile.am
Expand Up @@ -3,13 +3,23 @@ AM_CFLAGS = -Wall

lib_LTLIBRARIES=libcalg.la

MAIN_HEADERFILES = libcalg.h

CALG_HEADERFILES=\
arraylist.h compare-int.h hash-int.h hashtable.h set.h \
avltree.h compare-pointer.h hash-pointer.h list.h slist.h \
queue.h compare-string.h hash-string.h trie.h

SRC=\
arraylist.c compare-pointer.h hash-pointer.c hashtable.h set.c \
arraylist.h compare-string.c hash-pointer.h list.c set.h \
compare-int.c compare-string.h hash-string.c list.h slist.c \
compare-int.h hash-int.c hash-string.h queue.c slist.h \
compare-pointer.c hash-int.h hashtable.c queue.h \
avltree.c avltree.h trie.c trie.h

libcalg_la_SOURCES=$(SRC)
arraylist.c compare-pointer.c hash-pointer.c list.c slist.c \
avltree.c compare-string.c hash-string.c queue.c trie.c \
compare-int.c hash-int.c hashtable.c set.c

libcalg_la_SOURCES=$(SRC) $(MAIN_HEADERFILES) $(CALG_HEADERFILES)

headerfilesdir=$(includedir)/libcalg-1.0
headerfiles_HEADERS=$(MAIN_HEADERFILES)

calgheaderfilesdir=$(headerfilesdir)/libcalg
calgheaderfiles_HEADERS=$(CALG_HEADERFILES)

0 comments on commit bd148c5

Please sign in to comment.