Nimbin[12]?Embedded / snake_compiler / snake_SDL/editor/Makefile

snake_compiler git · main

Snake compiled to a bare-metal RISC-V microcontroller

riscv embedded bare-metal c snake · first commit 2026-01-18 · last commit 2026-01-18 (8 months ago) · synced 3 days ago · upstream: git.ide3.de/hsnr/compilerbau/snake_compiler

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.gz
snake_SDL/editor/Makefile 274 B · 16 lines 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