changed makefile.am to make awk modules installable with 'install-exec'

This commit is contained in:
hyung-hwan 2013-02-28 17:49:12 +00:00
parent a426fe24f4
commit d0897866a4
2 changed files with 43 additions and 40 deletions

View File

@ -66,28 +66,28 @@ CPPFLAGS_MOD_COMMON = $(CPPFLAGS_ALL_COMMON)
LDFLAGS_MOD_COMMON = $(LDFLAGS_ALL_COMMON) LDFLAGS_MOD_COMMON = $(LDFLAGS_ALL_COMMON)
LIBADD_MOD_COMMON = -lqseawk -lqsecmn LIBADD_MOD_COMMON = -lqseawk -lqsecmn
moddir = $(libdir) modexecdir = $(libdir)
mod_LTLIBRARIES = libqseawk-dir.la modexec_LTLIBRARIES = libqseawk-dir.la
libqseawk_dir_la_SOURCES = mod-dir.c mod-dir.h libqseawk_dir_la_SOURCES = mod-dir.c mod-dir.h
libqseawk_dir_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON) libqseawk_dir_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON)
libqseawk_dir_la_LDFLAGS = $(LDFLAGS_MOD_COMMON) libqseawk_dir_la_LDFLAGS = $(LDFLAGS_MOD_COMMON)
libqseawk_dir_la_LIBADD = $(LIBADD_MOD_COMMON) libqseawk_dir_la_LIBADD = $(LIBADD_MOD_COMMON)
mod_LTLIBRARIES += libqseawk-str.la modexec_LTLIBRARIES += libqseawk-str.la
libqseawk_str_la_SOURCES = mod-str.c mod-str.h libqseawk_str_la_SOURCES = mod-str.c mod-str.h
libqseawk_str_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON) libqseawk_str_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON)
libqseawk_str_la_LDFLAGS = $(LDFLAGS_MOD_COMMON) libqseawk_str_la_LDFLAGS = $(LDFLAGS_MOD_COMMON)
libqseawk_str_la_LIBADD = $(LIBADD_MOD_COMMON) libqseawk_str_la_LIBADD = $(LIBADD_MOD_COMMON)
mod_LTLIBRARIES += libqseawk-sys.la modexec_LTLIBRARIES += libqseawk-sys.la
libqseawk_sys_la_SOURCES = mod-sys.c mod-sys.h libqseawk_sys_la_SOURCES = mod-sys.c mod-sys.h
libqseawk_sys_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON) libqseawk_sys_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON)
libqseawk_sys_la_LDFLAGS = $(LDFLAGS_MOD_COMMON) libqseawk_sys_la_LDFLAGS = $(LDFLAGS_MOD_COMMON)
libqseawk_sys_la_LIBADD = $(LIBADD_MOD_COMMON) libqseawk_sys_la_LIBADD = $(LIBADD_MOD_COMMON)
if HAVE_C_MPI if HAVE_C_MPI
mod_LTLIBRARIES += libqseawk-mpi.la modexec_LTLIBRARIES += libqseawk-mpi.la
libqseawk_mpi_la_SOURCES = mod-mpi.c mod-mpi.h libqseawk_mpi_la_SOURCES = mod-mpi.c mod-mpi.h
libqseawk_mpi_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON) $(MPI_CFLAGS) libqseawk_mpi_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON) $(MPI_CFLAGS)
libqseawk_mpi_la_LDFLAGS = $(LDFLAGS_MOD_COMMON) $(MPI_CLDFLAGS) libqseawk_mpi_la_LDFLAGS = $(LDFLAGS_MOD_COMMON) $(MPI_CLDFLAGS)
@ -95,7 +95,7 @@ libqseawk_mpi_la_LIBADD = $(LIBADD_MOD_COMMON)
endif endif
if HAVE_LIBUCI if HAVE_LIBUCI
mod_LTLIBRARIES += libqseawk-uci.la modexec_LTLIBRARIES += libqseawk-uci.la
libqseawk_uci_la_SOURCES = mod-uci.c mod-uci.h libqseawk_uci_la_SOURCES = mod-uci.c mod-uci.h
libqseawk_uci_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON) libqseawk_uci_la_CPPFLAGS = $(CPPFLAGS_MOD_COMMON)
libqseawk_uci_la_LDFLAGS = $(LDFLAGS_MOD_COMMON) libqseawk_uci_la_LDFLAGS = $(LDFLAGS_MOD_COMMON)

View File

@ -98,8 +98,8 @@ am__uninstall_files_from_dir = { \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \ $(am__cd) "$$dir" && rm -f $$files; }; \
} }
am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(moddir)" am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(modexecdir)"
LTLIBRARIES = $(lib_LTLIBRARIES) $(mod_LTLIBRARIES) LTLIBRARIES = $(lib_LTLIBRARIES) $(modexec_LTLIBRARIES)
am__DEPENDENCIES_1 = am__DEPENDENCIES_1 =
@ENABLE_STATIC_MODULE_FALSE@libqseawk_dir_la_DEPENDENCIES = \ @ENABLE_STATIC_MODULE_FALSE@libqseawk_dir_la_DEPENDENCIES = \
@ENABLE_STATIC_MODULE_FALSE@ $(am__DEPENDENCIES_1) @ENABLE_STATIC_MODULE_FALSE@ $(am__DEPENDENCIES_1)
@ -115,7 +115,7 @@ libqseawk_dir_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
$(AM_CFLAGS) $(CFLAGS) $(libqseawk_dir_la_LDFLAGS) $(LDFLAGS) \ $(AM_CFLAGS) $(CFLAGS) $(libqseawk_dir_la_LDFLAGS) $(LDFLAGS) \
-o $@ -o $@
@ENABLE_STATIC_MODULE_FALSE@am_libqseawk_dir_la_rpath = -rpath \ @ENABLE_STATIC_MODULE_FALSE@am_libqseawk_dir_la_rpath = -rpath \
@ENABLE_STATIC_MODULE_FALSE@ $(moddir) @ENABLE_STATIC_MODULE_FALSE@ $(modexecdir)
@ENABLE_STATIC_MODULE_FALSE@@HAVE_C_MPI_TRUE@libqseawk_mpi_la_DEPENDENCIES = $(am__DEPENDENCIES_1) @ENABLE_STATIC_MODULE_FALSE@@HAVE_C_MPI_TRUE@libqseawk_mpi_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
am__libqseawk_mpi_la_SOURCES_DIST = mod-mpi.c mod-mpi.h am__libqseawk_mpi_la_SOURCES_DIST = mod-mpi.c mod-mpi.h
@ENABLE_STATIC_MODULE_FALSE@@HAVE_C_MPI_TRUE@am_libqseawk_mpi_la_OBJECTS = libqseawk_mpi_la-mod-mpi.lo @ENABLE_STATIC_MODULE_FALSE@@HAVE_C_MPI_TRUE@am_libqseawk_mpi_la_OBJECTS = libqseawk_mpi_la-mod-mpi.lo
@ -125,7 +125,8 @@ libqseawk_mpi_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
$(AM_CFLAGS) $(CFLAGS) $(libqseawk_mpi_la_LDFLAGS) $(LDFLAGS) \ $(AM_CFLAGS) $(CFLAGS) $(libqseawk_mpi_la_LDFLAGS) $(LDFLAGS) \
-o $@ -o $@
@ENABLE_STATIC_MODULE_FALSE@@HAVE_C_MPI_TRUE@am_libqseawk_mpi_la_rpath = \ @ENABLE_STATIC_MODULE_FALSE@@HAVE_C_MPI_TRUE@am_libqseawk_mpi_la_rpath = \
@ENABLE_STATIC_MODULE_FALSE@@HAVE_C_MPI_TRUE@ -rpath $(moddir) @ENABLE_STATIC_MODULE_FALSE@@HAVE_C_MPI_TRUE@ -rpath \
@ENABLE_STATIC_MODULE_FALSE@@HAVE_C_MPI_TRUE@ $(modexecdir)
@ENABLE_STATIC_MODULE_FALSE@libqseawk_str_la_DEPENDENCIES = \ @ENABLE_STATIC_MODULE_FALSE@libqseawk_str_la_DEPENDENCIES = \
@ENABLE_STATIC_MODULE_FALSE@ $(am__DEPENDENCIES_1) @ENABLE_STATIC_MODULE_FALSE@ $(am__DEPENDENCIES_1)
am__libqseawk_str_la_SOURCES_DIST = mod-str.c mod-str.h am__libqseawk_str_la_SOURCES_DIST = mod-str.c mod-str.h
@ -137,7 +138,7 @@ libqseawk_str_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
$(AM_CFLAGS) $(CFLAGS) $(libqseawk_str_la_LDFLAGS) $(LDFLAGS) \ $(AM_CFLAGS) $(CFLAGS) $(libqseawk_str_la_LDFLAGS) $(LDFLAGS) \
-o $@ -o $@
@ENABLE_STATIC_MODULE_FALSE@am_libqseawk_str_la_rpath = -rpath \ @ENABLE_STATIC_MODULE_FALSE@am_libqseawk_str_la_rpath = -rpath \
@ENABLE_STATIC_MODULE_FALSE@ $(moddir) @ENABLE_STATIC_MODULE_FALSE@ $(modexecdir)
@ENABLE_STATIC_MODULE_FALSE@libqseawk_sys_la_DEPENDENCIES = \ @ENABLE_STATIC_MODULE_FALSE@libqseawk_sys_la_DEPENDENCIES = \
@ENABLE_STATIC_MODULE_FALSE@ $(am__DEPENDENCIES_1) @ENABLE_STATIC_MODULE_FALSE@ $(am__DEPENDENCIES_1)
am__libqseawk_sys_la_SOURCES_DIST = mod-sys.c mod-sys.h am__libqseawk_sys_la_SOURCES_DIST = mod-sys.c mod-sys.h
@ -149,7 +150,7 @@ libqseawk_sys_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
$(AM_CFLAGS) $(CFLAGS) $(libqseawk_sys_la_LDFLAGS) $(LDFLAGS) \ $(AM_CFLAGS) $(CFLAGS) $(libqseawk_sys_la_LDFLAGS) $(LDFLAGS) \
-o $@ -o $@
@ENABLE_STATIC_MODULE_FALSE@am_libqseawk_sys_la_rpath = -rpath \ @ENABLE_STATIC_MODULE_FALSE@am_libqseawk_sys_la_rpath = -rpath \
@ENABLE_STATIC_MODULE_FALSE@ $(moddir) @ENABLE_STATIC_MODULE_FALSE@ $(modexecdir)
@ENABLE_STATIC_MODULE_FALSE@@HAVE_LIBUCI_TRUE@libqseawk_uci_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ @ENABLE_STATIC_MODULE_FALSE@@HAVE_LIBUCI_TRUE@libqseawk_uci_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
@ENABLE_STATIC_MODULE_FALSE@@HAVE_LIBUCI_TRUE@ $(am__DEPENDENCIES_1) @ENABLE_STATIC_MODULE_FALSE@@HAVE_LIBUCI_TRUE@ $(am__DEPENDENCIES_1)
am__libqseawk_uci_la_SOURCES_DIST = mod-uci.c mod-uci.h am__libqseawk_uci_la_SOURCES_DIST = mod-uci.c mod-uci.h
@ -160,7 +161,8 @@ libqseawk_uci_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
$(AM_CFLAGS) $(CFLAGS) $(libqseawk_uci_la_LDFLAGS) $(LDFLAGS) \ $(AM_CFLAGS) $(CFLAGS) $(libqseawk_uci_la_LDFLAGS) $(LDFLAGS) \
-o $@ -o $@
@ENABLE_STATIC_MODULE_FALSE@@HAVE_LIBUCI_TRUE@am_libqseawk_uci_la_rpath = \ @ENABLE_STATIC_MODULE_FALSE@@HAVE_LIBUCI_TRUE@am_libqseawk_uci_la_rpath = \
@ENABLE_STATIC_MODULE_FALSE@@HAVE_LIBUCI_TRUE@ -rpath $(moddir) @ENABLE_STATIC_MODULE_FALSE@@HAVE_LIBUCI_TRUE@ -rpath \
@ENABLE_STATIC_MODULE_FALSE@@HAVE_LIBUCI_TRUE@ $(modexecdir)
am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
@ENABLE_STATIC_MODULE_TRUE@@HAVE_LIBUCI_TRUE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) @ENABLE_STATIC_MODULE_TRUE@@HAVE_LIBUCI_TRUE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1)
libqseawk_la_DEPENDENCIES = $(am__DEPENDENCIES_2) \ libqseawk_la_DEPENDENCIES = $(am__DEPENDENCIES_2) \
@ -457,8 +459,8 @@ libqseawk_la_LIBADD = $(LIBADD_LIB_COMMON) $(am__append_9)
@ENABLE_STATIC_MODULE_FALSE@CPPFLAGS_MOD_COMMON = $(CPPFLAGS_ALL_COMMON) @ENABLE_STATIC_MODULE_FALSE@CPPFLAGS_MOD_COMMON = $(CPPFLAGS_ALL_COMMON)
@ENABLE_STATIC_MODULE_FALSE@LDFLAGS_MOD_COMMON = $(LDFLAGS_ALL_COMMON) @ENABLE_STATIC_MODULE_FALSE@LDFLAGS_MOD_COMMON = $(LDFLAGS_ALL_COMMON)
@ENABLE_STATIC_MODULE_FALSE@LIBADD_MOD_COMMON = -lqseawk -lqsecmn @ENABLE_STATIC_MODULE_FALSE@LIBADD_MOD_COMMON = -lqseawk -lqsecmn
@ENABLE_STATIC_MODULE_FALSE@moddir = $(libdir) @ENABLE_STATIC_MODULE_FALSE@modexecdir = $(libdir)
@ENABLE_STATIC_MODULE_FALSE@mod_LTLIBRARIES = libqseawk-dir.la \ @ENABLE_STATIC_MODULE_FALSE@modexec_LTLIBRARIES = libqseawk-dir.la \
@ENABLE_STATIC_MODULE_FALSE@ libqseawk-str.la libqseawk-sys.la \ @ENABLE_STATIC_MODULE_FALSE@ libqseawk-str.la libqseawk-sys.la \
@ENABLE_STATIC_MODULE_FALSE@ $(am__append_10) $(am__append_11) @ENABLE_STATIC_MODULE_FALSE@ $(am__append_10) $(am__append_11)
@ENABLE_STATIC_MODULE_FALSE@libqseawk_dir_la_SOURCES = mod-dir.c mod-dir.h @ENABLE_STATIC_MODULE_FALSE@libqseawk_dir_la_SOURCES = mod-dir.c mod-dir.h
@ -546,32 +548,32 @@ clean-libLTLIBRARIES:
echo "rm -f \"$${dir}/so_locations\""; \ echo "rm -f \"$${dir}/so_locations\""; \
rm -f "$${dir}/so_locations"; \ rm -f "$${dir}/so_locations"; \
done done
install-modLTLIBRARIES: $(mod_LTLIBRARIES) install-modexecLTLIBRARIES: $(modexec_LTLIBRARIES)
@$(NORMAL_INSTALL) @$(NORMAL_INSTALL)
test -z "$(moddir)" || $(MKDIR_P) "$(DESTDIR)$(moddir)" test -z "$(modexecdir)" || $(MKDIR_P) "$(DESTDIR)$(modexecdir)"
@list='$(mod_LTLIBRARIES)'; test -n "$(moddir)" || list=; \ @list='$(modexec_LTLIBRARIES)'; test -n "$(modexecdir)" || list=; \
list2=; for p in $$list; do \ list2=; for p in $$list; do \
if test -f $$p; then \ if test -f $$p; then \
list2="$$list2 $$p"; \ list2="$$list2 $$p"; \
else :; fi; \ else :; fi; \
done; \ done; \
test -z "$$list2" || { \ test -z "$$list2" || { \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(moddir)'"; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(modexecdir)'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(moddir)"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(modexecdir)"; \
} }
uninstall-modLTLIBRARIES: uninstall-modexecLTLIBRARIES:
@$(NORMAL_UNINSTALL) @$(NORMAL_UNINSTALL)
@list='$(mod_LTLIBRARIES)'; test -n "$(moddir)" || list=; \ @list='$(modexec_LTLIBRARIES)'; test -n "$(modexecdir)" || list=; \
for p in $$list; do \ for p in $$list; do \
$(am__strip_dir) \ $(am__strip_dir) \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(moddir)/$$f'"; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(modexecdir)/$$f'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(moddir)/$$f"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(modexecdir)/$$f"; \
done done
clean-modLTLIBRARIES: clean-modexecLTLIBRARIES:
-test -z "$(mod_LTLIBRARIES)" || rm -f $(mod_LTLIBRARIES) -test -z "$(modexec_LTLIBRARIES)" || rm -f $(modexec_LTLIBRARIES)
@list='$(mod_LTLIBRARIES)'; for p in $$list; do \ @list='$(modexec_LTLIBRARIES)'; for p in $$list; do \
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
test "$$dir" != "$$p" || dir=.; \ test "$$dir" != "$$p" || dir=.; \
echo "rm -f \"$${dir}/so_locations\""; \ echo "rm -f \"$${dir}/so_locations\""; \
@ -917,7 +919,7 @@ check-am: all-am
check: check-am check: check-am
all-am: Makefile $(LTLIBRARIES) all-am: Makefile $(LTLIBRARIES)
installdirs: installdirs:
for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(moddir)"; do \ for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(modexecdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done done
install: install-am install: install-am
@ -953,7 +955,7 @@ maintainer-clean-generic:
clean: clean-am clean: clean-am
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
clean-modLTLIBRARIES mostlyclean-am clean-modexecLTLIBRARIES mostlyclean-am
distclean: distclean-am distclean: distclean-am
-rm -rf ./$(DEPDIR) -rm -rf ./$(DEPDIR)
@ -973,13 +975,13 @@ info: info-am
info-am: info-am:
install-data-am: install-modLTLIBRARIES install-data-am:
install-dvi: install-dvi-am install-dvi: install-dvi-am
install-dvi-am: install-dvi-am:
install-exec-am: install-libLTLIBRARIES install-exec-am: install-libLTLIBRARIES install-modexecLTLIBRARIES
install-html: install-html-am install-html: install-html-am
@ -1019,24 +1021,25 @@ ps: ps-am
ps-am: ps-am:
uninstall-am: uninstall-libLTLIBRARIES uninstall-modLTLIBRARIES uninstall-am: uninstall-libLTLIBRARIES uninstall-modexecLTLIBRARIES
.MAKE: install-am install-strip .MAKE: install-am install-strip
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
clean-libLTLIBRARIES clean-libtool clean-modLTLIBRARIES ctags \ clean-libLTLIBRARIES clean-libtool clean-modexecLTLIBRARIES \
distclean distclean-compile distclean-generic \ ctags distclean distclean-compile distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \ distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \ html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \ install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \ install-exec-am install-html install-html-am install-info \
install-info-am install-libLTLIBRARIES install-man \ install-info-am install-libLTLIBRARIES install-man \
install-modLTLIBRARIES install-pdf install-pdf-am install-ps \ install-modexecLTLIBRARIES install-pdf install-pdf-am \
install-ps-am install-strip installcheck installcheck-am \ install-ps install-ps-am install-strip installcheck \
installdirs maintainer-clean maintainer-clean-generic \ installcheck-am installdirs maintainer-clean \
mostlyclean mostlyclean-compile mostlyclean-generic \ maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
uninstall-am uninstall-libLTLIBRARIES uninstall-modLTLIBRARIES tags uninstall uninstall-am uninstall-libLTLIBRARIES \
uninstall-modexecLTLIBRARIES
# Tell versions [3.59,3.63) of GNU make to not export all variables. # Tell versions [3.59,3.63) of GNU make to not export all variables.