diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-04-19 22:29:31 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-04-19 22:29:31 -0400 |
| commit | c1eb35ea06ba95a18d9ab4ff53ed3b67be35af8b (patch) | |
| tree | 2587470e6fda5f1f815d3b7ab67e71737ddafca8 /makefile | |
| parent | 625d99871e5d18e0aa54a95cfce2fa37e46b4095 (diff) | |
intial work on plotting functions
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -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 # ################ |
