import os ; local GN3S_DRIVER = [ os.environ GN3S_DRIVER ] ; local RTLSDR_DRIVER = [ os.environ RTLSDR_DRIVER ] ; module { #Global variable in the global module .GN3S_DRIVER = GN3S_DRIVER ; .RTLSDR_DRIVER = RTLSDR_DRIVER ; } local GTEST_DIR = [ os.environ GTEST_DIR ] ; project gtest : source-location $(GTEST_DIR)/src : build-dir ../../build ; lib gtest : gtest-all.cc # sources : $(GTEST_DIR) # requirements $(GTEST_DIR)/include static ; lib glog ; lib gflags ; lib gnuradio-core ; lib uhd ; lib gnuradio-uhd ; if ($(GN3S_DRIVER)) { echo "GN3S_DRIVER enabled" ; lib gr-gn3s ; } if ($(RTLSDR_DRIVER)) { echo "RTLSDR_DRIVER enabled" ; lib gnuradio-osmosdr ; } project : usage-requirements . ; project : requirements OMNITHREAD_POSIX "-msse2 -msse3 -mfpmath=sse -std=c++0x -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free" "-lgnuradio-blocks -lgnuradio-fft -lgnuradio-filter -larmadillo -lboost_system -lboost_filesystem -lboost_thread -lboost_date_time -llapack -lblas -lprofiler -ltcmalloc -lvolk" src/algorithms/acquisition/adapters src/algorithms/acquisition/gnuradio_blocks src/algorithms/channel/adapters src/algorithms/channel/gnuradio_blocks src/algorithms/channel/libs src/algorithms/conditioner/adapters src/algorithms/conditioner/gnuradio_blocks src/algorithms/data_type_adapter/adapters src/algorithms/input_filter/adapters src/algorithms/input_filter/gnuradio_blocks src/algorithms/libs src/algorithms/observables/adapters src/algorithms/observables/gnuradio_blocks src/algorithms/output_filter/adapters src/algorithms/output_filter/gnuradio_blocks src/algorithms/PVT/adapters src/algorithms/PVT/gnuradio_blocks src/algorithms/PVT/libs src/algorithms/resampler/adapters src/algorithms/resampler/gnuradio_blocks src/algorithms/signal_source/adapters src/algorithms/signal_source/gnuradio_blocks src/algorithms/telemetry_decoder/adapters src/algorithms/telemetry_decoder/gnuradio_blocks src/algorithms/telemetry_decoder/libs src/algorithms/tracking/adapters src/algorithms/tracking/gnuradio_blocks src/algorithms/tracking/libs src/core/interfaces src/core/libs src/core/receiver src/core/system_parameters $OSMOSDR_ROOT/include/osmosdr $(GTEST_DIR)/include multi gcc:/usr/local/include/gnuradio darwin:/opt/local/include/gnuradio ; build-project src ;