X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gr-comedi%2Fsrc%2FMakefile.am;fp=gr-comedi%2Fsrc%2FMakefile.am;h=974b108abd5b171801fb951fa83d923653a57f65;hb=40b8a57d69b4b85f207fb0408347c210e23202cc;hp=bd26e695223eada8cd3c8df34bf5cbd179e30633;hpb=e3cd8f7d59aad0ffd51c417b2623ab02588fdb08;p=debian%2Fgnuradio diff --git a/gr-comedi/src/Makefile.am b/gr-comedi/src/Makefile.am index bd26e695..974b108a 100644 --- a/gr-comedi/src/Makefile.am +++ b/gr-comedi/src/Makefile.am @@ -23,10 +23,6 @@ include $(top_srcdir)/Makefile.common EXTRA_DIST = run_tests.in -TESTS = run_tests - -DISTCLEANFILES = run_tests - AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) $(WITH_INCLUDES) # C/C++ headers get installed in ${prefix}/include/gnuradio @@ -40,8 +36,25 @@ noinst_HEADERS = \ noinst_PYTHON = \ qa_comedi.py +lib_LTLIBRARIES = libgnuradio-comedi.la + +libgnuradio_comedi_la_SOURCES = \ + comedi_sink.cc \ + comedi_source.cc \ + gri_comedi.cc + +libgnuradio_comedi_la_LIBADD = \ + $(GNURADIO_CORE_LA) \ + $(COMEDI_LIBS) + +libgnuradio_comedi_la_LDFLAGS = \ + $(NO_UNDEFINED) + +if PYTHON ################################### # SWIG Python interface and library +TESTS = run_tests +DISTCLEANFILES = run_tests TOP_SWIG_IFILES = \ comedi.i @@ -53,16 +66,9 @@ TOP_SWIG_IFILES = \ comedi_pythondir_category = \ gnuradio -# additional sources for the SWIG-generated library -comedi_la_swig_sources = \ - comedi_sink_s.cc \ - comedi_source_s.cc \ - gri_comedi.cc - # additional libraries for linking with the SWIG-generated library comedi_la_swig_libadd = \ - $(GNURADIO_CORE_LA) \ - $(COMEDI_LIBS) + libgnuradio-comedi.la include $(top_srcdir)/Makefile.swig @@ -71,3 +77,4 @@ BUILT_SOURCES = $(swig_built_sources) # Do not distribute the output of SWIG no_dist_files = $(swig_built_sources) +endif