From c1eb35ea06ba95a18d9ab4ff53ed3b67be35af8b Mon Sep 17 00:00:00 2001 From: JP Appel Date: Fri, 19 Apr 2024 22:29:31 -0400 Subject: intial work on plotting functions --- makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 14478ef..1cbae10 100644 --- a/makefile +++ b/makefile @@ -1,13 +1,27 @@ -CC := +CC := gcc-13 CPPFLAGS := +CFLAGS := -Wall LDFLAGS := -all: +all: ############## # Programs # ############## +SRCS := mandelbrot.c plotting.c +OBJS := $(SRC:.c=.o) +OBJS_DIR := build/objs + +build/mandelbrot: $(addprefix $(OBJS_DIR)/, $(OBJS)) + $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) + +$(OBJS_DIR)/%.o: src/%.c $(OBJS_DIR) + $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ + +$(OBJS_DIR): + mkdir -p $@ + ################ # Animations # ################ -- cgit v1.2.3