snake_compiler git · main
Snake compiled to a bare-metal RISC-V microcontroller
C 95.2% Markdown 3.3%git clone https://git.christianimmanuel.de/embedded/snake_compiler.gitwget https://git.christianimmanuel.de/embedded/snake_compiler/archive/snake_compiler.tar.gzsnake_SDL/editor/Makefile raw
CC := gcc
CFLAGS := -std=c11 -Wall -Wextra -O2
LDFLAGS := $(shell pkg-config --cflags --libs sdl3)
TARGET := sdl3_move
SRC := main.c
all: $(TARGET)
$(TARGET): $(SRC)
$(CC) $(CFLAGS) $(SRC) -o $(TARGET) $(LDFLAGS)
clean:
rm -f $(TARGET)
.PHONY: all clean