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

Last change on this file since 2898 was 2898, checked in by Sam Hocevar, 11 years ago

Reorganise MSVC files so that each project is with its source code.

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