--- ThirdParty/BSL430_DLL/Makefile.orig	2019-11-18 13:16:00
+++ ThirdParty/BSL430_DLL/Makefile	2024-06-07 18:13:21
@@ -15,13 +15,16 @@
 MAKE_PCH := -x c++-header
 USE_PCH := -include $(PCH_HEADER)
 
+export PREFIX
+
 INCLUDES := \
 	-I../include \
 	-I./BSL430_DLL \
 	-I./BSL430_DLL/Utility_Classes \
 	-I./BSL430_DLL/Physical_Interfaces \
 	-I./BSL430_DLL/Packet_Handlers \
-	-I./BSL430_DLL/Connections
+	-I./BSL430_DLL/Connections \
+        -I$(PREFIX)/include/hidapi
 
 SRC := \
 	./BSL430_DLL/MSPBSL_Factory.cpp \
@@ -64,7 +67,7 @@
 	$(CXX) -c -o $@ $< $(USE_PCH) $(CXXFLAGS) $(INCLUDES) $(DEFINES)
 
 install:
-	cp $(OUTPUT) /usr/lib/
+	cp $(OUTPUT) $(DESTDIR)/lib/
 
 clean:
 	@for i in $(OBJS); do rm -f $$i; done
