From 75f855c50ceeefad42d6be9232d38b19d241d5ea Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <ram@leastauthority.com>
Date: Fri, 17 Feb 2023 16:55:15 +0530
Subject: [PATCH] Makefile: possibility to add the rust library as a
 cdynlib/header

---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 1a1b223..b8bd0a1 100644
--- a/Makefile
+++ b/Makefile
@@ -234,11 +234,12 @@ SYSLIBS=-framework IOKit
 endif
 
 RUST_LIB=-Lrust/target/debug -lhpsdr
+RUST_INCLUDES=-Irust/target/debug
 
 LIBS=	$(LDFLAGS) $(AUDIO_LIBS) $(USBOZY_LIBS) $(GTKLIBS) $(GPIO_LIBS) $(SOAPYSDRLIBS) $(STEMLAB_LIBS) \
 	$(MIDI_LIBS) $(RUST_LIB) -lwdsp -lpthread -lm $(SYSLIBS)
 
-INCLUDES=$(GTKINCLUDES)
+INCLUDES=$(GTKINCLUDES) $(RUST_INCLUDES)
 
 COMPILE=$(CC) $(CFLAGS) $(OPTIONS) $(INCLUDES)
 
-- 
2.45.2