| 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 Sensible 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 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. |
| 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 Library General Public License for more details. |
| 21 | ### |
| 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. |
| 26 | |
| 27 | include $(top_srcdir)/vars.am |
| 28 | |
| 29 | ###-------------------------------------------------------------------------- |
| 30 | ### The library. |
| 31 | |
| 32 | lib_LTLIBRARIES = libsod.la |
| 33 | libsod_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) |
| 34 | |
| 35 | libsod_la_SOURCES = |
| 36 | |
| 37 | nodist_libsod_la_SOURCES = |
| 38 | nodist_pkginclude_HEADERS = |
| 39 | |
| 40 | ###-------------------------------------------------------------------------- |
| 41 | ### The source files. |
| 42 | |
| 43 | pkginclude_HEADERS += keyword.h |
| 44 | libsod_la_SOURCES += keyword.c keyword-hosted.c |
| 45 | dist_man_MANS += keyword.3 |
| 46 | |
| 47 | pkginclude_HEADERS += sod.h |
| 48 | libsod_la_SOURCES += sod.c sod-hosted.c |
| 49 | dist_man_MANS += sod.3 |
| 50 | |
| 51 | ###-------------------------------------------------------------------------- |
| 52 | ### Generated builtin module. |
| 53 | |
| 54 | nodist_libsod_la_SOURCES += sod-base.c |
| 55 | nodist_pkginclude_HEADERS += sod-base.h |
| 56 | BUILT_SOURCES += $(nodist_libsod_la_SOURCES) \ |
| 57 | $(nodist_pkginclude_HEADERS) |
| 58 | |
| 59 | sod-base.c: $(SOD); $(V_SOD_c)$(SOD) -tc --builtin |
| 60 | sod-base.h: $(SOD); $(V_SOD_h)$(SOD) -th --builtin |
| 61 | |
| 62 | ###-------------------------------------------------------------------------- |
| 63 | ### Package-configuration file. |
| 64 | |
| 65 | pkgconfigdir = $(libdir)/pkgconfig |
| 66 | pkgconfig_DATA = sod.pc |
| 67 | CLEANFILES += sod.pc |
| 68 | EXTRA_DIST += sod.pc.in |
| 69 | |
| 70 | sod.pc: sod.pc.in Makefile |
| 71 | $(SUBST) $(srcdir)/sod.pc.in >$@.new $(SUBSTITUTIONS) && mv $@.new $@ |
| 72 | |
| 73 | ###-------------------------------------------------------------------------- |
| 74 | ### Autoconf machinery. |
| 75 | |
| 76 | aclocaldir = $(datadir)/aclocal |
| 77 | dist_aclocal_DATA = sod.m4 |
| 78 | |
| 79 | ###-------------------------------------------------------------------------- |
| 80 | ### Other manual pages. |
| 81 | |
| 82 | dist_man_MANS += sod-structs.3 |
| 83 | |
| 84 | ###----- That's all, folks -------------------------------------------------- |