]>
Commit | Line | Data |
---|---|---|
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 | ||
8 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} | |
9 | AM_MAKEFLAGS = --no-print-directory | |
10 | AUTOMAKE_OPTIONS = color-tests parallel-tests | |
11 | ||
12 | SUBDIRS = . | |
13 | ||
14 | # remove targets if the command fails | |
15 | .DELETE_ON_ERROR: | |
16 | ||
17 | # keep intermediate files | |
18 | .SECONDARY: | |
19 | ||
20 | LIBSMOOTH_CURRENT=1 | |
21 | LIBSMOOTH_REVISION=0 | |
22 | LIBSMOOTH_AGE=0 | |
23 | ||
24 | pkgconfiglibdir=$(libdir)/pkgconfig | |
25 | CLEANFILES = | |
26 | EXTRA_DIST = | |
27 | ||
28 | AM_CPPFLAGS = \ | |
29 | -include $(top_builddir)/config.h \ | |
30 | -I $(top_srcdir)/include \ | |
31 | $(OUR_CPPFLAGS) | |
32 | ||
33 | AM_CFLAGS = $(OUR_CFLAGS) | |
34 | AM_CXXFLAGS = $(OUR_CXXFLAGS) | |
35 | AM_LDFLAGS = $(OUR_LDFLAGS) | |
36 | ||
37 | lib_LTLIBRARIES = | |
38 | ||
39 | include_HEADERS = | |
40 | ||
41 | #- libsmooth ------------------------------------------------------------------- | |
42 | ||
43 | lib_LTLIBRARIES += \ | |
44 | libsmooth.la | |
45 | ||
46 | libsmooth_la_SOURCES = \ | |
47 | main.c \ | |
48 | varval.c | |
49 | ||
50 | libsmooth_la_LDFLAGS = \ | |
51 | $(AM_LDFLAGS) \ | |
52 | -version-info $(LIBSMOOTH_CURRENT):$(LIBSMOOTH_REVISION):$(LIBSMOOTH_AGE) | |
53 | ||
54 | include_HEADERS += \ | |
55 | libsmooth.h | |
56 | ||
57 | pkgconfiglib_DATA = \ | |
58 | libsmooth.pc | |
59 | ||
60 | CLEANFILES += \ | |
61 | libsmooth.pc | |
62 | ||
63 | EXTRA_DIST += \ | |
64 | libsmooth.pc.in | |
65 | ||
66 | #------------------------------------------------------------------------------- | |
67 | ||
68 | substitutions = \ | |
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 | ||
76 | SED_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) |