From 4d11db63f237423036f7daa41a1213ddcf30d532 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Wed, 24 Apr 2024 22:43:33 -0400 Subject: update build system and documentation --- README.md | 2 +- TODO.md | 6 +++++- makefile | 9 ++++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d96cdc1..fde1a58 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Complex Fractals +# Complex Fractal Final Project for Moravian University CSCI 392: High Performance Computing. diff --git a/TODO.md b/TODO.md index e17b9eb..a57e378 100644 --- a/TODO.md +++ b/TODO.md @@ -4,7 +4,11 @@ * [ ] find way to render data into image files * [x] read/write grids to/from file - * [ ] create image with ImageMagick core/wand + * [ ] create image with libgd + * [ ] create animation with libgd +* [ ] code refactor + * [ ] change functions so that complex_t is passed instead of complex from + * [ ] store the size of lower_left and upper_right before the values of lower_left and upper_right in the .grid format * [x] write serial * [x] mandelbrot * [x] multibrot diff --git a/makefile b/makefile index 8fd24b4..01a2b8a 100644 --- a/makefile +++ b/makefile @@ -1,13 +1,13 @@ CC := gcc -CPPFLAGS := -CFLAGS := -Wall +CPPFLAGS := -DEXTENDED_PRECISION +CFLAGS := -Wall LDFLAGS := -lm SRC_DIR := src BUILD_DIR := build OBJ_DIR := $(BUILD_DIR)/objects -TARGET := serial-fractals shared-fractals +TARGET := fractal-render serial-fractals shared-fractals SRCS := $(wildcard $(SRC_DIR)/*.c) OBJS := $(patsubst $(SRC_DIR)/%.c, $(OBJ_DIR)/%.o, $(SRCS)) @@ -20,6 +20,9 @@ all: $(addprefix $(BUILD_DIR)/, $(TARGET)) # Programs # ############## +$(BUILD_DIR)/fractal-render: $(OBJ_DIR)/fractal_render.o $(OBJ_DIR)/grids.o + $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) + $(BUILD_DIR)/serial-fractals: $(OBJ_DIR)/fractals.o $(OBJ_DIR)/serial-fractals.o $(OBJ_DIR)/grids.o $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) -- cgit v1.2.3