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

Last change on this file since 2958 was 2958, checked in by Sam Hocevar, 12 years ago

Do not attempt to create libcaca++ symlinks if C++ support was disabled.

File size: 1.2 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
33install-data-local:
34        $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
35        ln -sf caca++.pc $(DESTDIR)$(pkgconfigdir)/cucul++.pc
36endif
37
38uninstall-local:
39        . libcaca++.la; \
40        for x in $$library_names; do \
41          rm -f $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
42        done
43        rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
44        rm -f $(DESTDIR)$(pkgconfigdir)/cucul++.pc
45        rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true
46
Note: See TracBrowser for help on using the repository browser.