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

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

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

File size: 1.3 KB
RevLine 
[781]1# $Id: Makefile.am 552 2006-04-13 16:10:16Z jylam $
2
[2821]3AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/caca -I../caca
[809]4
[2424]5if USE_CXX
[2821]6pkgconfig_DATA = caca++.pc
[2423]7pkgconfigdir = $(libdir)/pkgconfig
8
[2821]9include_HEADERS = caca++.h
10lib_LTLIBRARIES = libcaca++.la
[837]11endif
[781]12
[2822]13libcaca___la_SOURCES = caca++.cpp caca++.h
[2087]14libcaca___la_LDFLAGS = -no-undefined -version-number @LT_VERSION@
[2821]15libcaca___la_LIBADD = ../caca/libcaca.la
[781]16
[899]17if USE_CXX
[1156]18noinst_PROGRAMS = cxxtest
[837]19endif
[781]20
[1156]21cxxtest_SOURCES = cxxtest.cpp
[2821]22cxxtest_LDADD = libcaca++.la ../caca/libcaca.la
[781]23
[2831]24install-exec-local:
25        $(mkinstalldirs) $(DESTDIR)$(libdir)
[2850]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
[2830]29
[2831]30install-data-local:
31        $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
32        ln -sf caca++.pc $(DESTDIR)$(pkgconfigdir)/cucul++.pc
33
34uninstall-local:
[2830]35        rm -f $(DESTDIR)$(libdir)/libcucul++.so
36        rm -f $(DESTDIR)$(libdir)/libcucul++.so.0
[2850]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
[2831]41        rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
42        rm -f $(DESTDIR)$(pkgconfigdir)/cucul++.pc
43        rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true
[2830]44
Note: See TracBrowser for help on using the repository browser.