2002-09-08 22:31:01 +00:00
|
|
|
|
|
|
|
# hamlibtcl, hamlibperl, etc. are temproray modules names
|
|
|
|
# They will be generated in separate subdirs in the future
|
|
|
|
|
2002-10-07 21:44:51 +00:00
|
|
|
# more information on swig at http://www.swig.org
|
2002-09-08 22:31:01 +00:00
|
|
|
|
|
|
|
#lib_LTLIBRARIES = @BINDING_LA@
|
|
|
|
#EXTRA_LTLIBRARIES = hamlibperl.la hamlibtcl.la
|
|
|
|
lib_LTLIBRARIES = hamlibperl.la hamlibtcl.la
|
|
|
|
|
2002-10-31 01:43:22 +00:00
|
|
|
INCLUDES = @INCLUDES@ -Dbool=char -I@PERL_INC_DIR@ -I@TCL_SRC_DIR@/generic -I$(top_srcdir)/bindings
|
2002-09-08 22:31:01 +00:00
|
|
|
|
|
|
|
# Perl binding
|
2002-10-31 00:47:31 +00:00
|
|
|
#hamlibperl_la_INCLUDE = @INCLUDES@ -Dbool=char -I@PERL_INC_DIR@
|
2002-09-08 22:31:01 +00:00
|
|
|
|
2002-10-31 00:47:31 +00:00
|
|
|
nodist_hamlibperl_la_SOURCES = hamlibperl_wrap.c
|
2002-11-04 22:16:19 +00:00
|
|
|
hamlibperl_la_LDFLAGS = -no-undefined -module -avoid-version
|
2002-11-13 20:39:07 +00:00
|
|
|
hamlibperl_la_LIBADD = $(top_builddir)/src/libhamlib.la
|
2002-09-08 22:31:01 +00:00
|
|
|
|
2002-10-31 01:43:22 +00:00
|
|
|
BUILT_SOURCES = hamlibperl_wrap.c hamlibtcl_wrap.c
|
|
|
|
DISTCLEANFILES = hamlibperl_wrap.c hamlibtcl_wrap.c
|
2002-10-31 00:47:31 +00:00
|
|
|
|
2002-11-13 20:39:07 +00:00
|
|
|
hamlibperl_wrap.c: hamlib.swg $(top_srcdir)/include/hamlib/rig.h
|
2002-11-04 22:16:19 +00:00
|
|
|
swig -perl5 -shadow @INCLUDES@ -I$(top_srcdir)/bindings -o $@ `test -f hamlib.swg || echo '$(srcdir)/'`hamlib.swg
|
2002-09-08 22:31:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Tcl binding
|
2002-10-31 00:47:31 +00:00
|
|
|
#hamlibtcl_la_INCLUDE = @INCLUDES@ -I@TCL_SRC_DIR@/generic
|
2002-09-08 22:31:01 +00:00
|
|
|
|
2002-10-31 00:47:31 +00:00
|
|
|
nodist_hamlibtcl_la_SOURCES = hamlibtcl_wrap.c
|
2002-11-04 22:16:19 +00:00
|
|
|
hamlibtcl_la_LDFLAGS = -no-undefined -module -avoid-version @TCL_LIB_SPEC@
|
2002-11-13 20:39:07 +00:00
|
|
|
hamlibtcl_la_LIBADD = $(top_builddir)/src/libhamlib.la
|
2002-09-08 22:31:01 +00:00
|
|
|
|
2002-11-13 20:39:07 +00:00
|
|
|
hamlibtcl_wrap.c: hamlib.swg $(top_srcdir)/include/hamlib/rig.h
|
2002-11-04 22:16:19 +00:00
|
|
|
swig -tcl @INCLUDES@ -I$(top_srcdir)/bindings -o $@ `test -f hamlib.swg || echo '$(srcdir)/'`hamlib.swg
|
2002-09-08 22:31:01 +00:00
|
|
|
|
2002-11-13 20:39:07 +00:00
|
|
|
rig.swg: $(top_srcdir)/include/hamlib/rig.h $(top_srcdir)/include/hamlib/riglist.h
|
|
|
|
rotator.swg: $(top_srcdir)/include/hamlib/rotator.h $(top_srcdir)/include/hamlib/rotlist.h
|
2002-09-08 22:31:01 +00:00
|
|
|
|
|
|
|
hamlib.swg: ignore.swg rig.swg rotator.swg
|
|
|
|
|
2002-11-13 20:39:07 +00:00
|
|
|
EXTRA_DIST = hamlib.swg ignore.swg rig.swg rotator.swg \
|
|
|
|
perltest.pl tcltest.tcl
|
2002-09-08 22:31:01 +00:00
|
|
|
|
|
|
|
CLEANFILES = hamlibperl_wrap.c hamlib.pm hamlibtcl_wrap.c
|
2002-10-07 21:44:51 +00:00
|
|
|
|
2002-11-13 20:39:07 +00:00
|
|
|
noinst_SCRIPTS = perltest.pl tcltest.tcl
|