]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Makefile: possibility to add the rust library as a cdynlib/header
authorRamakrishnan Muthukrishnan <ram@leastauthority.com>
Fri, 17 Feb 2023 11:25:15 +0000 (16:55 +0530)
committerRamakrishnan Muthukrishnan <ram@leastauthority.com>
Fri, 17 Feb 2023 11:25:15 +0000 (16:55 +0530)
Makefile

index 1a1b2238dbb2a8c851ecdddbcee0d16f0e98f5e5..b8bd0a18f7b543fe47f108f2faebddca86f8b196 100644 (file)
--- 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)