From b3dc672c57aa5374fcd1ba1da5321d6c63d68e0f Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Thu, 14 Mar 2024 10:47:14 +0800
Subject: [PATCH] Add SHT20 and AT24C256 Logic Analyzer LA5016 capture data

---
 modules/makefile |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/modules/makefile b/modules/makefile
index dad362d..e1e04b5 100644
--- a/modules/makefile
+++ b/modules/makefile
@@ -12,6 +12,10 @@
 #
 #*******************************************************************************
 
+PWD=$(shell pwd)
+TOPDIR=${PWD}/../project/
+OPENLIBS_INCPATH=${TOPDIR}/openlibs/install/include
+OPENLIBS_LIBPATH=${TOPDIR}/openlibs/install/lib
 
 BUILD_ARCH=$(shell uname -m)
 ifneq ($(findstring $(BUILD_ARCH), "x86_64" "i386"),)
@@ -20,7 +24,8 @@
 
 CC=${CROSS_COMPILE}gcc
 
-LDFLAGS+=-lm -lgpiod
+CFLAGS+=-I${OPENLIBS_INCPATH}
+LDFLAGS+=-L${OPENLIBS_LIBPATH} -lm -lgpiod
 
 SRCFILES = $(wildcard *.c)
 BINARIES=$(SRCFILES:%.c=%)

--
Gitblit v1.9.1