diff --git a/.github/workflows/build-rpi3-raylib-static.yaml b/.github/workflows/build-rpi3-raylib-static.yaml index d98126d..65475c3 100644 --- a/.github/workflows/build-rpi3-raylib-static.yaml +++ b/.github/workflows/build-rpi3-raylib-static.yaml @@ -27,9 +27,7 @@ jobs: uses: actions/cache@v3 with: path: ./sysroot - key: sysroot-buster-${{ runner.os }}-${{ hashFiles('build-rpi3-raylib-static.yaml') }} - restore-keys: | - sysroot-buster-${{ runner.os }}- + key: sysroot-buster - name: Create sysroot for Raspbian Buster if: steps.cache-sysroot.outputs.cache-hit != 'true' diff --git a/Makefile b/Makefile index afcac95..7852b0b 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,12 @@ CC ?= arm-linux-gnueabihf-gcc CFLAGS ?= -O2 -Wall LDFLAGS ?= -SYSROOT ?= ./sysroot +SYSROOT ?= ../sysroot TARGET ?= snake_animation # Percorsi -INCLUDES ?= -I$(SYSROOT)/usr/include -LIBS ?= -L$(SYSROOT)/usr/lib -L$(SYSROOT)/lib -l:raylib.a -ldrm -lgbm -lasound -lpthread -lm +INCLUDES ?= -I$(SYSROOT)/usr/include -I ../raylib/src/ +LIBS ?= -L$(SYSROOT)/usr/lib -L$(SYSROOT)/lib -lraylib -lGL -lm -ldrm -lgbm -lEGL -L ../raylib/src/ -o snake # Regole all: $(TARGET)