Wednesday, April 24, 2013

How to do the make file stuff

The easiest way to build new applications or test programs is to simply add them to the gnuradio/src/gnu/examples directory and edit Makefile.am, then type "make".  The Makefile should be regenerated from Makefile.am, and then the appropriate magic will be performed.

If you look in Makefile.am, you'll see two places that you need to edit.

(1) add myprogram to the list starting with...

noinst_PROGRAMS         =               \
       myprogram                       \
       adc3_fft                        \
       adc3_fftavg                     \

(2) add the two lines that instruct make how to build it:

myprogram_SOURCES       = myprogram.cc
myprogram_LDADD         = $(top_builddir)/src/gnu/lib/libgnuradio.la


Then type "make".

**  This has been taken from an old discussion but I guess still valid :)

No comments:

Post a Comment