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 | ### | |
10 | ### This file is part of the Sensble Object Design, an object system for C. | |
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 | ||
26 | lib_LTLIBRARIES = libsod.la | |
27 | libsod_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) | |
28 | ||
29 | libsod_la_SOURCES = | |
30 | include_HEADERS = | |
31 | ||
32 | nodist_libsod_la_SOURCES = | |
33 | nodist_include_HEADERS = | |
34 | ||
35 | SOD = $(top_builddir)/src/sod | |
36 | ||
37 | BUILT_SOURCES = | |
38 | ||
39 | ###-------------------------------------------------------------------------- | |
40 | ### The source files. | |
41 | ||
42 | libsod_la_SOURCES += sod.c | |
43 | include_HEADERS += sod.h | |
44 | ||
45 | ###-------------------------------------------------------------------------- | |
46 | ### Generated builtin module. | |
47 | ||
48 | BUILT_SOURCES += sod-base.c sod-base.h | |
49 | nodist_libsod_la_SOURCES+= sod-base.c | |
50 | nodist_include_HEADERS += sod-base.h | |
51 | ||
52 | sod-base.c: $(SOD) | |
53 | $(SOD) -tc --builtin | |
54 | ||
55 | sod-base.h: $(SOD) | |
56 | $(SOD) -th --builtin | |
57 | ||
58 | ###----- That's all, folks -------------------------------------------------- |