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

Last change on this file since 4340 was 4333, checked in by Sam Hocevar, 10 years ago

Large source code cleanup, getting rid of spaces, tabs, and svn keywords.

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