Changeset cdf2e4 for src/Makefile.am


Ignore:
Timestamp:
Dec 22, 2010, 5:39:32 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
392a79
Parents:
70672e3
git-author:
Frederik Heber <heber@…> (12/22/10 17:20:51)
git-committer:
Frederik Heber <heber@…> (12/22/10 17:39:32)
Message:

From now on we create two libs, one with and one without debug.

  • We specifically create two libs, as the debug one is not just the old lib but with some debug symbols. MemDebug, Asserts and ObserverLog implementations are clearly missing in these. This justifies to have two distinct (in an odd way) libraries.
  • additional CodePattern-debug.pc file
  • extended ax_codepatterns.m4 macro to have debug as an extra argument
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Makefile.am

    r70672e3 rcdf2e4  
    7373
    7474##-@CODEPATTERNS_API_VERSION@
    75 lib_LTLIBRARIES = libCodePatterns.la
     75lib_LTLIBRARIES = libCodePatterns.la libCodePatterns-debug.la
    7676libCodePatterns_LIBS = $(BOOST_THREAD_LIB)
     77libCodePatterns_debug_LIBS = $(BOOST_THREAD_LIB)
     78
     79libCodePatterns_la_CPPFLAGS = -DNDEBUG -DNO_MEMDEBUG
     80libCodePatterns_debug_la_CPPFLAGS = -DMEMDEBUG -DLOG_OBSERVER
    7781
    7882## Define the source file list for the "libexample-@CODEPATTERNS_API_VERSION@.la"
     
    8690#-$(CODEPATTERNS_API_VERSION)
    8791libCodePatterns_la_SOURCES = ${HELPERSSOURCE}
     92libCodePatterns_debug_la_SOURCES = ${HELPERSSOURCE}
    8893
    8994## Instruct libtool to include ABI version information in the generated shared
     
    9297#-$(CODEPATTERNS_API_VERSION)
    9398libCodePatterns_la_LDFLAGS = -version-info $(CODEPATTERNS_SO_VERSION)
     99libCodePatterns_debug_la_LDFLAGS = -version-info $(CODEPATTERNS_SO_VERSION)
    94100
    95101## The generated configuration header is installed in its own subdirectory of
     
    113119## in which case the correct install location would be $(datadir)/pkgconfig.
    114120pkgconfigdir = $(libdir)/pkgconfig
    115 pkgconfig_DATA = $(top_builddir)/CodePatterns.pc
     121pkgconfig_DATA = $(top_builddir)/CodePatterns.pc $(top_builddir)/CodePatterns-debug.pc
    116122
    117123FORCE:
Note: See TracChangeset for help on using the changeset viewer.