SYSLIBS=-framework IOKit
endif
+RUST_LIB=-Lrust/target/debug -lhpsdr
+
LIBS= $(LDFLAGS) $(AUDIO_LIBS) $(USBOZY_LIBS) $(GTKLIBS) $(GPIO_LIBS) $(SOAPYSDRLIBS) $(STEMLAB_LIBS) \
- $(MIDI_LIBS) -lwdsp -lpthread -lm $(SYSLIBS)
+ $(MIDI_LIBS) $(RUST_LIB) -lwdsp -lpthread -lm $(SYSLIBS)
+
INCLUDES=$(GTKINCLUDES)
COMPILE=$(CC) $(CFLAGS) $(OPTIONS) $(INCLUDES)
toolbar_menu.c \
sintab.c
-
+RUST_SRC=\
+rust/lib.rs
HEADERS= \
MacOS.h \
$(PROGRAM): $(OBJS) $(AUDIO_OBJS) $(REMOTE_OBJS) $(USBOZY_OBJS) $(SOAPYSDR_OBJS) \
$(LOCALCW_OBJS) $(PURESIGNAL_OBJS) \
- $(MIDI_OBJS) $(STEMLAB_OBJS) $(SERVER_OBJS)
+ $(MIDI_OBJS) $(STEMLAB_OBJS) $(SERVER_OBJS) \
+ libhpsdr
$(LINK) -o $(PROGRAM) $(OBJS) $(AUDIO_OBJS) $(REMOTE_OBJS) $(USBOZY_OBJS) \
$(SOAPYSDR_OBJS) $(LOCALCW_OBJS) $(PURESIGNAL_OBJS) \
$(MIDI_OBJS) $(STEMLAB_OBJS) $(SERVER_OBJS) $(LIBS)
hpsdrsim.o: hpsdrsim.c hpsdrsim.h
$(CC) -c -O hpsdrsim.c
-
+
newhpsdrsim.o: newhpsdrsim.c hpsdrsim.h
$(CC) -c -O newhpsdrsim.c
cp release/pihpsdr/pihpsdr.desktop pkg/pihpsdr/usr/share/applications
cd pkg; dpkg-deb --build pihpsdr
+libhpsdr:
+ cd rust && \
+ cargo build && \
+ cd ..
#############################################################################
#
# This is for MacOS "app" creation ONLY
gint display_height;
gint full_screen=1;
+extern size_t add(size_t left, size_t right);
+
static GtkWidget *discovery_dialog;
static GdkCursor *cursor_arrow;
char name[1024];
+ printf("calling rust add fn: %d\n", add(40, 2));
+
#ifdef __APPLE__
void MacOSstartup(char *path);
MacOSstartup(argv[0]);