LingYun Studio embeded system framwork software, such as thirdparty build shell and lingyun library
guowenxue
2024-09-25 e8d34d11799fc79c7c53bdcd40f9b4ee7be7a2c5
hal/modules/makefile
@@ -26,7 +26,15 @@
SRCFILES = $(wildcard *.c)
BINARIES=$(SRCFILES:%.c=%)
all: binaries install
# libgpiod compile install path
LIBS_PATH=install
CFLAGS+=-I ${LIBS_PATH}/include
LDFLAGS+=-L ${LIBS_PATH}/lib -lgpiod
all: libs binaries install
libs:
   make -C libgpiod CROSS_COMPILE=${CROSS_COMPILE}
binaries:  ${BINARIES}
@@ -40,6 +48,8 @@
   @rm -f *.o *.lo $(BINARIES)
distclean: clean
   @rm -f  tags cscope*
   @rm -f tags cscope*
   @make clean -C libgpiod
   @rm -rf install
.PHONY: clean entry