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

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

Support for platforms where shared libraries are not called *.so.

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
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
24install-exec-local:
25        $(mkinstalldirs) $(DESTDIR)$(libdir)
26        dllext=$$(grep dlname libcaca++.la | cut -f2 -d.); \
27        ln -sf libcaca++.$$dllext $(DESTDIR)$(libdir)/libcucul++.$$dllext; \
28        ln -sf libcaca++.$$dllext.0 $(DESTDIR)$(libdir)/libcucul++.$$dllext.0
29
30install-data-local:
31        $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
32        ln -sf caca++.pc $(DESTDIR)$(pkgconfigdir)/cucul++.pc
33
34uninstall-local:
35        rm -f $(DESTDIR)$(libdir)/libcucul++.so
36        rm -f $(DESTDIR)$(libdir)/libcucul++.so.0
37        rm -f $(DESTDIR)$(libdir)/libcucul++.sl
38        rm -f $(DESTDIR)$(libdir)/libcucul++.sl.0
39        rm -f $(DESTDIR)$(libdir)/libcucul++.dylib
40        rm -f $(DESTDIR)$(libdir)/libcucul++.dylib.0
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.