CC=gcc CFLAGS=-O1 -DDEBUG -g -ggdb -std=c23 LIBS=`pkg-config sdl3 --cflags --libs` OBJ = main.o all: mobiground %.o: %.c # Add all .o and .c files to compiler $(CC) -c -o $@ $< $(CFLAGS) # compile, generate, all output, prerequisite implicit rule, compile flags. mobiground: $(OBJ) $(CC) -o $@ $^ $(CFLAGS) $(LIBS) .PHONY: clean clean: rm -f *.o mobiground