# uncomment the line below to include USB Ozy support
# USBOZY_INCLUDE=USBOZY
+RUST_DISCOVERY=ON
+
# uncomment the line to below include support local CW keyer
LOCALCW_INCLUDE=LOCALCW
LEVEL_OPTIONS=-D SW_LEVEL_CTRL
endif
+ifeq ($(RUST_DISCOVERY),ON)
+RUST_DISCOVERY_INCLUDES= # -Irust/discovery/
+RUST_DISCOVERY_LIBS= -Lrust/target/debug/ -lhpsdr_discovery
+endif
+
ifeq ($(MIDI_INCLUDE),MIDI)
MIDI_OPTIONS=-D MIDI
MIDI_HEADERS= midi.h midi_menu.h
RT_OPTION=-lrt
endif
-LIBS=$(RT_OPTION) -lfftw3 -lm -lwdsp -lpthread $(AUDIO_LIBS) $(USBOZY_LIBS) $(GTKLIBS) $(GPIO_LIBS) $(MIDI_LIBS)
-INCLUDES=$(GTKINCLUDES)
+LIBS=$(RT_OPTION) -lfftw3 -lm -lwdsp -lpthread $(AUDIO_LIBS) $(USBOZY_LIBS) $(GTKLIBS) $(GPIO_LIBS) $(MIDI_LIBS) $(RUST_DISCOVERY_LIBS)
+INCLUDES=$(GTKINCLUDES) $(RUST_DISCOVERY_INCLUDES)
COMPILE=$(CC) $(CFLAGS) $(OPTIONS) $(INCLUDES)