root/library/bdm/base/libconfig/Makefile.am @ 652

Revision 248, 2.9 kB (checked in by smidl, 15 years ago)

doc

Line 
1
2lib_LTLIBRARIES = libconfig.la
3
4if BUILDCXX
5lib_LTLIBRARIES += libconfig++.la
6endif
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
25VERINFO = -version-info 7:1:1
26
27PARSER_PREFIX = libconfig_yy
28
29libconfig_la_LDFLAGS = $(VERINFO) -no-undefined
30
31libconfig___la_LDFLAGS = $(VERINFO) -no-undefined
32
33libsrc = libconfig.c scanner.l grammar.y private.h wincompat.h
34libinc = libconfig.h
35
36libsrc_cpp =  $(libsrc) libconfigcpp.c++
37libinc_cpp =  $(libinc) libconfig.h++
38
39BUILT_SOURCES = scanner.c scanner.h grammar.c grammar.h
40
41libconfig_la_SOURCES = $(libsrc)
42
43libconfig___la_SOURCES = $(libsrc_cpp)
44
45libcppflags = -D_REENTRANT
46
47if GNU_WIN
48libcppflags += -DLIBCONFIG_EXPORTS
49endif
50
51libconfig_la_CPPFLAGS = -DPARSER_PREFIX=\"$(PARSER_PREFIX)\" $(libcppflags)
52libconfig___la_CPPFLAGS = -DPARSER_PREFIX=\"$(PARSER_PREFIX)\" $(libcppflags)
53
54include_HEADERS = $(libinc)
55
56if BUILDCXX
57include_HEADERS += $(libinc_cpp)
58endif
59
60AM_YFLAGS = -d -p $(PARSER_PREFIX)
61
62AM_LFLAGS = --header-file=scanner.h --prefix=$(PARSER_PREFIX)
63
64EXTRA_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
86pkgconfigdir = $(libdir)/pkgconfig
87
88pkgconfig_DATA = libconfig.pc
89
90if BUILDCXX
91pkgconfig_DATA += libconfig++.pc
92endif
93
94SUBDIRS = . samples doc
95
96.PHONY: dist-rpm
97
98dist-rpm: distcheck
99        rpmbuild -ta $(distdir).tar.gz
100
101
102msvc7:
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
Note: See TracBrowser for help on using the browser.