Update buildsys.
This commit is contained in:
parent
b04863f9b7
commit
30012e9536
3 changed files with 45 additions and 6 deletions
|
@ -60,6 +60,10 @@ PLUGIN_SUFFIX = @PLUGIN_SUFFIX@
|
|||
INSTALL_LIB = @INSTALL_LIB@
|
||||
UNINSTALL_LIB = @UNINSTALL_LIB@
|
||||
CLEAN_LIB = @CLEAN_LIB@
|
||||
CC_DEPENDS = @CC_DEPENDS@
|
||||
CXX_DEPENDS = @CXX_DEPENDS@
|
||||
OBJC_DEPENDS = @OBJC_DEPENDS@
|
||||
OBJCXX_DEPENDS = @OBJCXX_DEPENDS@
|
||||
LN_S = @LN_S@
|
||||
MKDIR_P = mkdir -p
|
||||
INSTALL = @INSTALL@
|
||||
|
@ -104,15 +108,17 @@ MO_FILES = ${LOCALES:.po=.mo}
|
|||
.SILENT:
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .beam .c .c.dep .cc .cc.dep .class .cxx .cxx.dep .d .erl .lib.o .java .mo .m .m.dep .mm .mm.dep .o .plugin.o .po .py .pyc .rc .S .S.dep .xpm
|
||||
.PHONY: all subdirs pre-depend depend install install-extra uninstall uninstall-extra clean distclean locales
|
||||
.PHONY: all subdirs pre-depend depend install install-extra uninstall uninstall-extra clean distclean locales ${SUBDIRS}
|
||||
|
||||
all:
|
||||
${MAKE} ${MFLAGS} subdirs
|
||||
${MAKE} ${MFLAGS} depend
|
||||
${MAKE} ${STATIC_LIB} ${STATIC_LIB_NOINST} ${STATIC_PIC_LIB} ${STATIC_PIC_LIB_NOINST} ${SHARED_LIB} ${SHARED_LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${PROG} ${PROG_NOINST} ${JARFILE} locales
|
||||
|
||||
subdirs:
|
||||
for i in ${SUBDIRS}; do \
|
||||
subdirs: ${SUBDIRS}
|
||||
|
||||
${SUBDIRS}:
|
||||
for i in $@; do \
|
||||
${DIR_ENTER}; \
|
||||
${MAKE} ${MFLAGS} || exit $$?; \
|
||||
${DIR_LEAVE}; \
|
||||
|
@ -124,9 +130,35 @@ depend: pre-depend ${SRCS}
|
|||
test -f .deps || regen=1; \
|
||||
for i in ${SRCS}; do \
|
||||
case $$i in \
|
||||
*.c | *.cc | *.cxx | *.m | *.mm | *.S) \
|
||||
test $$i -nt .deps && regen=1; \
|
||||
deps="$$deps $$i.dep"; \
|
||||
*.c) \
|
||||
if test x"${CC_DEPENDS}" = x"yes"; then \
|
||||
test $$i -nt .deps && regen=1; \
|
||||
deps="$$deps $$i.dep"; \
|
||||
fi; \
|
||||
;; \
|
||||
*.cc | *.cxx) \
|
||||
if test x"${CXX_DEPENDS}" = x"yes"; then \
|
||||
test $$i -nt .deps && regen=1; \
|
||||
deps="$$deps $$i.dep"; \
|
||||
fi; \
|
||||
;; \
|
||||
*.m) \
|
||||
if test x"${OBJC_DEPENDS}" = x"yes"; then \
|
||||
test $$i -nt .deps && regen=1; \
|
||||
deps="$$deps $$i.dep"; \
|
||||
fi; \
|
||||
;; \
|
||||
*.mm) \
|
||||
if test x"${OBJCXX_DEPENDS}" = x"yes"; then \
|
||||
test $$i -nt .deps && regen=1; \
|
||||
deps="$$deps $$i.dep"; \
|
||||
fi; \
|
||||
;; \
|
||||
*.S) \
|
||||
if test x"${AS_DEPENDS}" = x"yes"; then \
|
||||
test $$i -nt .deps && regen=1; \
|
||||
deps="$$deps $$i.dep"; \
|
||||
fi; \
|
||||
;; \
|
||||
esac; \
|
||||
done; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue