From aab3db7f321067b8ff14d589119936d3cbbfc2b0 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 2 Sep 2023 18:59:18 +0100 Subject: INITIAL COMMIT Simple hello world in raylib --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..61be3b9 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CC=gcc +CFLAGS=-Wall -Wextra -Wpedantic -ggdb -fsanitize=address -std=c11 +LIBS=-lm -lraylib +OBJECTS=main.o +OUT=simulation.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) -- cgit v1.2.3-13-gbd6f