Merge remote-tracking branch 'origin/next' into install-raid
[ipfire-2.x.git] / src / libsmooth / Makefile.am
CommitLineData
765b17bc
MT
1# This file is part of the libsmooth library.
2#
3# libsmooth is free software; you can redistribute it and/or modify it
4# under the terms of the GNU Lesser General Public License as published by
5# the Free Software Foundation; either version 2.1 of the License, or
6# (at your option) any later version.
7
8ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
9AM_MAKEFLAGS = --no-print-directory
10AUTOMAKE_OPTIONS = color-tests parallel-tests
11
12SUBDIRS = .
13
14# remove targets if the command fails
15.DELETE_ON_ERROR:
16
17# keep intermediate files
18.SECONDARY:
19
20LIBSMOOTH_CURRENT=1
21LIBSMOOTH_REVISION=0
22LIBSMOOTH_AGE=0
23
24pkgconfiglibdir=$(libdir)/pkgconfig
25CLEANFILES =
26EXTRA_DIST =
27
28AM_CPPFLAGS = \
29 -include $(top_builddir)/config.h \
30 -I $(top_srcdir)/include \
31 $(OUR_CPPFLAGS)
32
33AM_CFLAGS = $(OUR_CFLAGS)
34AM_CXXFLAGS = $(OUR_CXXFLAGS)
35AM_LDFLAGS = $(OUR_LDFLAGS)
36
37lib_LTLIBRARIES =
38
39include_HEADERS =
40
41#- libsmooth -------------------------------------------------------------------
42
43lib_LTLIBRARIES += \
44 libsmooth.la
45
46libsmooth_la_SOURCES = \
47 main.c \
48 varval.c
49
50libsmooth_la_LDFLAGS = \
51 $(AM_LDFLAGS) \
52 -version-info $(LIBSMOOTH_CURRENT):$(LIBSMOOTH_REVISION):$(LIBSMOOTH_AGE)
53
54include_HEADERS += \
55 libsmooth.h
56
57pkgconfiglib_DATA = \
58 libsmooth.pc
59
60CLEANFILES += \
61 libsmooth.pc
62
63EXTRA_DIST += \
64 libsmooth.pc.in
65
66#-------------------------------------------------------------------------------
67
68substitutions = \
69 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
70 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
71 '|prefix=$(prefix)|' \
72 '|exec_prefix=$(exec_prefix)|' \
73 '|libdir=$(libdir)|' \
74 '|includedir=$(includedir)|'
75
76SED_PROCESS = \
77 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
78 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) < $< > $@
79
80%.pc: %.pc.in Makefile
81 $(SED_PROCESS)