[245] | 1 | |
---|
| 2 | lib_LTLIBRARIES = libconfig.la |
---|
| 3 | |
---|
| 4 | if BUILDCXX |
---|
| 5 | lib_LTLIBRARIES += libconfig++.la |
---|
| 6 | endif |
---|
| 7 | |
---|
| 8 | # Versioning rules ( C:R:A ) |
---|
| 9 | # |
---|
| 10 | # 1. Start with version 0:0:0. |
---|
| 11 | # 2. If any of the sources have changed, increment R. This is a new revision |
---|
| 12 | # of the current interface. |
---|
| 13 | # 3. If the interface has changed, increment C and set R to 0. This is the |
---|
| 14 | # first revision of a new interface. |
---|
| 15 | # 4. If the new interface is a superset of the previous interface |
---|
| 16 | # (that is, if the previous interface has not been broken by the |
---|
| 17 | # changes in this new release), increment A. This release is backwards |
---|
| 18 | # compatible with the previous release. |
---|
| 19 | # 5. If the new interface has removed elements with respect to the |
---|
| 20 | # previous interface, then backward compatibility is broken; set A to 0. |
---|
| 21 | # This release has a new, but backwards incompatible interface. |
---|
| 22 | # |
---|
| 23 | # For more info see section 6.3 of the GNU Libtool Manual. |
---|
| 24 | |
---|
| 25 | VERINFO = -version-info 7:1:1 |
---|
| 26 | |
---|
| 27 | PARSER_PREFIX = libconfig_yy |
---|
| 28 | |
---|
| 29 | libconfig_la_LDFLAGS = $(VERINFO) -no-undefined |
---|
| 30 | |
---|
| 31 | libconfig___la_LDFLAGS = $(VERINFO) -no-undefined |
---|
| 32 | |
---|
| 33 | libsrc = libconfig.c scanner.l grammar.y private.h wincompat.h |
---|
| 34 | libinc = libconfig.h |
---|
| 35 | |
---|
| 36 | libsrc_cpp = $(libsrc) libconfigcpp.c++ |
---|
| 37 | libinc_cpp = $(libinc) libconfig.h++ |
---|
| 38 | |
---|
| 39 | BUILT_SOURCES = scanner.c scanner.h grammar.c grammar.h |
---|
| 40 | |
---|
| 41 | libconfig_la_SOURCES = $(libsrc) |
---|
| 42 | |
---|
| 43 | libconfig___la_SOURCES = $(libsrc_cpp) |
---|
| 44 | |
---|
| 45 | libcppflags = -D_REENTRANT |
---|
| 46 | |
---|
| 47 | if GNU_WIN |
---|
| 48 | libcppflags += -DLIBCONFIG_EXPORTS |
---|
| 49 | endif |
---|
| 50 | |
---|
| 51 | libconfig_la_CPPFLAGS = -DPARSER_PREFIX=\"$(PARSER_PREFIX)\" $(libcppflags) |
---|
| 52 | libconfig___la_CPPFLAGS = -DPARSER_PREFIX=\"$(PARSER_PREFIX)\" $(libcppflags) |
---|
| 53 | |
---|
| 54 | include_HEADERS = $(libinc) |
---|
| 55 | |
---|
| 56 | if BUILDCXX |
---|
| 57 | include_HEADERS += $(libinc_cpp) |
---|
| 58 | endif |
---|
| 59 | |
---|
| 60 | AM_YFLAGS = -d -p $(PARSER_PREFIX) |
---|
| 61 | |
---|
| 62 | AM_LFLAGS = --header-file=scanner.h --prefix=$(PARSER_PREFIX) |
---|
| 63 | |
---|
| 64 | EXTRA_DIST = \ |
---|
| 65 | $(BUILT_SOURCES) \ |
---|
| 66 | libconfig++.vcproj \ |
---|
| 67 | libconfig++_stub.vcproj \ |
---|
| 68 | libconfig.vcproj \ |
---|
| 69 | libconfig_stub.vcproj \ |
---|
| 70 | libconfig.sln \ |
---|
| 71 | test.cfg \ |
---|
| 72 | TODO \ |
---|
| 73 | debian/changelog \ |
---|
| 74 | debian/compat \ |
---|
| 75 | debian/control \ |
---|
| 76 | debian/copyright \ |
---|
| 77 | debian/libconfigduo2-dev.docs \ |
---|
| 78 | debian/libconfigduo2-dev.install \ |
---|
| 79 | debian/libconfigduo2.install \ |
---|
| 80 | debian/libconfigduo2.postinst \ |
---|
| 81 | debian/shlibs \ |
---|
| 82 | debian/rules \ |
---|
| 83 | libconfig.spec \ |
---|
| 84 | libconfigcpp.cc libconfig.hh |
---|
| 85 | |
---|
| 86 | pkgconfigdir = $(libdir)/pkgconfig |
---|
| 87 | |
---|
| 88 | pkgconfig_DATA = libconfig.pc |
---|
| 89 | |
---|
| 90 | if BUILDCXX |
---|
| 91 | pkgconfig_DATA += libconfig++.pc |
---|
| 92 | endif |
---|
| 93 | |
---|
| 94 | SUBDIRS = . samples doc |
---|
| 95 | |
---|
| 96 | .PHONY: dist-rpm |
---|
| 97 | |
---|
| 98 | dist-rpm: distcheck |
---|
| 99 | rpmbuild -ta $(distdir).tar.gz |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | msvc7: |
---|
| 103 | find . -name '*\.vcproj' | grep -v '7' \ |
---|
| 104 | | while read x; do \ |
---|
| 105 | d=`dirname $$x`; \ |
---|
| 106 | y=`basename $$x .vcproj`-msvc7.vcproj; \ |
---|
| 107 | rm -f $$d/$$y; \ |
---|
| 108 | perl -p -e 's/Version="8.00"/Version="7.10"/g' < $$x > $$d/$$y; \ |
---|
| 109 | done; \ |
---|
| 110 | rm -f libconfig-msvc7.sln libconfig-msvc7.sln.tmp; \ |
---|
| 111 | perl -p -e 's/Version 9.00/Version 8.00/g' < libconfig.sln \ |
---|
| 112 | > libconfig-msvc7.sln.tmp; \ |
---|
| 113 | perl -p -e 's/\.vcproj/-msvc7.vcproj/g' \ |
---|
| 114 | < libconfig-msvc7.sln.tmp > libconfig-msvc7.sln; \ |
---|
| 115 | rm -f libconfig-msvc7.sln.tmp |
---|