1## ================================================ 2## 3## Automake definitions for the LiDIA library stuff 4## 5## ================================================ 6 7AUTOMAKE_OPTIONS = 1.5 nostdinc 8 9ETAGS_ARGS = -C -l c++ 10 11include $(top_srcdir)/Paths.def 12 13 14## -------------- 15## SUBDIRECTORIES 16## -------------- 17 18SUBDIRS = $(PKG_DIRS) 19DIST_SUBDIRS = $(PKG_DIRS) 20 21 22## ------------- 23## WHAT TO BUILD 24## ------------- 25 26## Specifications for `libLiDIA.la'. 27## All source files are compiled in the $(SUBDIRS), so we just link 28## the resulting libtool convenience archives $(LIDIA_LTCLIBS) here. 29## Do not add $(LIBS) to libLiDIA_la_LIBADD, they are linked in anyway. 30 31lib_LTLIBRARIES = libLiDIA.la 32libLiDIA_la_LIBADD = $(LIDIA_LTCLIBS) 33libLiDIA_la_DEPENDENCIES = $(LIDIA_LTCLIBS) 34libLiDIA_la_LDFLAGS = -version-info $(LIDIA_LTVERSION) 35libLiDIA_la_SOURCES = 36 37## Tell Automake to use the C++ linker. 38## This is necessary because no source files are specified here. 39 40CXXLD = $(CXX) 41libLiDIA_la_LINK = \ 42 $(LIBTOOL) --mode=link $(CXXLD) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 43 44 45## ---------------- 46## ADDITIONAL STUFF 47## ---------------- 48 49EXTRA_DIST = 50 51 52## ------------- 53## SPECIAL RULES 54## ------------- 55 56# # Some supplemental rules to ensure that "make libLiDIA.la" updates 57# # the sub-libraries like "make [all]" does. Unfortunately, they cause 58# # "make [all]" to recurse into $(SUBDIRS) twice, with the second pass 59# # re-checking all dependencies just for finding "nothing to be done" :-( 60# 61# $(LIDIA_LTCLIBS): .FORCE 62# cd $(@D) && $(MAKE) $(AM_MAKEFLAGS) $(@F) 63# 64# .PHONY: .FORCE 65# .FORCE: 66 67# When removing $(DISTFILES) in $(distdir), we need to make sure 68# that no files outside $(distdir) are deleted. 69RELDISTFILES = `echo ' $(DISTFILES)' | sed \ 70 -e 's, $(srcdir)[\\/], ,g' \ 71 -e 's, $(top_srcdir)\([\\/]\), $(top_builddir)\1,g'` 72 73# This directory is not specific to a certain sub-package, therefore all its 74# stuff goes into the base (or full) distribution and is removed from other 75# distributions. 76dist-hook: 77 case ' $(PKG_DIRS) ' in \ 78 *' base '*) ;; \ 79 *) (cd $(distdir) && rm -rf $(RELDISTFILES)) ;; \ 80 esac 81 82# Delete half-made targets when their commands fail 83.DELETE_ON_ERROR: 84 85