RaspberrPi project source code
guowenxue
2025-02-23 7d9973022f5417a9fbd11f25536186f1cac5d38b
update modules makefile to support build libgpiod on x86
1 files modified
5 ■■■■ changed files
project/modules/makefile 5 ●●●● patch | view | raw | blame | history
project/modules/makefile
@@ -25,11 +25,14 @@
CFLAGS+=-I${OPENLIBS_INCPATH} -I${TOPDIR}/booster
all: clean
all: prelibs clean
    @rm -f *.o
    ${CROSS_COMPILE}gcc ${CFLAGS} -c *.c
    ${CROSS_COMPILE}ar -rcs  lib${LIBNAME}.a *.o
prelibs:
    if [ -n "${CROSS_COMPILE}" ] ; then cd ${TOPDIR}/openlibs/libgpiod && ./build.sh ; fi;
clean:
    @rm -f *.o
    @rm -f *.a