Permalink
Browse files

Provide libadmesh for linking purposes.

  • Loading branch information...
scarabeusiv authored and hroncok committed Oct 20, 2013
1 parent dccd88e commit 7c447f8f1af972fea65cfe55b01f1fd6ea88b54c
Showing with 45 additions and 8 deletions.
  1. +1 −1 .gitignore
  2. +28 −6 Makefile.am
  3. +5 −1 configure.ac
  4. +11 −0 libadmesh.pc.in
View
@@ -23,4 +23,4 @@ stamp-h1
*.o
*.tar.*
admesh
admesh-*/
View
@@ -1,14 +1,22 @@
ACLOCAL_AMFLAGS = -I m4
pkgconfdir = $(libdir)/pkgconfig
AM_LDFLAGS = \
-Wl,--gc-sections \
-Wl,--as-needed \
-no-undefined
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libadmesh.pc
EXTRA_DIST = \
ADMESH.DOC \
COPYING \
README \
INSTALL \
ChangeLog.old
ChangeLog.old \
libadmesh.pc.in
CLEANFILES = libadmesh.pc
bin_PROGRAMS = admesh
admesh_SOURCES = \
@@ -18,11 +26,25 @@ admesh_SOURCES = \
src/getopt1.c \
src/normals.c \
src/shared.c \
src/stlinit.c \
src/stl_io.c \
src/util.c \
src/getopt.h \
src/stl.h
src/getopt.h
admesh_LDADD = \
libadmesh.la
# libadmesh libtool versioning
LIBADMESH_CURRENT=1
LIBADMESH_REVISION=0
LIBADMESH_AGE=0
pkginclude_HEADERS = src/stl.h
lib_LTLIBRARIES = libadmesh.la
libadmesh_la_SOURCES = \
src/stlinit.c \
src/stl_io.c
libadmesh_la_LDFLAGS = \
$(AM_LDFLAGS) \
-version-info $(LIBADMESH_CURRENT):$(LIBADMESH_REVISION):$(LIBADMESH_AGE)
distclean-local:
rm -rf *.cache *~
View
@@ -18,6 +18,7 @@ AC_CONFIG_MACRO_DIR([m4])
AM_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
AM_SILENT_RULES([yes])
LT_INIT([disable-static pic-only])
AC_LANG([C])
# ===========================
@@ -26,12 +27,14 @@ AC_LANG([C])
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_SED
AC_PROG_MKDIR_P
# ================
# Check for cflags
# ================
AC_ARG_ENABLE([werror],
[AS_HELP_STRING([--enablee-werror], [Treat all warnings as errors, useful for development])],
[AS_HELP_STRING([--enablee-werror], [Treat all warnings as errors, useful for development @<:@default=disabled@:>@])],
[enable_werror="$enableval"],
[enable_werror=no]
)
@@ -55,6 +58,7 @@ AC_CHECK_LIB(m, main)
# =====================
AC_CONFIG_FILES([
Makefile
libadmesh.pc
])
AC_OUTPUT
View
@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libadmesh
Description: Library for woring with admesh
Version: @VERSION@
Libs: -L${libdir} -ladmesh
Libs.private:
Cflags: -I${includedir}

0 comments on commit 7c447f8

Please sign in to comment.