kopia lustrzana https://github.com/Hamlib/Hamlib
configure.ac: Clean up the binding builds a bit.
A Perl file was being compile whether Perl binding was enabled or not. Fixed that and configured an AM_CONDITIONAL for Perl so its components will not be built when it is not enabled.Hamlib-3.0
rodzic
fb63c3b6f1
commit
00aaaf4c50
|
@ -5,20 +5,32 @@
|
||||||
|
|
||||||
AM_CPPFLAGS = @AM_CPPFLAGS@ -I$(top_srcdir)/bindings @TCL_INCLUDE_SPEC@ @PYTHON_CPPFLAGS@
|
AM_CPPFLAGS = @AM_CPPFLAGS@ -I$(top_srcdir)/bindings @TCL_INCLUDE_SPEC@ @PYTHON_CPPFLAGS@
|
||||||
|
|
||||||
|
AM_CFLAGS = -fno-strict-aliasing
|
||||||
|
|
||||||
SWGFILES = hamlib.swg ignore.swg rig.swg rotator.swg
|
SWGFILES = hamlib.swg ignore.swg rig.swg rotator.swg
|
||||||
|
|
||||||
SWGDEP=$(top_srcdir)/include/hamlib/rig.h $(top_srcdir)/include/hamlib/riglist.h \
|
SWGDEP=$(top_srcdir)/include/hamlib/rig.h $(top_srcdir)/include/hamlib/riglist.h \
|
||||||
$(top_srcdir)/include/hamlib/rotator.h $(top_srcdir)/include/hamlib/rotlist.h \
|
$(top_srcdir)/include/hamlib/rotator.h $(top_srcdir)/include/hamlib/rotlist.h \
|
||||||
$(SWGFILES)
|
$(SWGFILES)
|
||||||
|
|
||||||
|
EXTRA_DIST = $(SWGFILES) \
|
||||||
|
Makefile.PL perltest.pl tcltest.tcl pytest.py
|
||||||
|
|
||||||
|
noinst_SCRIPTS = perltest.pl tcltest.tcl pytest.py hamlibvb.bas
|
||||||
|
|
||||||
BUILT_SOURCES=
|
BUILT_SOURCES=
|
||||||
MOSTLYCLEANFILES=
|
MOSTLYCLEANFILES=
|
||||||
|
|
||||||
AM_CFLAGS = -fno-strict-aliasing
|
|
||||||
|
|
||||||
|
if ENABLE_PERL
|
||||||
##########################################
|
##########################################
|
||||||
# Perl binding
|
# Perl binding
|
||||||
|
|
||||||
|
BUILT_SOURCES += hamlibperl_wrap.c
|
||||||
|
MOSTLYCLEANFILES += hamlibperl_wrap.c Hamlib.pm Hamlib.bs
|
||||||
|
## DISTCLEANFILES = Hamlib-pl.mk Hamlib-pl.mk.old
|
||||||
|
DISTCLEANFILES = Hamlib-pl.mk.old
|
||||||
|
|
||||||
hamlibperl_wrap.c: hamlib.swg $(SWIGDEP)
|
hamlibperl_wrap.c: hamlib.swg $(SWIGDEP)
|
||||||
$(SWIG) -perl5 -shadow @AM_CPPFLAGS@ -I$(top_srcdir)/bindings -o $@ \
|
$(SWIG) -perl5 -shadow @AM_CPPFLAGS@ -I$(top_srcdir)/bindings -o $@ \
|
||||||
`test -f hamlib.swg || echo '$(srcdir)/'`hamlib.swg
|
`test -f hamlib.swg || echo '$(srcdir)/'`hamlib.swg
|
||||||
|
@ -59,6 +71,9 @@ install-perl: Hamlib-pl.mk
|
||||||
uninstall-perl: ## Hamlib-pl.mk
|
uninstall-perl: ## Hamlib-pl.mk
|
||||||
## $(MAKE) $(AM_MAKEFLAGS) -f Hamlib-pl.mk uninstall
|
## $(MAKE) $(AM_MAKEFLAGS) -f Hamlib-pl.mk uninstall
|
||||||
|
|
||||||
|
endif
|
||||||
|
# Perl
|
||||||
|
|
||||||
|
|
||||||
if ENABLE_TCL
|
if ENABLE_TCL
|
||||||
##########################################
|
##########################################
|
||||||
|
@ -99,6 +114,8 @@ distclean-tcl: clean-tcl
|
||||||
uninstall-tcl:
|
uninstall-tcl:
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
# TCL
|
||||||
|
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# Python binding
|
# Python binding
|
||||||
|
@ -124,8 +141,6 @@ python_PYTHON = Hamlib.py
|
||||||
|
|
||||||
_Hamlib_la_LTLIBRARIES = $(python_ltlib)
|
_Hamlib_la_LTLIBRARIES = $(python_ltlib)
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
MOSTLYCLEANFILES+= hamlibpy_wrap.c Hamlib.py *.pyc
|
MOSTLYCLEANFILES+= hamlibpy_wrap.c Hamlib.py *.pyc
|
||||||
BUILT_SOURCES += hamlibpy_wrap.c Hamlib.py
|
BUILT_SOURCES += hamlibpy_wrap.c Hamlib.py
|
||||||
|
|
||||||
|
@ -139,6 +154,10 @@ clean-py:
|
||||||
distclean-py:
|
distclean-py:
|
||||||
uninstall-py:
|
uninstall-py:
|
||||||
|
|
||||||
|
endif
|
||||||
|
# Python
|
||||||
|
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
lib_LTLIBRARIES = $(tcl_ltlib)
|
lib_LTLIBRARIES = $(tcl_ltlib)
|
||||||
# lib_LTLIBRARIES = @BINDING_LIB_TARGETS@
|
# lib_LTLIBRARIES = @BINDING_LIB_TARGETS@
|
||||||
|
@ -151,16 +170,3 @@ distclean-local: @BINDING_DISTCLEAN@
|
||||||
distcheck-local: @BINDING_DISTCHECK@
|
distcheck-local: @BINDING_DISTCHECK@
|
||||||
install-exec-local: @BINDING_INSTALL_EXEC@
|
install-exec-local: @BINDING_INSTALL_EXEC@
|
||||||
uninstall-local: @BINDING_UNINSTALL@
|
uninstall-local: @BINDING_UNINSTALL@
|
||||||
|
|
||||||
|
|
||||||
EXTRA_DIST = $(SWGFILES) \
|
|
||||||
Makefile.PL perltest.pl tcltest.tcl pytest.py
|
|
||||||
|
|
||||||
BUILT_SOURCES += hamlibperl_wrap.c
|
|
||||||
|
|
||||||
## DISTCLEANFILES = Hamlib-pl.mk Hamlib-pl.mk.old
|
|
||||||
DISTCLEANFILES = Hamlib-pl.mk.old
|
|
||||||
|
|
||||||
MOSTLYCLEANFILES += hamlibperl_wrap.c Hamlib.pm Hamlib.bs
|
|
||||||
|
|
||||||
noinst_SCRIPTS = perltest.pl tcltest.tcl pytest.py hamlibvb.bas
|
|
||||||
|
|
|
@ -418,6 +418,8 @@ AS_IF([test x"${cf_with_perl_binding}" = "xyes"],[
|
||||||
BINDING_UNINSTALL="${BINDING_UNINSTALL} uninstall-perl"
|
BINDING_UNINSTALL="${BINDING_UNINSTALL} uninstall-perl"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
AM_CONDITIONAL([ENABLE_PERL], [test x"${cf_with_perl_binding}" = "xyes"])
|
||||||
|
|
||||||
|
|
||||||
# Tcl binding
|
# Tcl binding
|
||||||
AC_MSG_CHECKING([Whether to build Tcl bindings and demos])
|
AC_MSG_CHECKING([Whether to build Tcl bindings and demos])
|
||||||
|
@ -449,7 +451,6 @@ AS_IF([test x"${build_tcl}" = "xyes"],[
|
||||||
BINDING_UNINSTALL="${BINDING_UNINSTALL} uninstall-tcl"
|
BINDING_UNINSTALL="${BINDING_UNINSTALL} uninstall-tcl"
|
||||||
BINDING_LIB_TARGETS="${BINDING_LIB_TARGETS} \$(tcl_ltlib)"])
|
BINDING_LIB_TARGETS="${BINDING_LIB_TARGETS} \$(tcl_ltlib)"])
|
||||||
|
|
||||||
|
|
||||||
AM_CONDITIONAL([ENABLE_TCL], [test x"${build_tcl}" = "xyes"])
|
AM_CONDITIONAL([ENABLE_TCL], [test x"${build_tcl}" = "xyes"])
|
||||||
AC_SUBST([TCL_LIB_SPEC])
|
AC_SUBST([TCL_LIB_SPEC])
|
||||||
AC_SUBST([TCL_INCLUDE_SPEC])
|
AC_SUBST([TCL_INCLUDE_SPEC])
|
||||||
|
|
Ładowanie…
Reference in New Issue