[a578a7] | 1 | LIBCAPITALNAMESOURCES = \
|
---|
| 2 | LIBSOURCES
|
---|
| 3 |
|
---|
| 4 | LIBCAPITALNAMEHEADERS = \
|
---|
| 5 | LIBHEADERS
|
---|
| 6 |
|
---|
[00f983] | 7 | lib_LTLIBRARIES +=
|
---|
| 8 | noinst_LTLIBRARIES += libNAME.la
|
---|
[a578a7] | 9 | libNAME_la_includedir = $(includedir)/PATHNAME
|
---|
| 10 | libNAME_la_CPPFLAGS = $(AM_CPPFLAGS)
|
---|
| 11 | libNAME_la_LDFLAGS = $(AM_LDFLAGS)
|
---|
| 12 | libNAME_la_LIBADD =
|
---|
| 13 |
|
---|
| 14 | nobase_libNAME_la_include_HEADERS = ${LIBCAPITALNAMEHEADERS}
|
---|
| 15 |
|
---|
| 16 | ## Define the source file list for the "libexample-@MPQC_API_VERSION@.la"
|
---|
| 17 | ## target. Note that @MPQC_API_VERSION@ is not interpreted by Automake and
|
---|
| 18 | ## will therefore be treated as if it were literally part of the target name,
|
---|
| 19 | ## and the variable name derived from that.
|
---|
| 20 | ## The file extension .cc is recognized by Automake, and makes it produce
|
---|
| 21 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
---|
| 22 | ## from each source file. Note that it is not necessary to list header files
|
---|
| 23 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
---|
[00f983] | 24 | libNAME_la_SOURCES = ${LIBCAPITALNAMESOURCES}
|
---|
[a578a7] | 25 |
|
---|
| 26 | ## Instruct libtool to include ABI version information in the generated shared
|
---|
| 27 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
---|
| 28 | ## that all version information is kept in one place.
|
---|
| 29 | #libNAME_la_LDFLAGS += $(AM_LDFLAGS) -version-info $(MPQC_SO_VERSION)
|
---|
| 30 |
|
---|
| 31 | ## The generated configuration header is installed in its own subdirectory of
|
---|
| 32 | ## $(libdir). The reason for this is that the configuration information put
|
---|
| 33 | ## into this header file describes the target platform the installed library
|
---|
| 34 | ## has been built for. Thus the file must not be installed into a location
|
---|
| 35 | ## intended for architecture-independent files, as defined by the Filesystem
|
---|
| 36 | ## Hierarchy Standard (FHS).
|
---|
| 37 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
---|
| 38 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
---|
| 39 | ## in _HEADERS variables are normally included in the distribution, but the
|
---|
| 40 | ## configuration header file is generated at configure time and should not be
|
---|
| 41 | ## shipped with the source tarball.
|
---|
| 42 | #libNAME_libincludedir = $(libdir)/PATHNAME/include
|
---|
| 43 | #nodist_libNAME_libinclude_HEADERS = $(top_builddir)/src/lib/scconfig.h
|
---|
| 44 |
|
---|
[00f983] | 45 | NAMETESTS =
|
---|
| 46 |
|
---|
| 47 | check_PROGRAMS += $(NAMETESTS)
|
---|
| 48 | noinst_PROGRAMS += $(NAMETESTS)
|
---|
| 49 |
|
---|
| 50 | NAMELIBS = \
|
---|
| 51 | libNAME.la
|
---|
| 52 |
|
---|
| 53 | #sometest_SOURCES = sometest.cc
|
---|
| 54 | #sometest_LDADD = \
|
---|
| 55 | $(NAMELIBS)
|
---|
| 56 |
|
---|
| 57 |
|
---|