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 | |
13 | ### it under the terms of the GNU General Public License as published by | |
14 | ### the Free Software Foundation; either version 2 of the License, or | |
15 | ### (at your option) any later version. | |
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 | |
20 | ### GNU General Public License for more details. | |
21 | ### | |
22 | ### You should have received a copy of the GNU General Public License | |
23 | ### along with SOD; if not, write to the Free Software Foundation, | |
24 | ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
25 | ||
b5d086c2 MW |
26 | include $(top_srcdir)/vars.am |
27 | ||
28 | ###-------------------------------------------------------------------------- | |
29 | ### The library. | |
30 | ||
97a9a385 MW |
31 | lib_LTLIBRARIES = libsod.la |
32 | libsod_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) | |
33 | ||
34 | libsod_la_SOURCES = | |
97a9a385 MW |
35 | |
36 | nodist_libsod_la_SOURCES = | |
b5d086c2 | 37 | nodist_pkginclude_HEADERS= |
97a9a385 MW |
38 | |
39 | ###-------------------------------------------------------------------------- | |
40 | ### The source files. | |
41 | ||
42 | libsod_la_SOURCES += sod.c | |
b5d086c2 | 43 | pkginclude_HEADERS += sod.h |
97a9a385 MW |
44 | |
45 | ###-------------------------------------------------------------------------- | |
46 | ### Generated builtin module. | |
47 | ||
97a9a385 | 48 | nodist_libsod_la_SOURCES+= sod-base.c |
b5d086c2 MW |
49 | nodist_pkginclude_HEADERS+= sod-base.h |
50 | BUILT_SOURCES += $(nodist_libsod_la_SOURCES) \ | |
51 | $(nodist_pkginclude_HEADERS) | |
97a9a385 | 52 | |
173090e6 MW |
53 | sod-base.c: $(SOD); $(V_SOD_c)$(SOD) -tc --builtin |
54 | sod-base.h: $(SOD); $(V_SOD_h)$(SOD) -th --builtin | |
97a9a385 | 55 | |
47de28ae MW |
56 | ###-------------------------------------------------------------------------- |
57 | ### Manual pages. | |
58 | ||
59 | dist_man_MANS += sod.3 sod-structs.3 | |
60 | ||
97a9a385 | 61 | ###----- That's all, folks -------------------------------------------------- |