CC=gcc CFLAGS=-Wall -Wextra -pedantic -ggdb -fsanitize=address LIBS=-lm -lraylib OBJECTS=files.o main.o OUT=sandpile.out ARGS= %.o: %.c $(CC) $(CFLAGS) -c $^ -o $@ $(LIBS) $(OUT): $(OBJECTS) $(CC) $(CFLAGS) $^ -o $@ $(LIBS) .PHONY: clean: rm -rfv $(OUT) $(OBJECTS) .PHONY: run run: $(OUT) ./$^ $(ARGS)