RaspberrPi project source code
Guo Wenxue
2024-12-29 8517494b239d652ea9a24457faa13f88f55979b9
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=%)