source: libcaca/trunk/cxx/Makefile.am @ 3323

Last change on this file since 3323 was 3323, checked in by sam, 5 years ago

Create a libcucul.la symlink for distributions such as Gentoo which may
rely on .la files for library dependencies.

File size: 1.3 KB
Line 
1# $Id: Makefile.am 552 2006-04-13 16:10:16Z jylam $
2
3AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/caca -I../caca
4
5EXTRA_DIST = libcaca++.vcproj libcaca++.def test-cxx.vcproj
6if USE_CXX
7pkgconfig_DATA = caca++.pc
8pkgconfigdir = $(libdir)/pkgconfig
9
10include_HEADERS = caca++.h
11lib_LTLIBRARIES = libcaca++.la
12endif
13
14libcaca___la_SOURCES = caca++.cpp caca++.h
15libcaca___la_LDFLAGS = -no-undefined -version-number @LT_VERSION@
16libcaca___la_LIBADD = ../caca/libcaca.la
17
18if USE_CXX
19noinst_PROGRAMS = cxxtest
20endif
21
22cxxtest_SOURCES = cxxtest.cpp
23cxxtest_LDADD = libcaca++.la ../caca/libcaca.la
24
25if USE_CXX
26install-exec-local:
27        $(mkinstalldirs) $(DESTDIR)$(libdir)
28        . libcaca++.la; \
29        for x in $$library_names; do \
30          ln -sf $$x $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
31        done
32        ln -sf libcaca++.la $(DESTDIR)$(libdir)/libcucul++.la
33
34install-data-local:
35        $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
36        ln -sf caca++.pc $(DESTDIR)$(pkgconfigdir)/cucul++.pc
37endif
38
39uninstall-local:
40        . libcaca++.la; \
41        for x in $$library_names; do \
42          rm -f $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
43        done
44        rm -f $(DESTDIR)$(libdir)/libcucul++.la
45        rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
46        rm -f $(DESTDIR)$(pkgconfigdir)/cucul++.pc
47        rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true
48
Note: See TracBrowser for help on using the repository browser.