Files
abelian-sandpile/Makefile
Aryadev Chavali f155f0e088 (file-handler)+impl file for file handling
In particular I've implemented a standardised complete FILE * reader
without relying on fseek (which may not work for pipes).
2023-08-25 19:08:32 +01:00

21 lines
317 B
Makefile

CC=gcc
CFLAGS=-Wall -Wextra -pedantic -ggdb -fsanitize=address
LIBS=-lm -lraylib
OBJECTS=file-handler.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)