Commit | Line | Data |
---|---|---|
97a9a385 MW |
1 | ### -*-makefile-*- |
2 | ### | |
3 | ### Build script for SOD runtime library | |
4 | ### | |
5 | ### (c) 2015 Straylight/Edgeware | |
6 | ### | |
7 | ||
8 | ###----- Licensing notice --------------------------------------------------- | |
9 | ### | |
e0808c47 | 10 | ### This file is part of the Sensible Object Design, an object system for C. |
97a9a385 MW |
11 | ### |
12 | ### SOD is free software; you can redistribute it and/or modify | |
65aaa02c MW |
13 | ### it under the terms of the GNU Library General Public License as |
14 | ### published by the Free Software Foundation; either version 2 of the | |
15 | ### License, or (at your option) any later version. | |
97a9a385 MW |
16 | ### |
17 | ### SOD is distributed in the hope that it will be useful, | |
18 | ### but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
65aaa02c | 20 | ### GNU Library General Public License for more details. |
97a9a385 | 21 | ### |
65aaa02c MW |
22 | ### You should have received a copy of the GNU Library General Public |
23 | ### License along with SOD; if not, write to the Free | |
24 | ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, | |
25 | ### MA 02111-1307, USA. | |
97a9a385 | 26 | |
b5d086c2 MW |
27 | include $(top_srcdir)/vars.am |
28 | ||
29 | ###-------------------------------------------------------------------------- | |
30 | ### The library. | |
31 | ||
97a9a385 MW |
32 | lib_LTLIBRARIES = libsod.la |
33 | libsod_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) | |
34 | ||
35 | libsod_la_SOURCES = | |
97a9a385 MW |
36 | |
37 | nodist_libsod_la_SOURCES = | |
d8d952a0 | 38 | nodist_pkginclude_HEADERS = |
97a9a385 MW |
39 | |
40 | ###-------------------------------------------------------------------------- | |
41 | ### The source files. | |
42 | ||
9e91c8e7 MW |
43 | pkginclude_HEADERS += keyword.h |
44 | libsod_la_SOURCES += keyword.c keyword-hosted.c | |
6bed6ea3 MW |
45 | man_MANS += keyword.3 |
46 | CLEANFILES += keyword.3 | |
47 | EXTRA_DIST += keyword.3.in | |
9e91c8e7 | 48 | |
b5d086c2 | 49 | pkginclude_HEADERS += sod.h |
a42893dd | 50 | libsod_la_SOURCES += sod.c sod-hosted.c |
6bed6ea3 MW |
51 | man_MANS += sod.3 |
52 | CLEANFILES += sod.3 | |
53 | EXTRA_DIST += sod.3.in | |
97a9a385 MW |
54 | |
55 | ###-------------------------------------------------------------------------- | |
56 | ### Generated builtin module. | |
57 | ||
d8d952a0 MW |
58 | nodist_libsod_la_SOURCES += sod-base.c |
59 | nodist_pkginclude_HEADERS += sod-base.h | |
b5d086c2 MW |
60 | BUILT_SOURCES += $(nodist_libsod_la_SOURCES) \ |
61 | $(nodist_pkginclude_HEADERS) | |
97a9a385 | 62 | |
173090e6 MW |
63 | sod-base.c: $(SOD); $(V_SOD_c)$(SOD) -tc --builtin |
64 | sod-base.h: $(SOD); $(V_SOD_h)$(SOD) -th --builtin | |
97a9a385 | 65 | |
47de28ae | 66 | ###-------------------------------------------------------------------------- |
88005ae9 MW |
67 | ### Package-configuration file. |
68 | ||
69 | pkgconfigdir = $(libdir)/pkgconfig | |
70 | pkgconfig_DATA = sod.pc | |
71 | CLEANFILES += sod.pc | |
72 | EXTRA_DIST += sod.pc.in | |
73 | ||
74 | sod.pc: sod.pc.in Makefile | |
75 | $(SUBST) $(srcdir)/sod.pc.in >$@.new $(SUBSTITUTIONS) && mv $@.new $@ | |
76 | ||
77 | ###-------------------------------------------------------------------------- | |
78 | ### Autoconf machinery. | |
79 | ||
80 | aclocaldir = $(datadir)/aclocal | |
81 | dist_aclocal_DATA = sod.m4 | |
82 | ||
83 | ###-------------------------------------------------------------------------- | |
2761f5cf | 84 | ### Other manual pages. |
47de28ae | 85 | |
6bed6ea3 MW |
86 | man_MANS += sod-structs.3 |
87 | CLEANFILES += sod-structs.3 | |
88 | EXTRA_DIST += sod-structs.3.in | |
47de28ae | 89 | |
97a9a385 | 90 | ###----- That's all, folks -------------------------------------------------- |