aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-04-24 22:43:33 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-04-24 22:43:33 -0400
commit4d11db63f237423036f7daa41a1213ddcf30d532 (patch)
treee923959891c0fc9c52c167dc8932efe671e9f31c
parent948fd1f47e5cb724a4aaee8e3864f093f1adc7a9 (diff)
update build system and documentation
-rw-r--r--README.md2
-rw-r--r--TODO.md6
-rw-r--r--makefile9
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 <complex.h>
+ * [ ] 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)